Skip to content
This repository has been archived by the owner on Aug 17, 2023. It is now read-only.

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

Open
keerthivuggu opened this issue Sep 30, 2022 · 1 comment

Comments

@keerthivuggu
Copy link

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

@ipehimanshu
Copy link

Hello all

does anyone help us to fix this type case ?

we also received same type warning so please help

Thank you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants