You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.
Good day,
I am still having the issue that when ever I try to update the key in UserDefaults it gets override by the value in iCloud.
my steps are:
When I launch the app, userDefaults registers "myKey" == nil
Zephyr.addKeysToBeMonitored
during onboarding I change the value of UserDefaults "myKey" to true
right after I call Zephyr.sync(keys:"myKey")
the logs says:
[Zephyr] Started synchronization FROM iCloud
[Zephyr] Unsubscribed "myKey" from observation.
[Zephyr] Synchronized key "myKey" with value 'nil' FROM iCloud
[Zephyr] Subscribed "myKey" for observation.
[Zephyr] Finished synchronization FROM iCloud
and I always got override instead of updating the value in iCloud...
I am assuming I am doing the steps wrong, I would really appreciate some help here. Thank you very much in advance
UPDATE:
after some debugging I could see that when dataStoreWithLatestData() looks for the latest Data, zephyrRemoteStoreDictionary[ZephyrSyncKey] returns nil, so it is assuming that the valid value is the one in iCloud.
still don't see what am I doing wrong here
The text was updated successfully, but these errors were encountered:
Good day,
I am still having the issue that when ever I try to update the key in UserDefaults it gets override by the value in iCloud.
my steps are:
the logs says:
[Zephyr] Started synchronization FROM iCloud
[Zephyr] Unsubscribed "myKey" from observation.
[Zephyr] Synchronized key "myKey" with value 'nil' FROM iCloud
[Zephyr] Subscribed "myKey" for observation.
[Zephyr] Finished synchronization FROM iCloud
and I always got override instead of updating the value in iCloud...
I am assuming I am doing the steps wrong, I would really appreciate some help here. Thank you very much in advance
UPDATE:
after some debugging I could see that when
dataStoreWithLatestData()
looks for the latest Data,zephyrRemoteStoreDictionary[ZephyrSyncKey]
returns nil, so it is assuming that the valid value is the one in iCloud.still don't see what am I doing wrong here
The text was updated successfully, but these errors were encountered: