Search code examples
androidhtmlapplinks

Link that ignores applink


Have a website, want to link to another page of it, and if the user has the android app installed give the option to view it in the website or app...

But not using the android "open with" screen, as often users will select "always" thus hiding the option.

So need a link that forces it to open in browser even though there is a app that could accept that link.


Solution

  • One solution is using www.example.com for applinks and example.com for website

    Ended up doing it differently.

    Now if it detects "android" in the user agent making the request it shows a selection box with these options: - link to the index page. This will offer to open in app if installed, or do nothing otherwise. - download link to app - close selection box and continue with web version.