Phonegap / Cordova 2.3.0 Ignored iOS whitelist

I recently updated my iOS mobile app to version 2.3.0. This release converted the Cordova.plist file to a config.xml file as expected, but since the update, my application can no longer load resources from external urls (images, etc.). I have the following delcaration in my config.xml file:

<access origin="*"/>

      

Has anyone faced this issue since the update?

0


source to share


2 answers


The whitelist is now listed like this:

<access origin="*" />

      



It is important to note that if you are using storyboards, you must override the initWithCoder

call [super init]

to customize loading Cordova from config.xml

.

Loading is done in [CDVViewController loadSettings]

. Try to intercept the point there, and if it is not called, then something is wrong.

+1


source


I just ran into this and I'm running into 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;
}

      

+1


source







All Articles