0

I have recently upgraded my phonegap iOS application to 2.3.0. This release converted my Cordova.plist file into a config.xml file as expected, but since the upgrade my application can no longer load resources from external URLs (images etc). I have the following delcaration in my config.xml:

<access origin="*"/>

Has anyone come across this issue since the upgrade?

1
  • 1
    I think question is not complete. "I have the following delcaration in my config.xml: " are you missing something? Jan 11, 2013 at 4:30

2 Answers 2

1

The whitelist is now specified like so:

<access origin="*" />

An important thing to note is that if you are using storyboards, you must override initWithCoder to call [super init] in order to make Cordova load settings from config.xml.

The loading is done in [CDVViewController loadSettings]. Try breakpointing there and if it is not being called then something is wrong.

1

I just ran into this and I am running in storyboards.

Add this to your MainViewController or your controller : CDVViewController

- (id)initWithCoder:(NSCoder *)aDecoder
{
    self = [super initWithCoder:aDecoder];
    if (self) {
        self = [self init];
    }
    return self;
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.