ios - NSUbiquitousKeyValueStore not syncing with iCloud -


I tried everything and read all the topics, but I was not out on why NSUbiquitousKeyValueStore is not being stored on iCloud Is not getting it

• A special application ID created

• iCloud enabled for this application ID

• Built-in Provisioning Profile

• On iCloud Enable Project

• Setup Key Value Assets: $ (TeamIdentifierPrefix) $ (CFBundleIdentifier) ​​

• Turned on iCloud Drive on Device

but NSUbiquitousKeyValueStore Only local saving is When I restart the app it does not receive information from iCloud

This is how I am trying:

  NSUbiquitousKeyValueStore * cloudStore = [NSUbiquitousKeyValueStore defaultStore]; If ([[CloudStore stringforki: @ "teststring"] length] == 0) {NSLog (@ "nothing in Icod - setting a value ..."); [CloudStore Setstring: @ "I'm living in iCloud!" ForKey: @ "testString"]; [Cloudstore synchronize]; [[Synchronize the NSUVITSKalvstor default store]]; } And {NSString * result = [cloud store string forekey: @ "teststring"]; NSLog (found in "@ iCloud - here is:% @", results); } [Auto registrar Claude Nautifitätan];  

I do not find anything on iCloud if I try to delete the app or try it on a new device

Then I try to find out If iCloud is working:

  NSURL * ubiq = [[NSFileManager defaultManager] URLForUbiquityContainerIdentifier: zero]; If (ubiq) {nslog (@ "iCloud at% @", ubiq); } Other {NSLog (@ "Icloud Access,% @", ubiq); }  

And it does not always return "no icon access" and why I can not understand it No matter what I do, the URLForibility Container Identifier is not always zero.

I'm running on iOS 8 devices with iCloud enabled.

Am I missing something?

Thank you!

I had the same problem turning off logging on my iCloud account on the device and also for me to solve it was done.

This problem is visible when you have enabled the iCloud entitlement ago with the same bundle identifier on the device. I had a third device which was the problem on 2 test devices. But I installed the call with iCloud enabled for the first time, there was no problem.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -