Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PhoneGap application with remote java scripts

Tags:

cordova

I'm planning to write mobile application using PhoneGap.

My question is: Should Java scripts (with business logic) be packed into distribution package. I need it to avoid resubmitting application to App Store if business logic was updated.

So in the main html were I include PhoneGap JS can I include remote JS?

<script type="text/javascript" charset="utf-8" src="phonegap.0.9.5.1.js" />
<script type="text/javascript" charset="utf-8" src="http://remote.server.com/main.js" />
like image 367
Glaxalg Avatar asked Jun 14 '11 20:06

Glaxalg


1 Answers

You're fine. A few years ago Apple rejected a phonegap application of mine because it retrieved external javascript. It is a major security concern for them, but they overlook it now. An app I submitted two weeks ago was accepted with external javascript. The issue lies with the fact that flaws in apple's javascript engine allow it to, if it is written correctly, perform arbitrary code on the device. It is still an issue, even with iOS 5 and iPad 2s.

like image 104
Peter Kazazes Avatar answered Jan 03 '23 07:01

Peter Kazazes