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

Android Empty hosts result in all prefixes being accepted #255

Open

Description

@joeldhenry

If you leave host & prefix 2-5 blank, it accepts all prefixes by default:

<intent-filter android:autoVerify="true">
   <action android:name="android.intent.action.VIEW" />
   <category android:name="android.intent.category.DEFAULT" />
   <category android:name="android.intent.category.BROWSABLE" />
   <data android:host="domain.com" android:pathPrefix="/path" android:scheme="https" />
   <data android:host=" " android:pathPrefix="/" android:scheme=" " />
   <data android:host=" " android:pathPrefix="/" android:scheme=" " />
   <data android:host=" " android:pathPrefix="/" android:scheme=" " />
   <data android:host=" " android:pathPrefix="/" android:scheme=" " />
</intent-filter>

meaning that anything on domain.com/ will be accepted, rather than just domain.com/path

related to #229
and #165

Activity

  1. wujood commented on Mar 24, 2022

    @wujood

    Same issue here. No fix in sight?

  2. dmitry-salnikov commented on Apr 28, 2022

    @dmitry-salnikov

    Same issue, breaks app linking in Android 12.

  3. added a commit that references this issue on Sep 8, 2022
  4. baraaksayeth commented on Jan 24, 2023

    @baraaksayeth

    image

    is there someone know what is the problem with my google play console

    this is my conf in package.json

    "ionic-plugin-deeplinks": {
            "URL_SCHEME": "myweb",
            "DEEPLINK_SCHEME": "https",
            "DEEPLINK_HOST": "myweb.com",
            "ANDROID_PATH_PREFIX": "/",
            "ANDROID_2_PATH_PREFIX": "/dummy2",
            "ANDROID_3_PATH_PREFIX": "/dummy3",
            "ANDROID_4_PATH_PREFIX": "/dummy4",
            "ANDROID_5_PATH_PREFIX": "/dummy5",
            "DEEPLINK_2_SCHEME": "https",
            "DEEPLINK_2_HOST": "myweb.com",
            "DEEPLINK_3_SCHEME": "https",
            "DEEPLINK_3_HOST": "myweb.com",
            "DEEPLINK_4_SCHEME": "https",
            "DEEPLINK_4_HOST": "myweb.com",
            "DEEPLINK_5_SCHEME": "https",
            "DEEPLINK_5_HOST": "myweb.com"
          },
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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