Skip to content
This repository was archived by the owner on Aug 17, 2023. It is now read-only.
This repository was 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

@keerthivuggu

Description

@keerthivuggu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions