Android Offline Webapp Resources

≯℡__Kan透↙ 提交于 2020-01-03 11:57:12

问题


I just made an offline card game webapp for iPhone and Android When doing this, I went entirely off of the abundant iPhone offline webapp information on the web. However, it seems to work perfectly on Android with one exception. When I open it after killing the web connection, it states an error about not being able to connect. After canceling, it works just fine.

My question is this: has anyone found any decent resources specifically regarding Android offline web apps? Or is this simply a hack? The iOS devices seems to support this in a more intuitive way.

UPDATE: I had forgotten about this issue that I posted about. This seems to have been resolved for a while. I think it may have been fixed in Android 2.1. I just seemed to have not noticed that there was no error message. However, it still does not run HTML 5 webapps as cleanly as iOS in that the nav bar is still present when running from a desktop bookmark.


回答1:


After messing with this stuff for a bit, the iPhone/iOS stuff seems to work fine. It might be because the android browser is webkit based. But for whatever reason, the file manifest is respected

Bottom line, iPhone HTML5 mobile app documentation seems to work fine for Android.

Here's a quick example that runs on both:

http://www.davidgranado.com/demos/make_a_set_mobile/

Here are the rules:

http://www.davidgranado.com/2010/11/make-a-set-game/



来源:https://stackoverflow.com/questions/4321622/android-offline-webapp-resources

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!