唯一确定的是iOS用户 [英] Uniquely identifying an iOS user

查看:171
本文介绍了唯一确定的是iOS用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建服务器应用程序的新用户上的用户帐户,但我也想不要求用户输入任何内容。理想情况下,我想这是自动的,像游戏中心。

I'd like to create a user account on the server for new users of an app, but I'd also like to not ask the user to type in anything. Ideally, I'd like this to be automatic, like with Game Center.

但我想知道如果可能的话。有什么我可以用它来唯一地识别用户?这是极不可能的,我可以找出用户的Apple ID。此外,该设备ID唯一地识别装置,不是用户,所以如果用户有更多的设备将是无用...

But I'm wondering if it's possible. Is there anything I can use to uniquely identify the user? It's highly unlikely that I can find out the user's Apple ID. Also, the device ID uniquely identifies the device, not the user, so it would be useless if the user has more devices...

还有什么我可以使用?

关于隐私 - 我不希望找出用户的背后什么。我有要求用户访问他们的信息绝对没问题(如果有,授予我这个信息的API,它会如果API问这本身是伟大的)。由于史蒂夫·乔布斯自己说,这是什么隐私是一回事 - 迫使应用程序与他们的私人数据做任何事情之前,要求准予用户

About privacy - I don't want to find out anything behind the user's back. I have absolutely no problem with asking the user for access to their information (and if there is an API that grants me this information, it would be great if the API asks this itself). As Steve Jobs himself said, this is what privacy is all about - forcing apps to ask the user for permission before doing anything with their private data.

推荐答案

编辑:这个答案不能解决操作的问题。您应该由Erik使用这个代替。我会删除它,但我不能,因为它是公认的答案

This answer doesn't solve the op's problem. You should use this one by Erik instead. I would delete it but I can't because it's the accepted answer

您可能使用Erik的解决方案产生的UUID,而除了这一点,让用户输入一个4位数的通code(类似iPhone的锁屏)。虽然我明白,这并不使整个过程自动化,进入通code是比指数输入一个电子邮件地址或密码更容易。一旦用户注册的iDevice A,如果用户想使用的应用程序上的iDevice B,他可以同步与一个的iDevice使用该通code。这可能是一个更大量棘手实际执行,但在这种情况下,用户将被唯一地由他的通行证code标识。

You could potentially use Erik's solution for generating UUIDs, and in addition to this, get the user to enter a 4 digit passcode (similar to the iPhone's lock screen). While I understand that this doesn't automate the entire process, entering the passcode is exponentially easier than entering an email address, or a password. Once the user registers iDevice A, if the user wants to use the application on iDevice B, he could "sync" with iDevice A using this passcode. This is probably a lot more trickier to actually implement, but in this case, the user would be uniquely identified by his passcode.

如果您不希望用户输入一个密码code,你可以随机生成并保存在钥匙串,并给出一个选项,用户以后检索该通code,以同步在他/她方便其他的iDevices。这将意味着用于第一设备的登录的自动化过程,但额外的步骤,以同步的其它设备 - 一个步骤我看到作为不可避免如果假定该设备没有连接到iCloud,或没有任何其它片的唯一的用户标识,可用于

If you don't want the user to enter a passcode, you could generate it randomly and save it in the keychain, and give an option for the user to retrieve this passcode later, to sync other iDevices at his/her convenience. This would mean an automated process for the first device login, but an additional step to sync other devices - a step that I see as inevitable if it is assumed that the device isn't connected to iCloud, or doesn't have any other piece of unique user identification that can be used.

这篇关于唯一确定的是iOS用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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