2

I am having a website in which i am using api's like push notification ,but when anyone open via Facebook or Twitter they tend to load an Android webview in which push notification api's are not there, the hack which i found is that if i can open chrome from webview in this way my push notification would work

it had tried

window.open("googlechrome://navigate?url=" + location.href, "_system")

but this gives error as Not allowed to load local resource:

need help from you all

Pranay Dutta
  • 2,483
  • 2
  • 30
  • 42

1 Answers1

6

As posted over here use the below code

window.location = 'intent:https://example.com#Intent;end';
Pranay Dutta
  • 2,483
  • 2
  • 30
  • 42