bug: Deferred Deeplink not working and `App.getLaunchUrl()` return undefined.
还没有人认领这个 Issue。
评估
- 难度
- 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
- 星标
- 687
- 派生
- 691
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ionic-team/capacitor-plugins 的其他 Issue
-
triage
难度 2/5 1-3 小时 新手友好度 72/100
ionic-team/capacitor-plugins#2616 ·
-
[@capacitor/app] iOS: 'Expression implicitly coerced from String? to Any' warning in getAppLanguage未关闭triage
难度 1/5 1 小时以内 新手友好度 88/100
ionic-team/capacitor-plugins#2604 ·
-
bug(network): Android networkStatusChange re-queries the active network inside callbacks and fires on every capability change可能已有人在做 @kcjonson 于 2 天前认领。 未关闭platform: android
难度 4/5 1-2 天 新手友好度 25/100
ionic-team/capacitor-plugins#2621 ·
-
bug(network): iOS getStatus() returns the last reachability callback value instead of reading current flags可能已有人在做 @kcjonson 于 2 天前认领。 未关闭platform: ios
难度 2/5 1-3 小时 新手友好度 35/100
ionic-team/capacitor-plugins#2620 ·
-
platform: android platform: ios
难度 5/5 一周以上 新手友好度 24/100
ionic-team/capacitor-plugins#2619 ·
查看 ionic-team/capacitor-plugins 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
code-maintenance
难度 2/5 1-3 小时 新手友好度 80/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 85/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
krizaka/krizaka-notifications#32 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
klikli-dev/occultism#1719 ·