javascript - Trigger.io: Open url with web browser on Android -


i have created button "share on twitter" opens url share on twitter in mobile web browser works fine on ios nothing on android.

is there missing or don't know about?

    var send = 'http://twitter.com/share';     var url =  'http://example.com/';     var text = "example text";     var openurl = send + "?url=" + url + "&text=" + text;     window.open(openurl, '_blank'); // opens url 

nothing happens on android works fine on ios.

in trigger apps external pages default open in devices browser, means can run

window.location = 'http://google.com' 

to open external url in browser.

if want link user can click then

<a href="http://google.com>click here</a> 

will open in devices browser.

if want user browse external website within app can use tabs module open modal browser window user can close , return app. see https://trigger.io/docs/current/api/modules/tabs.html


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -