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 app linking fails due to empty hosts #229

@QuentinFarizon

Description

@QuentinFarizon

Using the latest version of this plugin, app linking verification isn't launched due to extraneous empty hosts

By "isn't launched", I mean:

  • verification process is not event launched : there is no logcat entry for SingleHostAsyncVerifier nor IntentFilterIntentOp
  • adb shell dumpsys package d show no entry for my app (whereas when a verification fails there is at least an entry with "ask")

Not working :

            <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="www.boks.app" android:pathPrefix="/" 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>

Working :

            <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="www.boks.app" android:pathPrefix="/" android:scheme="https" />
            </intent-filter>

I have tested this on 3 different Android devices and Android versions.

I think you should find a way to remove the entries for extra hosts when these hosts are not defined. Or maybe if they were empty instead of containging a space ?

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