Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is Javascript an "other executable code" for iOS?

In Apple's guidelines, I saw:

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

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

What I'm trying to do now is to provide a TextView that allows the users to enter Javascript and run in UIWebView by

stringByEvaluatingJavaScriptFromString:

So I'm not 'downloading' any code, and Javascript is not something 'other' but part of the UIWebView's features.

In some ways, its just like running a regular UGC WebApp in UIWebView.

I'm ready to submit the app but still worry about being rejected after a 10-day-waiting...

Anybody knows exactly whether this is OK??

like image 611
PeakJi Avatar asked Aug 15 '11 15:08

PeakJi


2 Answers

Check your current iOS Standard Agreement. It may explicitly allow executing Javascript inside UIWebView, no matter whether the Javascript was downloaded or otherwise. It also may allow interpreting any source code (Javascript or otherwise) that isn't downloaded (e.g. entered as text, as with the half dozen or so Basic interpreters allowed in the App store since the agreement was revised last year).

like image 154
hotpaw2 Avatar answered Oct 31 '22 10:10

hotpaw2


Interpreting it this way would disqualify, for example, all apps that use Facebook Connect, which shows a dialog in a web view and there's at least some Javascript in it.

So you should be fine.

like image 20
SVD Avatar answered Oct 31 '22 10:10

SVD