简体   繁体   English

基于 html5 的游戏在 android 中不起作用

[英]html5 based game not working in android

I have an html5 game that was designed that will not work on android phones.我有一个 html5 游戏,它被设计成不能在安卓手机上运行。 The client is saving their website to their android device as a webapp and when they open the app from their homescreen, when they click on the link for the game, all they are getting is a black screen.客户将他们的网站作为 web 应用程序保存到他们的 Android 设备上,当他们从主屏幕打开应用程序时,当他们点击游戏链接时,他们得到的只是黑屏。 I am thinking that because they are getting this issue, when they save the app to their phone, it is saving a cached version and will not allow the necessary files to load for the game.我在想,因为他们遇到了这个问题,所以当他们将应用程序保存到手机时,它会保存一个缓存版本,并且不允许为游戏加载必要的文件。 When they try this on the desktop, it works perfectly, as well when they try on any apple device it will work, only because when you click a link on a webapp saved to the homescreen on an apple device it breaks out of the shell and opens safari browser.当他们在桌面上尝试这个时,它运行得很好,当他们在任何苹果设备上尝试时,它都可以运行,只是因为当你点击保存在苹果设备主屏幕上的 web 应用程序上的链接时,它会跳出外壳,打开 safari 浏览器。

Is there any way to make the link to the game break out of an android webapp that is saved to the homescreen so that it can open in a web browser instead of inside the app?有什么方法可以让游戏的链接从保存到主屏幕的 android webapp 中断开,以便它可以在 web 浏览器中打开,而不是在应用程序内打开?

Any suggestions are welcome.欢迎任何建议。

The link to the app is http://mobilesourceapps.com/pondwiser该应用程序的链接是http://mobilesourceapps.com/pondwiser

Thanks again guys!再次感谢各位!

Try PhoneGap.试试PhoneGap。 An auto-builder.一个自动生成器。 http://phonegap.com/ it will compile the mobile versions for Android. http://phonegap.com/它将为 Android 编译移动版本。 There is also a version-download for IOS from the App Store.也可以从 App Store 下载 IOS 版本。 This might help you.这可能对你有帮助。 Without code is tricky.没有代码是棘手的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM