Search code examples
javascriptjquerycordovaobfuscationphonegap

Is Javascript code obfuscation allowed by the iOS App Store in Phonegap / Cordova apps?


I have seen some iOS apps (not mine) being rejected due to “because of code obfuscation and selector mangling”. I would like to obfuscate my Javascript code (using an online tool) of a PhoneGap web app. I know it's not great protection, but at least is something.

The question is, is this allowed or will it be rejected by the App Store? I don't want to go through unnecessary rejections and/or delays just because of obfuscating Javascript code.

I have suspicions that the selector mangling and obfuscation is only prohibited in deeper code level and possibly private API's, etc but I want to make sure.

If anyone has any advice, it's greatly appreciated!


Solution

  • Yes it is allowed. All my apps are minified/mangled and I haven't had any issue with either Google or Apple.