Becky Gibson created CB-2155:
--------------------------------

             Summary: getDeviceInfo never parses Settings.plist file
                 Key: CB-2155
                 URL: https://issues.apache.org/jira/browse/CB-2155
             Project: Apache Cordova
          Issue Type: Bug
          Components: iOS
    Affects Versions: 2.2.0
            Reporter: Becky Gibson
            Assignee: Shazron Abdullah
             Fix For: 2.4.0


The @selector check in CDVDevice.m getDeviceInfo needs to be updated to check 
for @selector(cdvjk_JSONString) rather than just JSONString.  Currently the 
Settings.plist is never parsed. 

//current code that needs to be fixed:
NSDictionary* temp = [CDVViewController getBundlePlist:@"Settings"];

    if ([temp respondsToSelector:@selector(JSONString)]) {
        NSString* js = [NSString stringWithFormat:@"window.Settings = %@;", 
[temp cdvjk_JSONString]];
        [self.commandDelegate evalJs:js];
    }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to