bug: Deferred Deeplink not working and `App.getLaunchUrl()` return undefined.
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 28/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- java, javascript, swift
- Domain
- api, mobile-dev
Research direction
Start with the App.getLaunchUrl() entry point and reproduce the deferred deep-link flow from the Android Play Store and iOS App Store scenarios described in the issue. Compare it with the working normal deep-link flow and the provided adb command. Done means the original link data is returned after installation on both platforms, or the limitation and supported setup are clearly documented.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Java
- Stars
- 678
- Forks
- 688
- Avg merge
- 5d 11h
- Merged PRs (30d)
- 3
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ionic-team/capacitor-plugins
-
[@capacitor/app] iOS: 'Expression implicitly coerced from String? to Any' warning in getAppLanguageOpentriage
Difficulty 1/5 Under an hour Newbie friendliness 88/100
ionic-team/capacitor-plugins#2604 ·
-
platform: ios
Difficulty 4/5 3-5 days Newbie friendliness 58/100
ionic-team/capacitor-plugins#2603 · 1 comment ·
-
platform: android
Difficulty 3/5 1-2 days Newbie friendliness 76/100
ionic-team/capacitor-plugins#2599 ·
-
platform: ios
Difficulty 3/5 1-2 days Newbie friendliness 68/100
ionic-team/capacitor-plugins#2595 · 1 reaction ·
-
platform: android triage
Difficulty 4/5 3-5 days Newbie friendliness 48/100
ionic-team/capacitor-plugins#2593 ·
All issues in ionic-team/capacitor-plugins
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
go 🏃 testing 🧪
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
valkey-io/valkey-glide#7239 ·
Maintainers usually reply within 2 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
github/copilot-sdk#2793 ·
Maintainers usually reply within 1 day