Anyone with iPhone apps that are loading external pages into apps?
I'm wondering if anyone has apps that have been accepted by Apple that rely on loading external mobile web pages as the app. Building Phone开发者_高级运维gap based apps would be a lot easier if I could load sections of the app directly from my server, I'm not sure if Apple allows this though.
I don't see any problems with an app which loads content from your servers. If I'm not mistaken the iPad App Store does the same.
Loading external JavaScript is definitely a no-no. Loading content should be OK, so as long as those pages don't have any JavaScript (or too much JavaScript), you should be good. That's kind of the problem with IOS development, you never know what Apple is going to decide breaks their TOS. Basically I think they want to be reviewing the Application as a whole, and not having you able to slip new functionality in without their approving it (so you can't get an app approved and then change it so that it violates the TOS after it is approved).
Why would you expect it to be rejected? There are browsers in the app store, and all they do is load external content.
The cross-domain security policy applies to external web pages.
The cross-domain security policy does not affect PhoneGap applications. Since the html files are called by webkit with the file:// protocol, the security policy does not apply.
(in Android,you may grant android.permission.INTERNET to your app by edit the AndroidManifest.xml)
You should try fetching data from server not whole page with Js.
精彩评论