Anonymously Log In to an App with iCloud Apple ID

前端 未结 2 1561
谎友^
谎友^ 2021-02-04 17:41

According to this CloudKit overview:

CloudKit also enables your users to anonymously sign in to your apps with their iCloud Apple IDs without sharing thei

2条回答
  •  执笔经年
    2021-02-04 18:31

    The permission alert will only pop if you call -[CKContainer requestApplicationPermission:CKApplicationPermissionUserDiscoverability...].

    If the user grants permission (CKApplicationPermissionStatusGranted) then you can get the user's first and last name by running a CKDiscoverUserInfosOperation.

    Requesting discoverability means that you can see the user's first and last name, and that any other user of the container can find their user record ID via an email address or look up their first and last name via a user record ID.

提交回复
热议问题