ionic-team / ionic-plugin-deeplinks

Handle deeplinks into your Ionic/Cordova apps from Universal Links, App Links, and Custom URL schemes. For those using Ionic 2, there are some nice goodies that make life easier.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android - Deeplinks plugin not working when Project migrated from cordova to capacitor

keerthivuggu opened this issue · comments

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": " "
    },
    }.

Screen Shot 2022-09-30 at 10 27 34 AM

Appreciate your help

Hello all

does anyone help us to fix this type case ?

we also received same type warning so please help

Thank you