2

I am trying to detect if there is an Apple ID which is logged in a iOS device.

Basically if user is 1. logged into iTunes or app store. 2. logged into iCloud.

In general if there is a Apple id used in device.

Is there a possible swift way to check?

jscs
  • 63,694
  • 13
  • 151
  • 195
user1696616
  • 119
  • 2
  • 9
  • 2
    In what sense would one be "logged in" with an Apple ID? Do you mean iCloud? – matt Mar 06 '18 at 19:47
  • 2
    Not just iCloud. Apple ID can be used to log into iTunes and apple store. Editing the question to reflect the same – user1696616 Mar 06 '18 at 20:10
  • I still don't understand the idea. My iPhone is never "logged into iTunes and App Store". If I need to download an app, for example, I'll be asked to authenticate then and there; there is no _state_ of being "logged in". – matt Mar 06 '18 at 20:16
  • 2
    In app store, for downloading you are not authenticating. You are authorizing. You are already logged into app-store. If you open app-store app, the top right corner has your profile image which say you are already logged in. On click on that image, you will see your apple-id details. – user1696616 Mar 06 '18 at 20:22

0 Answers0