Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why ubiquityIdentityToken returns nil?

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.

like image 394
János Avatar asked Sep 17 '25 21:09

János


1 Answers

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

like image 128
János Avatar answered Sep 19 '25 17:09

János