-
Notifications
You must be signed in to change notification settings - Fork 80
Crash: NSUbiquitousKeyValueStore is too long. #3
Comments
Fixed in my fork (see #5). |
Change debug output to be off by default
@pandamonia I used your code to replace the original one and unfortunately I had some problems. During the start you push to iCloud, but if the user just deleted the app and reinstalled, it's going to push empty, and the previous saved info did not got returned. |
@pandamonia you can forget that. I got stupid for a moment and wasn't implementing it right. Everything works great. The only thing I did was, create a new Notification called "MKiCloudSyncDidPullNotification" to be called when the pull from iCloud ends so I can update my UITableView with the backed up information and show an alert to the user. |
@gmogames I'm confused. I should forget that because you weren't implementing it right and it is working? Or it isn't working and you need help? |
@pandamonia I was implementing it wrong. When I saw my mistake and fixed everything started working great. So no help is needed and your code is great. |
@gmogames I'm glad everything is working. I got worried when you said it was broken. Have a good weekend. |
@pandamonia I have one question. When the user opens the app but do not have internet connection. The pull from iCloud is not going to work. |
@gmogames You could probably monitor the reachability status and call |
@pandamonia ah, ok. So no harm in calling start more than once (since it's already being called on the appdelegate)? |
@gmogames From what I can see in the code, I don't think it could be a problem to call |
@pandamonia yep, stop only removes the observer. I'll run a few tests to see if nothing breaks. Thanks for the help. |
Love the idea, but I think this class is fatally flawed. It appears to set every item of the standardUserDefaults to iCloud, some which are not user created and thus unnecessary--WebKitWebSecurityEnabled, WebKitUsesEncodingDetector, and so on ad infinitum. For my app, it has caused a confusing crash due to having either too many keys or having improper names for keys.
The text was updated successfully, but these errors were encountered: