Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
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 2 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.