espace Posted January 23, 2018 Share Posted January 23, 2018 hi, i use this code to access a link on the net. it works very well when i'm on browser. When i use it on mobile with cocoon the link don't open...could you tell me what i must do ? thanks var link="https://www.google.com" game.time.events.add(1000,function(){window.location.href = link}) Quote Link to comment Share on other sites More sharing options...
espace Posted January 23, 2018 Author Share Posted January 23, 2018 solved : //install plugin :inappbrowser in cocoon.io // this.testlink=function(){ var link="https://www.google.com" game.time.events.add(4000,function(){cordova.InAppBrowser.open(link, '_blank', 'location=yes')}) }; is_mobile && this.testlink(); mattstyles 1 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.