8
votes

I put some user properties in my android code such as: (https://firebase.google.com/docs/analytics/android/properties)

mFirebaseAnalytics.setUserProperty("easy_account_connected", "true");

Then, I checked debug view and nothing appears whereas if there is a break point, my code stopped on this instruction. I can't understand, in my code there are other places where we can find these properties and sometimes it works (I see it in debug view) and sometimes, nothing.

Is it normal ?

I have found nothing on firebase website which could tell me debug view is not perfect but data are correctly saved ...

https://firebase.google.com/docs/analytics/debugview#seconds_stream

EDIT :

With the help of adbitx, I discovered user properties are sent with event so I made a new use case. 2 events (login / logout) and one user properties (easy_account_connected). In login case, I send :

mFirebaseAnalytics.setUserProperty("easy_account_connected", "true");
mFirebaseAnalytics.logEvent("login", null);

and in logout case, I send :

mFirebaseAnalytics.setUserProperty("easy_account_connected", "false");
mFirebaseAnalytics.logEvent("logout", null);

Here is the result in debug view login Ok / logout Nok

Login works whereas logout does not...

2
Any news about it? - Alexander Khitev
Unfortunately no. Last time I tested, the error was still here but it was almost 7 months ago - mrroboaat
I faced it today... I wrote a post and to firebase support - Alexander Khitev
did you get any response from support @Alexander? - David Miguel
@DavidMiguel yes, please have a look at stackoverflow.com/a/50813677/4981515 - Alexander Khitev

2 Answers

1
votes

From what you describe, it looks like you only have that line and no other events. It would be nice to know whether you send any events after setting the user property. The user property comes with each event after it is set. Therefore, you need to send some events and click on one of the events in the debug view to see the user property under User Properties tab.

1
votes

I was running into a similar issue. I found that sending the app to the background was a way to "flush" the cache of user properties on the device and send them through to Firebase. I could then see them appear in DebugView. Without sending the app to the background I would see event after event appear in DebugView, but no user property updates.