
Product
Introducing Custom Pull Request Alert Comment Headers
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
cordova-plugin-icloudkv
Advanced tools
iOS iCloud KeyValue Store plugin for Cordova
Allows storing small amounts of configuration data in iCloud from Cordova/PhoneGap. Wraps NSUbiquitousKeyValueStore class.
Cordova/PhoneGap >= 3.0
cordova plugin add cordova-plugin-icloudkv
The plugin becomes available when DeviceReady event is fired, it creates the object iCloudKV
with the following methods:
sync(successCallback/*(dictionary_with_all_sync_keys)*/ , failCallback)
In addition to calling NSUbiquitousKeyValueStore sync method the plugin's sync returns the dictionary holding all iCloud data for the app.
Normally you only need to call the sync once - on application load.
Reminder: Calling sync does not guarantee (or matter for) syncrhonization with iCloud but only between the in-memory and the flash storage that will be eventually synced with iCloud by an independent agent.
save(key, value, successCallback)
Saves string value for the key.
load(key, successCallback/*(value)*/, failCallback)
Loads string value for the key.
remove(key, successCallback)
Removes the key.
monitor(notificationCallback/*(value)*/, successCallback)
Monitor changes of the app's iCloud.
For the simplest (but probably sufficient for most apps) implementation you will only need two methods: sync (on page load) and save (each time a value is changed).
Special thanks to Pierrick Rouxel and Alexander Portnoy, for upgrading the plugin for Cordova 3.0.
If you have a patch, fork my repo and send me a pull request. Submit bug reports on GitHub, please.
v0.4.0:
v0.3.0: First version of forked plugin:
FAQs
Cordova iCloud Key Value Plugin
The npm package cordova-plugin-icloudkv receives a total of 0 weekly downloads. As such, cordova-plugin-icloudkv popularity was classified as not popular.
We found that cordova-plugin-icloudkv 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.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.