如何在不使用登录系统(iOS)的情况下识别唯一用户 [英] How to identify unique users without using a login system (iOS)

查看:390
本文介绍了如何在不使用登录系统(iOS)的情况下识别唯一用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一种方法来识别我的应用程序的用户,但是没有登录系统.

I need to have a way to identify the users of my app, but without having a login system.

我调查了UUID,该问题为我的问题提供了部分答案,但是由于它不是真正的UDID,因此也不是真正唯一":如果用户重新安装该应用程序,则他会得到一个新的UUID,并且这对我不起作用.

I looked into the UUID which gives me part of an answer to my problem, but as it's not the real UDID, it's not "really unique" : if the user re-installs the app, he gets a new UUID, and this can't work for me.

有没有一种方法可以获取设备序列号或类似的东西?在无需用户填写任何字段的情况下,我可以从设备中获得的任何内容.

Is there a way I can get the device serial number or something unique like that? Anything of the sort that i could get from the device without having the user to fill any fields.

推荐答案

一段时间后,我们认为获取唯一的用户ID而不要求他们填写某种字段并进行实际注册是不可靠,不可能或非常烦人的

After a while we decided that it was either unreliable, impossible or really annoying to get unique user ID's without asking them to fill some kind of field and actually sign up.

因此,我们决定通过以下过程使用其加密的格式化程序电话号码:

We therefore decided to use their encrypted formatter phone numbers using the following process :

  • 询问电话号码和国际代码*(+ 1,+ 32等)
  • 以编程方式验证电话号码的完整性
  • 如果满意,请要求用户进行警报验证
  • 如果可以,请发送密码并等待验证
  • 如果有效,请注册到数据库.

用户的用户名是:格式化的电话号码(例如+32495555556),然后在SHA-256中对该字符串进行哈希处理,最后,我们将该超长字符串保存到数据库中,并像这样识别所有人.

The user's username is : formatted phone number (+32495555556 for example), and that string is then hashed in SHA-256, and finally we save that super-long string to the database and recognize everyone like that.

如果您有任何问题,请在这里提问,以便我澄清.如果您有更好的主意,我仍然很高兴听到.

If you have any question please ask here so I can give some clarification. If you have a better idea I'd still be glad to hear it.

这篇关于如何在不使用登录系统(iOS)的情况下识别唯一用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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