PhoneGap gets user preference

I'm just wondering how the value stored in config.xml can be read from JS?

<preference name="MyCustomKey" value="MyValue" />

      

For example, I need to get this user preference using something like:

console.log(cordova.preferences.MyCustomKey);

      

I found something similar just for IOS , but I would like to have a cross platform solution.

Thanks in advance.

+3


source to share





All Articles