Appbuilder: get info.plist key value

2 posts, 0 answers
  1. Nathaniel
    Nathaniel avatar
    1 posts
    Member since:
    Mar 2015

    Posted 15 Jan Link to this post

    We are trying to get a custom key value set in the info.plist (userid) from mobileiron.  We are able to set a value, however we cannot get the value with javascript or cordova.  Is there a way to get a custom key value within javascript or cordova?  

     Any ideas/help would be greatly appreciated.

     

  2. Anton Dobrev
    Admin
    Anton Dobrev avatar
    539 posts

    Posted 20 Jan Link to this post

    Hello,

    I am summarizing below some information provided in a private support ticket of yours.

    Usually, you should be able to read from it the same way or with the same means used for writing.

    Dynamic key value pairs can be added and read via the NSUserDefaults class. The same class could be used to read from the property list file (.plist).

    You can use a plugin to write or access keys from the NSUserDefaults storage. This plugin and this one too advertise a similar capability. Note that you have to know the key name in order to access it.

    I hope that this helps.

    Regards,
    Anton Dobrev
    Telerik
     

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

     
Back to Top