Adding a specific intent filter to my Android manifest breaks other links when using browser

3 days ago 7
ARTICLE AD BOX

I'm having a strange issue with my app. I have multiple deeplinks set up and working correctly and have worked correctly for years.

There is an odd issue. When I open a link with the path /car-details in the browser, my app opens as intended. If I add the pathPrefix /car-search to my app, the /car-details link stops opening the app and opens in the browser instead.

This only affects browsers. Normal deeplinking (whatsapp, email etc) work correctly. Partial matches break the app /car-sea, /car-searc Longer paths don't break deeplinking /car-searchx does not break /car-details Different paths break each other: /bike-search breaks /bike-details but doesn't break `/car-details' There doesn't appear to be any other manifests being merged, the final merged manifest seems correct Manifest arrangement seems to make no difference, I've tried many different combinations of applying the intent-filters and different approaches including pathPrefix and pathPattern Using a different activity does seem to stop the issue occurring, but we need the same activity to be launched for all links, so isn't practical.

Example manifest lines:

​<!-- <data android:pathPrefix="/car-search" /> if uncommented car-details breaks --> <data android:pathPrefix="/car-details" /> <data android:pathPrefix="/bike-details" /> <data android:pathPrefix="/van-details" />

Any suggestions are appreciated, We've tried a whole ton of things with this, it's strange.

Read Entire Article