cordova - Hybrid app send link to be open by system in android -


let's there youtube link in app, want when user presses it, link gets opened youtube app(if user has youtube, if doesn't other app can handle request).
thus, want android system handle link, not app.

thank you.

in config.xml added:

<access origin="http://img.youtube.com/*" launch-external="no"/> <access origin="http://*" launch-external="yes"/> <access origin="https://*" launch-external="yes" /> 

and removed <access origin="*"/>

so when call window.open(link, '_system'); opens link in youtube app.

more information here


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -