Is it possible to get the user's apple ID through the SDK?

后端 未结 5 2110
自闭症患者
自闭症患者 2020-12-07 00:54

is it possible to get the user\'s information, such as apple ID, through the sdk? I am writing an app which will require an account linked to the app user. I want to allow t

5条回答
  •  有刺的猬
    2020-12-07 00:58

    No, it's a privacy issue, just like their phone number.

    They'd still have to create an account on your site since you don't have access to Apple's databases, and no one will be willing to give you their iTunes passwords for obvious reasons.

    All you're really saving is them entering a user name, since they'd still have to give you a password. It's very easy to remember this data for future runs of your application. Look into using NSUserDefaults. I would recommend against using the UDID and give the user the option to save their password. That way if the phone is lost, whoever finds it doesn't have automatic access to the owner's account. If the user opts for automatic login, you can easily save the password and send it along with the username when the app loads.

提交回复
热议问题