Phonegap - iOS - whitelist rejection
Posted: Thu Oct 04, 2012 9:13 am
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!
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!