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

angularjs - Redirect to a new template in angular js -

Oracle SQL. How to select specific IDs where value of columns specify criteria? -

Desktop Launcher for Python Script Starts Program in Wrong Path (Linux) -