
Security News
vlt Launches Real-Time Dependency Analysis Powered by Socket
vlt adds real-time security selectors powered by Socket, enabling developers to query and analyze package risks directly in their dependency graph.
cordova-ios-plugin-userdefaults
Advanced tools
This plugin is used to save and load data to the app groups. It is used to share data between App and Share Extension.
If you like to share some variables between your main app and an share extension, you need to save your variables in a NSUserDefaults container. The NSUserData container can be shared between your both apps and hold all the data you want to transfer.
Please make sure you add the App Groups in the XCode Project for sharing the container between apps.
cordova plugin add https://github.com/MattiaMalonni/cordova-ios-plugin-userdefaults
The Plugin is only for iOS.
var options = { key: "foo", value: "bar", suite: "group.com.example" };
window.AppGroupsUserDefaults.save(
options,
() => console.log("success"),
() => console.log("error")
);
var options = { key: "foo", suite: "group.com.example" };
window.AppGroupsUserDefaults.load(
options,
(data) => console.log(data),
(error) => cosnole.log(error)
);
FAQs
This plugin is used to save and load data to the app groups. It is used to share data between App and Share Extension.
The npm package cordova-ios-plugin-userdefaults receives a total of 167 weekly downloads. As such, cordova-ios-plugin-userdefaults popularity was classified as not popular.
We found that cordova-ios-plugin-userdefaults 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
vlt adds real-time security selectors powered by Socket, enabling developers to query and analyze package risks directly in their dependency graph.
Security News
CISA extended MITRE’s CVE contract by 11 months, avoiding a shutdown but leaving long-term governance and coordination issues unresolved.
Product
Socket's Rubygems ecosystem support is moving from beta to GA, featuring enhanced security scanning to detect supply chain threats beyond traditional CVEs in your Ruby dependencies.