Phonegap - iOS - whitelist rejection

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
andrew
New User
Posts: 11
Joined: Wed May 11, 2011 11:26 am
First Name: Andrew
Last Name: Landry
Company Name: Dupre' Logistics
Contact:

Phonegap - iOS - whitelist rejection

Post 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!
Attachments
Location of Cordova.plist
Location of Cordova.plist
Screen Shot 2012-10-04 at 8.02.17 AM.png (395.11 KiB) Viewed 1601 times
Whitelist rejection error
Whitelist rejection error
Screen Shot 2012-10-04 at 8.01.54 AM.png (33.25 KiB) Viewed 1600 times
Antonio
Profound User
Posts: 82
Joined: Fri Jun 29, 2012 2:33 pm
First Name: Antonio
Last Name: Ruballos
Company Name: Profound Logic
Contact:

Re: Phonegap - iOS - whitelist rejection

Post 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!
Antonio
Profound User
Posts: 82
Joined: Fri Jun 29, 2012 2:33 pm
First Name: Antonio
Last Name: Ruballos
Company Name: Profound Logic
Contact:

Re: Phonegap - iOS - whitelist rejection

Post 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?
andrew
New User
Posts: 11
Joined: Wed May 11, 2011 11:26 am
First Name: Andrew
Last Name: Landry
Company Name: Dupre' Logistics
Contact:

Re: Phonegap - iOS - whitelist rejection

Post by andrew »

Antonio,
I'm on OSX 10.8.2 and XCode version 4.4.1.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests