pploco1996 Posted November 4, 2014 Share Posted November 4, 2014 Hi guys. I'm wrking on a HTML5 game right now and I have to test on android. The problem is that when I put the game on my phone's memory and open it, it wont run on any browser I try (something about a permission?). I know I can upload it to a cloud and try it with internet but it's way slower than just transfering the game to the phone. Is there any way to do this? Thanks Quote Link to comment Share on other sites More sharing options...
Son of Bryce Posted November 4, 2014 Share Posted November 4, 2014 Will the game work locally in all browsers? Firefox and Chrome?There are certain permissions restraints when loading local files from your browser. Loading images or json might throw this error.Try loading from web server to see if it works on android.If it works, youll probly need a wrapper like Phonegap to run on your phone. Quote Link to comment Share on other sites More sharing options...
pploco1996 Posted November 4, 2014 Author Share Posted November 4, 2014 Hi, thank you answering but I think missunderstood the question. I just need to run html5 games locally on android. Quote Link to comment Share on other sites More sharing options...
totor Posted November 4, 2014 Share Posted November 4, 2014 you need a webserver on your dev computer to serve the game over wifi then enter the local address of your dev pc in the address bar of your android browser. assuming your are on windows, a quick and dirty fix is : copy and run mongoose server in the directory of your game where your index.html is, then in the address bar of your android browser type 192.168.x.x (the address given to you by mongoose) You may need to allow mongoose in your firewallor use a wrapper like cocoonjs Quote Link to comment Share on other sites More sharing options...
pploco1996 Posted November 4, 2014 Author Share Posted November 4, 2014 Thank you. I'll take a look at mongoose! 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.