erich Posted July 3, 2016 Share Posted July 3, 2016 Hi This has me so confused, how do I link to a url in an android app, eg. playButton.press = () => { window.location.href="http://example.com"; } It works fine in when playing my game in desktop, but once I try it as an app on my device nothing happens ? Any ideas Eric Quote Link to comment Share on other sites More sharing options...
erich Posted July 4, 2016 Author Share Posted July 4, 2016 Found the problem, I needed to use the whitelist plug-in the PhoneGap and then in my config.xml I included : <plugin name="com.indigoway.cordova.whitelist.whitelistplugin" spec="1.1.1" source="pgb" /> <feature name="Whitelist" > <param name="android-package" value="org.apache.cordova.whitelist.WhitelistPlugin"/> <param name="onload" value="true" /> </feature> <allow-intent href=" http://example.com /*" /> <allow-navigation href=" http://example.com /*" /> <access origin="http://example.com" /> Hope this helps someone else that may get stuck on it ERic Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.