bug: Deferred Deeplink not working and `App.getLaunchUrl()` return undefined.
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 28/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- java, javascript, swift
- 領域
- api, mobile-dev
調査の方向性
App.getLaunchUrl() のエントリーポイントから始め、issue に記載されている Android Play Store と iOS App Store のシナリオに基づいて、遅延ディープリンクのフローを再現します。動作している通常のディープリンクフローおよび提供されている adb コマンドと比較します。両プラットフォームでインストール後に元のリンクデータが返されること、または制限とサポートされているセットアップが明確に文書化されていることが完了の条件です。
索引モデルが issue の本文から書いたものです。
説明
Bug Report
Capacitor Version
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 4.7.3
@capacitor/core: 4.7.3
@capacitor/android: 4.7.3
@capacitor/ios: 4.7.3
Installed Dependencies:
@capacitor/cli: 3.2.2
@capacitor/core: 3.2.2
@capacitor/ios: 3.2.2
@capacitor/android: 3.2.2
[success] iOS looking great! 👌
[success] Android looking great! 👌
Platform(s)
Android
iOS
Current Behavior
App.getLaunchUrl() return undefined.
Expected Behavior
it should return deferred deeplink when coming from playstore or app store after installing application.
Code Reproduction
async getAppLaunch(){
const launchUrl = await App.getLaunchUrl();
console.log(launchUrl)
if (launchUrl && launchUrl.url) {
// parse the launchUrl URL to extract the deep link data
const deepLinkData = new URLSearchParams(launchUrl.url.split('?')[1]);
console.log(deepLinkData.get('ddl')); // prints "mydeeplinkdata"
}
}
Other Technical Details
I am implementing deferred deeplink when user clicks on my link it and they dont have app installed it will take them to respective store after installation App.getLaunchUrl() is not returning original clicked link.
User clicks on this link which takes them to playstore:
https://play.google.com/store/apps/details?id=com.example.myapp&deeplinkdata=mydeeplinkdata
after installation how can i get data in my app?
Normal deeplinks are working. if user have app installed and click any link it open my app and takes them to respective content / page.
npm --version output: 9.3.1
node --version output: v16.13.1
pod --version output (iOS issues only): 1.11.3
Additional Context
i tried to setup play.google.com as my intent filter.
tried this ADC Command
adb shell am start -W -a android.intent.action.VIEW -d "https://play.google.com/store/apps/details?id=com.example.myapp&ddl=mydeeplinkdata" com.example.myapp
Nothing is working. haven't tried on ios but i need this for iOS Too.
- 主要言語
- Java
- スター
- 682
- フォーク
- 689
- 平均マージ
- 5日 11時間
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ionic-team/capacitor-plugins のほかの issue
-
[@capacitor/app] iOS: 'Expression implicitly coerced from String? to Any' warning in getAppLanguageオープンtriage
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
ionic-team/capacitor-plugins#2604 ·
-
platform: ios
難易度 4/5 3〜5日 初心者へのやさしさ 58/100
ionic-team/capacitor-plugins#2603 · コメント 1 件 ·
-
platform: android
難易度 3/5 1〜2日 初心者へのやさしさ 76/100
ionic-team/capacitor-plugins#2599 ·
-
platform: ios
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
ionic-team/capacitor-plugins#2595 · リアクション 1 件 ·
-
platform: android triage
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
ionic-team/capacitor-plugins#2593 ·
ionic-team/capacitor-plugins の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
apache/arrow-java#1311 ·
メンテナーはふだん 2 日以内に返信
-
bug triage
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
security
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
IBM/networking-java-sdk#204 ·