You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2013/01/09 01:48:12 UTC

[jira] [Commented] (CB-2155) getDeviceInfo never parses Settings.plist file

    [ https://issues.apache.org/jira/browse/CB-2155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13547483#comment-13547483 ] 

Shazron Abdullah commented on CB-2155:
--------------------------------------

With CB-1946 this issue might change.
                
> 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