Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Downloading Javascript for execution in UIWebView versus JavascriptCore

The iOS license terms states:

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 builtin 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.

Which is a slight change to the terms as discussed here: Does javascript on iOS have to be downloaded *by* the WebKit framework in addition to executing within its framework?

Which arguably implies you CAN download and execute Javascript if its executed within a UIWebView as UIWebView is part of the builtin WebKit framework.

What is the situation regarding downloading and executing Javascript using not UIWebView but JavaScriptCore. Is JavaScript core considered part of the WebKit framework

like image 738
Gruntcakes Avatar asked Jul 22 '26 15:07

Gruntcakes


1 Answers

Apple updated the policy which explicitly allows JavascriptCore to download and run javascript.

Here's the latest

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 or JavascriptCore, 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.

You may now choose freely wether to use UIWebView/WKWebView or JavascriptCore.

like image 135
hfossli Avatar answered Jul 25 '26 06:07

hfossli



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!