Software Archive
Read-only legacy content

ios project setting with .plist

vinay_m_
Beginner
943 Views

Hi all,

 

I have a small requirement where in iPad app user can be able to change some key from app settings like user can change service url from list of url's from app settings and can be handled by a javascript function in app. I heard it is possible with cordova .plist but i didnt find any support for that. Please help me on this

 

 

Thank you all :)

0 Kudos
6 Replies
PaulF_IntelCorp
Employee
943 Views

The only way to modify plist files with our cloud-based build system is by creating a simple plugin. See this FAQ for more details: https://software.intel.com/en-us/xdk/faqs/general#android-manifest

0 Kudos
vinay_m_
Beginner
943 Views

Hi Paul,

 

Can u please provide one example on how to call javascript function using preference value from settings?

0 Kudos
vinay_m_
Beginner
943 Views

Hi,

 

Anyone could tell me how to use .plist preferences in a javascript function

0 Kudos
PaulF_IntelCorp
Employee
943 Views

.plist preferences are directives to the OS and the installer, they don't represent items that you use in JavaScript. Can you provide a more specific example of what it is you are trying to accomplish?

0 Kudos
vinay_m_
Beginner
943 Views

Dear Paul,

 

Thanks for your reply

My requirement is in app settings i want to place a multi value specifiers (locations) where user can select one location based on that location i will select server to call.

 

Lets say my app SERVER API is installed in different location servers such as "NEWYORK", "SANFRANSISCO","SEATLE". Now user should select one location from app settings which would select server address to call services.

0 Kudos
PaulF_IntelCorp
Employee
943 Views

I recommend you simply add a settings page to your app and then save in local storage or some other local permanent mechanism the data that was provided. This sort of thing does not require plist changes, it simply requires that you save some information collected from the user in a local permanent app location. There are a variety of ways to do this, search for "phonegap cordova local storage" to get started.
 

0 Kudos
Reply