How to interceptor iOS universal links in an App

485 Views Asked by At

I work about universal links iOS recently. But I found out that in some App, my universal links can't open my App 100%. So, I want to know how to prevent a universal links to open a third part App in my App. Thanks!

1

There are 1 best solutions below

2
On

Universal Links require explicit user interaction to engage. If navigation to Universal Links happens as a result of Java Script redirect, or server redirect or by navigation from another App, then Universal Links will not engage and user will stay in browser/webview. Also it is possible for the user to disable Universal Links for specific domain on specific device.

Alternatively, if you want to blacklist some pages of the website to be opened in the App you can edit AASA file to exclude these pages. See also this answer Hide "Open in app" banner while using Universal links

Does this answers your question?