Firebase 用户 属性 值的最大长度是多少?

What is the maximum length of Firebase a user property value?

我正在将一些客户端生成的用户属性传递到 Firebase Analytics 并在 logcat 中遇到以下消息:

W/FA: Value is too long; discarded. Value kind, name, value length: user property, comp0, 37 D/FA: Logging event (FE): error(_err), Bundle[{firebase_event_origin(_o)=auto, firebase_error_length(_el)=37, firebase_error_value(_ev)=comp0, firebase_error(_err)=7}]

我查找了错误代码 7 in the Firebase Analytics Error Codes page,虽然它显示代码的意思是 "user property value is too long",但没有指定最大长度是多少。

用户 属性 值的最大长度是多少?键名也有最大长度吗?

documentation for FirebaseAnalytics.UserProperty揭晓答案:

UserProperty names can be up to 24 characters long, may only contain alphanumeric characters and underscores ("_"), and must start with an alphabetic character. UserProperty values can be up to 36 characters long.