苹果会否拒绝下载其他JavaScript的Cordova应用程序

所有.

我的团队一直在考虑使用Cordova开发iOS应用的想法,最近,我们一直在考虑将尽可能多的主要JavaScript卸载到我们的服务器上,以加快修复关键错误的速度.

这个想法是:

>包含所有HTML,CSS,插件和Cordova文件的本机应用程序
>作为服务器中的外部脚本添加到页面的主要JavaScript
>每个页面都有设备就绪功能,一旦可用,它将建立并启动主JavaScript

我已经看到有评论说Apple可以信任在Web视图中运行的代码,但是看起来像这样的项目确实可能是一个安全问题.

我知道与此相关的其他问题,但我觉得上下文总是不同的.

谢谢!

解决方法:

一年前,苹果更改了iOS开发者计划协议以允许下载代码,请参阅第3.3.2节

3.3.2 An Application may not download or install executable code. Interpreted code may only be used in an Application if all scripts,
code and interpreters are packaged in the Application and not
downloaded. The only exception to the foregoing is scripts and code
downloaded and run by Apple’s built-in WebKit framework, provided that
such scripts and code do not change the primary purpose of the
Application by providing features or functionality that are
inconsistent with the intended and advertised purpose of the
Application as submitted to the App Store.

因此,当您使用cordova,而cordova使用WebKit框架时,如果您不更改应用程序的主要用途,那么您将不会被拒绝.

上一篇:angularjs-如何永久运行Ionic服务?


下一篇:如何使用PhoneGap在Android上创建白色警报?