4

I'm trying to redirect users from the SnapChat browser to Google Chrome when using an Android Phone.

I have followed the instructions recommending I use this:

Phonegap - How to open external link inside the app

<a href="#" onclick="window.open('https://www.google.com', '_system')">

This follows the link, but keeps me in the in-app-browser.

Further research, however, shows me that '_sytem is relegated just to Cordova etc.

Any suggestions as to how to exit to Google Chrome?

I followed JS - Mobile - Open Safari from any browser and was able to do this successfully on iOS to Safari.

GeneralBear
  • 1,011
  • 3
  • 11
  • 35

1 Answers1

2

For android only, you can do this:

googlechrome://navigate?url=https://intaface.me/rcv/764e184b-4a43-466e-ae24-12dc14f8684b

For general approach of opening default browser while on in-app browser, you can follow this: https://stackoverflow.com/a/70066226/9814737

Phạm Huy Phát
  • 783
  • 9
  • 17