请告诉我在哪里可以找到Fabric Crashlytics上的setUserIdentifier密钥?
Crashlytics.sharedInstance().setUserEmail("user@mail.com")
Crashlytics.sharedInstance().setUserIdentifier("12345")
Crashlytics.sharedInstance().setUserName("Test User")
Crashlytics.sharedInstance().setUserIdentifier("??????????"). where to find the key here?
答案 0 :(得分:2)
这是您的应用程序创建的任意标识符。通常是通过某种哈希函数(MD5,SHA-1等)从电子邮件生成的。基本上,此ID可以用于引用特定用户,而不是在Crashlytics日志,UI和报告中公开其电子邮件,姓名,姓氏等。
这是文档:
/**
* Specify a user identifier which will be visible in the Crashlytics UI.
*
* Many of our customers have requested the ability to tie crashes to specific end-users of their
* application in order to facilitate responses to support requests or permit the ability to reach
* out for more information. We allow you to specify up to three separate values for display within
* the Crashlytics UI - but please be mindful of your end-user's privacy.
*
* We recommend specifying a user identifier - an arbitrary string that ties an end-user to a record
* in your system. This could be a database id, hash, or other value that is meaningless to a
* third-party observer but can be indexed and queried by you.
*
* Optionally, you may also specify the end-user's name or username, as well as email address if you
* do not have a system that works well with obscured identifiers.
*
* Pursuant to our EULA, this data is transferred securely throughout our system and we will not
* disseminate end-user data unless required to by law. That said, if you choose to provide end-user
* contact information, we strongly recommend that you disclose this in your application's privacy
* policy. Data privacy is of our utmost concern.
*
* @param identifier An arbitrary user identifier string which ties an end-user to a record in your system.
*/
- (void)setUserIdentifier:(nullable NSString *)identifier;
答案 1 :(得分:0)
来自Fabric的Mike。要在Fabric仪表板中找到此信息,请执行以下步骤: