Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Disabling iCloud in phone settings
Started by philipp3 Oct 20 2018 02:01 AM

3 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

philipp3

[GLOBAL: userInfoPane.html]
philipp3
  • Enthusiast

  • 80 posts
  • Corona SDK

Hello,

 

When I disable iCloud in the general iPhone settings for an unreleased game that I am currently testing, it still receives data with iCloud.get("xyz"). Is this normal behavior? Does this also happen with released apps? And how do I find out if the user has disabled iCloud in that case?

 

Best, Philipp



[TOPIC: post.html]
#2

philipp3

[GLOBAL: userInfoPane.html]
philipp3
  • Enthusiast

  • 80 posts
  • Corona SDK

I still have no solution for this.

I would expect that

 

a ) iCloud.get("abc") returns nil

 

and

 

b ) iCloud.setKVSListener(iCloudListener) prints out anything.

 

But a) returns the same when iCloud is enabled or disabled, and b ) doesn’t fire any events at all.

I still have no idea how to find out if the user has enabled or disabled iCloud.



[TOPIC: post.html]
#3

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 979 posts
  • Corona Staff

I would suggest tryint iCloud.identityToken()

 

Also, I was referring to this thread, You can try synchronize method, it is available in the plugin.


  • philipp3 likes this

[TOPIC: post.html]
#4

philipp3

[GLOBAL: userInfoPane.html]
philipp3
  • Enthusiast

  • 80 posts
  • Corona SDK

I would suggest tryint iCloud.identityToken()

 

Thanks vlads, that works perfectly!




[topic_controls]
[/topic_controls]