Conner Leverett Conner Leverett - 1 year ago 100
Java Question

Confirmation of Firebase Analytics tracking

I have this code in my Android app in a fragment

public class CreateRequest extends Fragment {

private FirebaseAnalytics mFireBaseAnalytics;

String titleStr = "title";
String descriptionStr = "description";
Int totalTime = 10;

Bundle params = new Bundle();
params.putString("Title", titleStr);
params.putString("Description", descriptionStr);
mFireBaseAnalytics.logEvent("created_request", params);


The code runs fine and throws no errors, but after waiting 24 hours I don't see anything in the Firebase console. This S.O. questions Firebase Analytics demographics states that some data is only shown after 10 users have used the app. Is this true with the code I've provided above? Any insight would be greatly appreciated.

Answer Source

After your code you can use Log events. You can enable verbose logging with a series of commands PDA:

adb shell setprop log.tag.FA VERBOSE
adb shell setprop log.tag.FA-SVC VERBOSE
adb logcat -v time -s FA FA-SVC
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download