用于带有文件上传功能的 jquery 移动网站的 iOS 应用程序包装器
我使用 jquery mobile 创建了我的网站的移动版本。我的网站需要大量图像上传设施(对于网站来说非常重要)。我想知道是否有办法从 jquery 移动网站创建 ios 应用程序。这个想法是:
- 应用程序基本上是一个网络浏览器
- 应用程序,加载我的网站应用程序的移动版本,
- 用可用的照片浏览器/相机按钮替换 jquery 移动网站中找到的任何“文件”字段。
这意味着我不需要构建一个完全独立的移动应用程序来使用我的网站,并且当我更新 jquery 移动源时,它会自动更新 ios 应用程序访问的源。
我愿意接受任何建议。我想知道phonegap 是否有办法做到这一点。
谢谢!
I have created a mobile version of my website using jquery mobile. My site requires alot of image upload facilities (pretty important for the site). I was wondering if there was a way to create an ios app from the jquery mobile site. Here is the idea:
- app is bascially a web browser
- app loads the mobile version of my site
- app replaces any 'file' fields found in the jquery mobile site with a usable photo browser/camera button.
This means that I won't need to build a entirely seperate mobile app to work with my site and when I update the jquery mobile source, it automatically updates the source that the ios app accesses.
I'm open to any suggestions. I am wondering if maybe phonegap has a way of doing this.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是可能的,但不会获得应用商店的批准,因为它取决于加载您的移动网站,解决方案是采用您的移动网站并将其构建在phonegap中。您可以加载外部图像,但尽量不要做太多,因为它再次不会被批准。
如果您确实将移动站点文件包装在phonegap中,您应该可以继续使用,您仍然可以在线访问数据,但使用ajax调用来获取该信息,并且确保为没有互联网的用户提供一个选项连接 - Twitter 和 Facebook 以及类似的应用程序都假设所有内容都依赖于连接,但其他应用程序则没有暗示,并且可能会导致拒绝,除非您对连接进行了错误检查。
希望有帮助!
This is possible, but won't get approved into the app store since it depends on loading your mobile site, the solution would be to take your mobile site and build it in phonegap. You can load external images, but try not to do too much of that because it will again not be approved.
If you do wrap your mobile site files in phonegap you should be good to go, you can still access data online, but use ajax calls to get that information, and also be sure to have an option for users who don't have an internet connection - Twitter and Facebook and apps like that come with the assumption that all content depends on a connection, but other apps that isn't implied and can cause rejection unless you have error checking for connection.
Hope that helps!