简体   繁体   English

HTML5 Webapp作为iPhone和Android上的常规图标或应用程序。

[英]HTML5 Webapp as regular icon or app on iPhone and Android.

Sorry if this is a noob question, I searched quite a bit and couldn't find an answer. 对不起,如果这是一个noob问题,我搜索了很多,但找不到答案。

I'm developing a html5 app that relies on sqlite for local storage. 我正在开发一个依赖于sqlite进行本地存储的html5应用程序。

I'd like for it to appear as an app icon on the iPhone/Android screen, what's the best way to do this? 我希望它在iPhone / Android屏幕上显示为应用程序图标,最好的方法是什么? Ie can I write some sort of "wrapper" app to achieve it? 即我可以编写某种“包装”应用程序来实现它吗?

Thanks! 谢谢!

No need for PhoneGap or a launcher on the iPhone. iPhone上不需要PhoneGap或启动器。

Per Apple: 每个Apple:

<link rel="apple-touch-icon" href="/custom_icon.png"/>

Documentation and more fun options you can add to your web app: https://developer.apple.com/library/content/documentation/AppleApplications/Reference/SafariWebContent/ConfiguringWebApplications/ConfiguringWebApplications.html 您可以添加到Web应用程序的文档和更有趣的选项: https//developer.apple.com/library/content/documentation/AppleApplications/Reference/SafariWebContent/ConfiguringWebApplications/ConfiguringWebApplications.html

PhoneGap is an open source wrapper for local web apps that runs on several mobile platforms. PhoneGap是一个开源包装器,适用于在多个移动平台上运行的本地Web应用程序。 There is no reason you could not use it with hosted web pages as well. 没有理由不能将它与托管网页一起使用。

Apple would probably reject something they deemed equivalent to a web bookmark. Apple可能会拒绝他们认为等同于网络书签的内容。

我认为您必须开发一个“启动器”应用程序,它只会调用浏览器并将用户发送到您的Web应用程序。

我认为在Android中你必须开发一个包装器应用程序来显示你的webapp的webview。

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

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