Page 1 of 1

Phonegap - iOS - whitelist rejection

Posted: Thu Oct 04, 2012 9:13 am
by andrew
I wanted to share this error I was experienced with phonegap and the profoundui included files.
I created the project according to the documentation on the profoundui confluence wiki regarding the iOS install and ran into a few issues. I wanted to share my experience and how I got it working:

First, the included cordova-2.0.0.js doesn't work at all, I did some research and it seems that it might be the android version of cordova javascript that might have been packaged wrong. I downloaded the latest version of phonegap for iOS and used the newest version of cordova (2.1.0 at this time).

Once I got the app running,I noticed I was never able to get to connect to the server. (See photo of error list)

After a bit of research and I came across this article. It seems that you have to add the hosts that you wish to connect to in a whitelist. Once you add the host to the ExternalHosts Array, I was able to connect successfully. (See photo of location)

Hopefully someone can find this useful!

Re: Phonegap - iOS - whitelist rejection

Posted: Thu Oct 04, 2012 1:25 pm
by Antonio
Hello Andrew,

Thanks alot for pointing this out. I'll be updating the documentation once I test this out so others won't run into the same issue and confusion.

Thanks!

Re: Phonegap - iOS - whitelist rejection

Posted: Thu Oct 04, 2012 1:53 pm
by Antonio
Andrew,

On my end, I did not edit the plist file or update the js file to 2.1 and I am not receiving these errors. What version of Xcode are you running? I am currently trying to pinpoint the source of this issue. Also, what Mac OS are you currently running?

Re: Phonegap - iOS - whitelist rejection

Posted: Thu Oct 04, 2012 2:49 pm
by andrew
Antonio,
I'm on OSX 10.8.2 and XCode version 4.4.1.