Why ubiquityIdentityToken returns nil?
Asked Answered
B

1

4

NSFileManager.defaultManager().ubiquityIdentityToken on some device in some case returns nil, even I set up iCloud Documents in Capabilities and I am logged in to iCloud on device. How reliable operation of the ubiquityIdentityToken do you met? Am I doing something wrong?

On iPhone it returns correctly with a real token, but on iPad it returns with nil, even if I am logged in.

Ballistic answered 17/9, 2014 at 19:27 Comment(0)
B
8

To get token, you need additionaly to turn on iCloud Drive on device. If it is off ubiquityIdentityToken will return nil.

enter image description here

Ballistic answered 17/9, 2014 at 21:32 Comment(2)
and if don't want to turn on iCloud drive?!?! is it mandatory?Blessed
I am not sure it is mandatory, but I spent googling a lot and this was what helpedBullhead

© 2022 - 2024 — McMap. All rights reserved.