移动应用程序与 Web 应用程序 - Apple 不再接受 Web 应用程序? [英] Mobile App vs Web App - Apple no longer accepting web apps?

查看:32
本文介绍了移动应用程序与 Web 应用程序 - Apple 不再接受 Web 应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我似乎在网上、SO 或 Android SO 上都找不到这个.

I cannot seem to find this on the web nor on SO or Android SO.

基本上我打算用 PHP/MySQL 后端制作一个简单、响应式的 HTML5 移动网站 - 它就像一个日记/曲目规划器.然后我希望使用 Phonegap、Titanium 或其他一些库来快速制作移动应用程序文件,然后将其发布到市场上 - 不会有真正的原生功能.

Basically I plan to make a simple, responsive HTML5 mobile website with a PHP/MySQL backend - it is like a diary/track planner. I then wish to use Phonegap, Titanium or some other library to quickly make a the mobile app files and then ship it on the marketplace - there will be no real native features.

我刚刚从我的堂兄那里听说 Apple 不再接受非本地应用程序 - 因此 Phonegap 和其他应用程序必须使用本地功能.这是真的吗?

I have just heard from my cousin however that Apple is no longer accepting non-native apps - so Phonegap and other apps must use native functions. Is this true?

推荐答案

Apple store 仍然接受混合应用.

Apple store is still accepting hybrid apps.

根据我的经验,如果您使用服务器端代码生成页面布局,您的应用将被拒绝.但是,如果您使用 PHP/MySQL 后端作为 Web 服务与移动客户端进行通信,那么您就可以开始了.这是一个相当糟糕的情况,因为您需要使用混合应用程序来生成页面内容.但至少你的应用会被接受.

From my experience your app will be rejected if you use server side code to generate your page layout. But if you use PHP/MySQL back end as a web service to communicate with a mobile client then you are good to go. This is a rather bed situation because you need to use your hybrid app for page content generation. But at least your app will be accepted.

您的应用布局还必须类似于原生 iOS 应用.

One more thing your app layout must resemble native iOS apps.

Titanium 仍然是一个安全的赌注,因为它的最终结果是一个本机应用程序.如果是 Phonegap,一个好的解决方案是 Phonegap + jQuery Mobile 或 Phonegap + KendoUI(可能是最好的解决方案,因为它的 UI 最接近原生 iOS 外观).

Titanium is still a safe bet because its final result is a native app. In case of Phonegap a good solution is Phonegap + jQuery Mobile or Phonegap + KendoUI (probably the best solution because it UI is closest to native iOS look).

为了更好地说明:

  • PHP/MySQL 后端作为 Web 服务

  • PHP/MySQL back end as a web service

您的所有页面都已经在 phonegap 应用程序中(在 assets/www 目录中)并且 ajax 用于与 Web 服务器通信并检索内容(例如新闻列表或单篇文章数据).然后该数据用于在 html 文件中生成页面内容.

All your pages are already inside phonegap app (in assets/www dir) and ajax is used to communicate with web server and retrieve content (for example news lists or single article data). Then that data is used to generate a page content inside a html file.

另请看我的回答(对类似问题):https://stackoverflow.com/a/14166593/1848600

Also take a look at my answer (to a similar question): https://stackoverflow.com/a/14166593/1848600

Phonegap 和从远程服务器加载网络应用

Phonegap and loading a web app from remote server

基本上,您打开远程 Web 应用程序并将其显示在 phonegap 应用程序中.这是一个例子(也是我的回答):https://stackoverflow.com/a/13996437/1848600

Basicaly you open you remote web app and show it inside phonegap app. Here's an example (also my answer) : https://stackoverflow.com/a/13996437/1848600

这篇关于移动应用程序与 Web 应用程序 - Apple 不再接受 Web 应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆