是否可以通过SDK获取用户的Apple ID? [英] Is it possible to get the user's apple ID through the SDK?

查看:514
本文介绍了是否可以通过SDK获取用户的Apple ID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过sdk获取用户的信息,例如苹果ID?我正在编写一个应用程序,需要一个链接到应用程序用户的帐户。我想允许用户在多个设备上拥有一个帐户,因此无法使用设备ID。我想,最简单的方法是使用app用户的苹果ID作为此帐户的ID,因此不要求他们创建另一个帐户。

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 the user to have one account across multiple devices, so using the device ID is not possible. The easiest way to do this, I am thinking, is to use the app user's apple ID as this account's ID, so not requiring them to create yet another account.

推荐答案

不,这是一个隐私问题,就像他们的电话号码一样。

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

他们仍然需要在您的网站上创建一个帐户您无法访问Apple的数据库,并且没有人愿意出于明显的原因向您提供iTunes密码。

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.

您真正节省的是他们进入一个用户名,因为他们仍然需要给你一个密码。在将来运行应用程序时,很容易记住这些数据。考虑使用NSUserDefaults。我建议不要使用UDID,并为用户提供保存密码的选项。这样,如果手机丢失,任何人发现它都无法自动访问所有者的帐户。如果用户选择自动登录,您可以轻松保存密码,并在应用加载时将其与用户名一起发送。

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.

这篇关于是否可以通过SDK获取用户的Apple ID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆