Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Cordova plugin not saving to iCloud

$
0
0

@richardmarais wrote:

I am using Ionic with the following plugin: cordova-plugin-icloudkv to persist data in Apples iCloud.

I call:

sync(successCallback/*(dictionary_with_all_sync_keys)

then:

save(key, value, successCallback)

Which saves, i.e. I can access it again with:

load(key, successCallback/*(value)*/, failCallback)

and get the saved value as expected.

Problem

When I close the app, and restart it, and try:

sync(successCallback/*(dictionary_with_all_sync_keys)

then:

load(key, successCallback/*(value)*/, failCallback)

I get:

key is missing

It is as if, the value is not being persisted to iCloud, but rather only local storage, which is lost when the app is closed.

Question

How can I make the above persist to iCloud?

Thanks

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>