I am trying to load an external site instead of the internal index.html file found in the www folder in PhoneGap.. But have not been sucessful. I’ve tried several things that I found online but they all address just loading external links within the wrapper instead of safari.
Which is not what I am looking for… I am looking for when the phonegap application loads that it loads a page hosted on my web server instead of the index.html file.
In iOS, you need to modify the shouldStartLoadWithRequest method in your AppDelegate.m file :
Then, you can have change you local index.html in the www folder with :
Of course, this is for debugging only. You should not submit it to the AppStore, it’s prohibited and it will be rejected.