Sometimes, dynamic link works well. But some times, it just open google play store and this is the problem.
Especially, it shows google play store more frequently when then app is not running.
Any suggestion will be appreciated.
Edit:
I tried following sequence and failed:
But by this sequence, it was successful.
This is my intent-filter.
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="truebalance.io/products"
android:scheme="https" />
</intent-filter>
And this is my google play store url.
https://play.google.com/store/apps/details?id=com.stanleyko.fdl
The key point was adding application id. With this option, the link will launch app directly and will not open google play store if app was already installed.
Firebase.dynamicLinks.shortLinkAsync {
domainUriPrefix = MY_PREFIX
androidParameters(BuildConfig.APPLICATION_ID) {
minimumVersion = MY_MIN_VERSION
}
link = myDeepLink // My deep link
}.addOnSuccessListener { result ->
val shortLink = result.shortLink
// Use shortLink
}.addOnFailureListener {
// Do something
}
I have found the answer from below. Details:
https://stackoverflow.com/a/51224484/850347
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With