This repository was archived by the owner on Aug 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 223
Android - Deeplinks plugin not working when Project migrated from cordova to capacitor #262
Copy link
Copy link
Open
Description
Hello,
We have recently migrated our project from cordova to capacitor from then Deeplinks functionality stopped working.The issue is mainly with Android platform. Deeplink not redirected to app, on clicking a link, the match and no match functions are never called, I'm not getting any toasters, does not navigate.
- I see few configuration warning's related to Deeplinks in my console after running "npx cap sync"
update android [warn] Configuration required for ionic-plugin-deeplinks.
Add the following to AndroidManifest.xml:
<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:scheme="$URL_SCHEME"/>
</intent-filter>
[warn] Configuration required for ionic-plugin-deeplinks.
Add the following to AndroidManifest.xml:
- Even after adding them to AndroidManifest.xml i still see the warning.
-"dependencies": {
"@agm/core": "^3.0.0-beta.0",
"@angular-devkit/build-angular": "~12.1.0",
"@angular/common": "^12.1.0",
"@angular/core": "^12.1.0",
"@awesome-cordova-plugins/core": "^5.45.0",
"@awesome-cordova-plugins/deeplinks": "^5.45.0",
"@ionic-native/deeplinks": "5.35.0",
"ionic-plugin-deeplinks": "file:projects/patches/ionic-plugin-deeplinks-master",
}
"cordova": {
"plugins": {
"ionic-plugin-deeplinks": {
"URL_SCHEME": "",
"DEEPLINK_HOST": "",
"DEEPLINK_SCHEME": "https",
"ANDROID_PATH_PREFIX": "",
"ANDROID_2_PATH_PREFIX": "/",
"ANDROID_3_PATH_PREFIX": "/",
"ANDROID_4_PATH_PREFIX": "/",
"ANDROID_5_PATH_PREFIX": "/",
"DEEPLINK_2_SCHEME": " ",
"DEEPLINK_2_HOST": " ",
"DEEPLINK_3_SCHEME": " ",
"DEEPLINK_3_HOST": " ",
"DEEPLINK_4_SCHEME": " ",
"DEEPLINK_4_HOST": " ",
"DEEPLINK_5_SCHEME": " ",
"DEEPLINK_5_HOST": " "
},
}.
Appreciate your help
Metadata
Metadata
Assignees
Labels
No labels
