1

I am trying to open a website in chrome from facebook's in app browser.

For that i am trying following code but it does not seem to open chrome.

window.location.href = 'googlechrome://navigate?url=example.com';

Meanwhile i can still open playstore market using

window.location.href = 'market://details?id=avscd';

Is there anything i am missing here or chrome changed way to open links?

Naveed Khan
  • 95
  • 1
  • 11
  • Please check below link. it might help you. https://stackoverflow.com/questions/12013416/is-there-any-way-in-android-to-force-open-a-link-to-open-in-chrome – yogesh Oct 09 '19 at 12:26

1 Answers1

0

I think you should try doing it this way instead:

window.locaton  = "https://github.com/"

Thanks

Olalekan
  • 185
  • 1
  • 10