是否允许将 javascript 代码下载到 iPhone [英] Is it permited to download javascript code to iPhone

查看:20
本文介绍了是否允许将 javascript 代码下载到 iPhone的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个混合应用程序,它基本上是一个从 UIWebview 内的应用程序文件夹运行的网站.

I have an hybrid application, it's basically a website running from the application folder inside a UIWebview.

问题是我打算通过从互联网下载整个网站然后替换旧网站来更新我的网站.

The problem is that I was planning to update my website by downloading the whole website from internet and then replacing the old website.

今天我发现Apple现在提供了App Store Review Guidelines,其中包括以下规则:

Today I found that Apple now provides the App Store Review Guidelines and among others there are the following rules:

2.7 以任何方式或形式下载代码的应用将被拒绝

2.7 Apps that download code in any way or form will be rejected

2.8 安装或启动其他可执行代码的应用程序将被拒绝

2.8 Apps that install or launch other executable code will be rejected

因为我的网站有 html、css 和 javascript,这是否意味着我的应用程序将被拒绝或有机会被接受?您对此有何看法?

Because my site has html, css and javascript, does that mean that my app will be rejected or is there any chance to be accepted? What are your thoughts on that?

推荐答案

来自应用开发者协议的新文本,关于下载可执行代码:

From the new text of of the application developer agreement, regarding downloading executable code:

上述情况的唯一例外是由 Apple 的内置 WebKit 框架下载和运行的脚本和代码.

The only exception to the foregoing is scripts and code downloaded and run by Apple's built-in WebKit framework.

这包括 javascript 和混合应用程序,所以你应该没问题.

This includes javascript and hybrid applications, so you should be fine.

尽管考虑到所有这些,您为什么不让您的应用程序利用 iPhone 网络应用程序的东西呢?您仍然会在主屏幕上看到一个图标,并且无需让 Apple 批准您的应用程序即可摆脱浏览器镶边.

Although, taking all of this into account, why didn't you just allow your app to take advantage of the iPhone webapp stuff? You still get an icon on the home screen, and get rid of the browser chrome without having to get Apple to approve your app.

这篇关于是否允许将 javascript 代码下载到 iPhone的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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