Uniquely identifying an iOS user

后端 未结 10 1913
小蘑菇
小蘑菇 2020-12-02 12:27

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

10条回答
  •  日久生厌
    2020-12-02 13:13

    An alternative to Erik's suggestion is a third-party library called OpenUDID. You can generate a unique identifier on a per-device basis, and it's dead simple:

    #include "OpenUDID.h"
    NSString* openUDID = [OpenUDID value];
    

提交回复
热议问题