Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.0
    • Component/s: iOS
    • Labels:
      None

      Description

      @implementation CDVDevice

      • (void)getDeviceInfo:(CDVInvokedUrlCommand*)command
        {
        /* Settings.plist
      • Read the optional Settings.plist file and push these user-defined settings down into the web application.
      • This can be useful for supplying build-time configuration variables down to the app to change its behavior,
      • such as specifying Full / Lite version, or localization (English vs German, for instance).
        */
        // TODO: turn this into an iOS only plugin
        NSDictionary* temp = [CDVViewController getBundlePlist:@"Settings"];

      if ([temp respondsToSelector:@selector(JSONString)])

      { NSString* js = [NSString stringWithFormat:@"window.Settings = %@;", [temp JSONString]]; [self.commandDelegate evalJs:js]; }

      No docs mention the feature.
      You could accomplish x-platform & without a plugin by XHR'ing a .json file from your app directory.

        Activity

        Show
        Andrew Grieve added a comment - https://git-wip-us.apache.org/repos/asf?p=cordova-ios.git;a=commit;h=81e3332adaa6524da20099a68ed7625c5884cf89

          People

          • Assignee:
            Andrew Grieve
            Reporter:
            Andrew Grieve
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development