-
Notifications
You must be signed in to change notification settings - Fork 220
Android app linking fails due to empty hosts #229
Comments
I am debugging a similar issue in a cordova app at the moment. The app links haven't been working for past few weeks. Is there a way to manually change the "generated" AndroidManifest.xml file in the ionic/cordova build process ??? |
I applied a patch on node_modules using the patch-package mechanism :
https://www.npmjs.com/package/patch-package
Not ideal, but it works :
diff --git a/node_modules/ionic-plugin-deeplinks/plugin.xml
b/node_modules/ionic-plugin-deeplinks/plugin.xml
index e23ff60..b245b3b 100644
--- a/node_modules/ionic-plugin-deeplinks/plugin.xml
+++ b/node_modules/ionic-plugin-deeplinks/plugin.xml
@@ -53,10 +53,6 @@
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="$DEEPLINK_SCHEME"
android:host="$DEEPLINK_HOST"
android:pathPrefix="$ANDROID_PATH_PREFIX" />
- <data android:scheme="$DEEPLINK_2_SCHEME"
android:host="$DEEPLINK_2_HOST"
android:pathPrefix="$ANDROID_2_PATH_PREFIX" />
- <data android:scheme="$DEEPLINK_3_SCHEME"
android:host="$DEEPLINK_3_HOST"
android:pathPrefix="$ANDROID_3_PATH_PREFIX" />
- <data android:scheme="$DEEPLINK_4_SCHEME"
android:host="$DEEPLINK_4_HOST"
android:pathPrefix="$ANDROID_4_PATH_PREFIX" />
- <data android:scheme="$DEEPLINK_5_SCHEME"
android:host="$DEEPLINK_5_HOST"
android:pathPrefix="$ANDROID_5_PATH_PREFIX" />
</intent-filter>
</config-file>
|
Same issue, empty hosts entries break app linking completely on Android 12. |
In my case it's not breaking app linking but I can see issues for the empty hosts on the google play console in the deep links category. |
Same case as @geshub. Errors in deep link view in google play console due to empty host. |
same as @geshub. I have errors in play console about deep link. Is there any way to solve it? |
@baraaksayeth I fixed it by filling all the empty deeplinks hosts, schemes and prefixes with dummy values. |
@geshub Is it possible to fill all empty deeplink with the same value? |
@baraaksayeth I think it's safer to do it with links you're not using than repeating the same. I've got no errors on my deeplinks on google play console. |
@geshub Is there any promblems with verification domain if I fill with empty host etc.? |
@baraaksayeth probably yes, I filled it with dummy directories on my existing and verified domain. |
@geshub so you fill only with different path but the domain is still same right? |
@baraaksayeth correct |
Using the latest version of this plugin, app linking verification isn't launched due to extraneous empty hosts
By "isn't launched", I mean:
adb shell dumpsys package d
show no entry for my app (whereas when a verification fails there is at least an entry with "ask")Not working :
Working :
I have tested this on 3 different Android devices and Android versions.
I think you should find a way to remove the entries for extra hosts when these hosts are not defined. Or maybe if they were empty instead of containging a space ?
The text was updated successfully, but these errors were encountered: