gpt4 book ai didi

javascript - Apple 会拒绝下载额外 JavaScript 的 Cordova 应用程序吗?

转载 作者:塔克拉玛干 更新时间:2023-11-01 21:38:20 25 4
gpt4 key购买 nike

全部。

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

这个想法是:

  1. 包含所有 HTML、CSS、插件和 Cordova 文件的原生应用
  2. 作为来自服务器的外部脚本添加到页面的主要 JavaScript
  3. 每个页面的设备就绪函数,一旦可用,该函数将设置并启动主 JavaScript

我看到评论说 Apple 可能会信任在 webview 中运行的代码,但看起来像这样的项目确实可能存在安全问题。

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

谢谢!

最佳答案

一年前,苹果更改了 iOS 开发者计划协议(protocol),允许下载代码,请参阅第 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框架,如果你不改变Application的主要用途,你就不会被拒绝

关于javascript - Apple 会拒绝下载额外 JavaScript 的 Cordova 应用程序吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33189051/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com