DeepLinkDispatch icon indicating copy to clipboard operation
DeepLinkDispatch copied to clipboard

Is it still true that "Intent Filters may only contain a single data element for a URI pattern"?

Open mtiidla opened this issue 8 years ago • 0 comments

The readme specifies that:

Intent filters may only contain a single data element for a URI pattern. Create separate intent filters to capture additional URI patterns.

Following that advice explodes the AndroidManifest.xml a few hundred lines in our case. We have tried to use only two intent filters, one for http|s links and one for in-app links and everything works.

Have we misunderstood what you mean by "URI pattern" or is that note outdated to an older version of DeepLinkDispatch?

I can also see in the demo app that multiple data (scheme) elements are applied to a single intent filter.

<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="http"/>
    <data android:scheme="https"/>
    <data android:host="airbnb.com"/>
</intent-filter>

mtiidla avatar Feb 23 '18 14:02 mtiidla