mardi 4 août 2020

Web on mobile - Open url's in full browser apps when navigating from Chrome Custom Tabs or Safari ViewController

I have a web page that is often launched from inside an Android/iOS app in their respective "tab system", Chrome Custom Tabs / SFSafariViewController.

The requirement I have is to have some urls redirect and open in the full browser app instead of navigating in the tab/controller.

I tried adding to one of those URLs the href target="_blank" or use window.open()` but in Android at least that opens a custom tab inside of the existing tab. Haven't had the chance to test that on iOS as of yet but I have the sneaking suspicion it will do nothing as the Safari View Controller does not support windows.

Any ideas on how I can force these 2 tools to open a url in the full apps would be much appreciated.

Thanks.




Aucun commentaire:

Enregistrer un commentaire