How to create a custom user property for firebase?

The help section on the firebase console says that

A Firebase application can have up to 25 unique custom properties (case sensitive). You should use properties for attributes other than variables, such as "handness = right", "spender = true".

In firebase documentation, the property should be set this way

mFirebaseAnalytics.setUserProperty("favorite_food", mFavoriteFood);

Does this mean that for each custom property with the name k and a value of v , we need to create a custom property in the console as " k = v " and set it in the code setUserProperty (k, v) ? So, for the custom property "favorite_food", which has possible values ​​like "pasta" and "pizza", you need to create two new custom properties in the console like "favorite_food = pasta" and "favorite_food = pizza" and set it, say, setUserProperty (" favorite_food "," pasta ")?

+4
source share
2

k " " Firebase Analytics. User Property k = v setUserProperty(k,v).

setUserProperty(k,v) ( ) Analytics, User Property k = v (favorite_food = pizza).

+16

k k = v0, k = v1,... k.

0

All Articles