Not having a host (or, more formally authoritative) part in the URI, this is completely normal. Think of the commonly used file:///tmp/example.file
Note that the painless hierarchical URI is not opaque (for example, mailto: john@example.com ), but has a path. Like a file URI, the host name is replaced with a single / .
Therefore, your URI should be of the form my-app:///product/XXX . An Intent filter might look like this:
<intent-filter> <category android:name="android.intent.category.DEFAULT"/> <action android:name="android.intent.action.VIEW"/> <data android:host=""/> <data android:scheme="my-app"/> <data android:pathPrefix="/product"/> <data android:pathPattern=".+"/> </intent-filter>
You will still receive a warning about an empty host name, which is absolutely normal. This warning is the result of checking the Firebase App Indexing , which, I believe, only makes sense if you have a website (from which you would take the hostname, i.e. all the URIs then).
Since you wonβt use indexing anyway, you can remove the warning by adding the following lint.xml to your project:
<issue id="GoogleAppIndexingUrlError" severity="ignore"/>
See the URI specification and Wikipedia entry in URI files for more details.
source share