Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
cordova-application-preferences
Advanced tools
Originally by Simon MacDonald (@macdonst), ported to plugman and some other cleanup by Dan Moore (@mooreds). Dan Moore also pulled in the iOS code, written by Tue Topholm / Sugee
Originally by Simon MacDonald (@macdonst), ported to plugman and some other cleanup by Dan Moore (@mooreds). Dan Moore also pulled in the iOS code, written by Tue Topholm / Sugee
Information on writing plugins for PhoneGap 2.0 was taken from this blog by Simon MacDonald (@macdonst)
This code only supports Phonegap/Cordova 2.9. If you want to have support for 3.0 or greater, check out this repository.
This plugin uses plugman
cordova plugins add https://github.com/8zrealestate/AppPreferences
There will be a window.applicationPreferences object defined after the plugin is installed.
The applicationPreferences
object created above will be used in the following examples.
In order to get the value a property you would call the get method.
/**
* Get the value of the named property.
*
* @param key
*/
get(key, success, fail)
Sample use:
window.applicationPreferences.get("myKey", function(value) {
alert("Value is " + value);
}, function(error) {
alert("Error! " + JSON.stringify(error));
});
In order to set the value a property you would call the set method.
/**
* Set the value of the named property.
*
* @param key
* @param value
*/
set(key, value, success, fail)
Sample use:
window.applicationPreferences.set("myKey", "myValue", function() {
alert("Successfully saved!");
}, function(error) {
alert("Error! " + JSON.stringify(error));
});
FAQs
Originally by Simon MacDonald (@macdonst), ported to plugman and some other cleanup by Dan Moore (@mooreds). Dan Moore also pulled in the iOS code, written by Tue Topholm / Sugee
The npm package cordova-application-preferences receives a total of 3 weekly downloads. As such, cordova-application-preferences popularity was classified as not popular.
We found that cordova-application-preferences demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.