Firebase not recording installation referrer - android

I'm trying to add install-attribution to a React Native android app. I believe I'm firing the event correctly in dev mode, but I don't actually see the event in the firebase debug log, or in the conversion. I can see other analytics events, just not this one.
I added this to src/main/AndroidManifest.xml:
<receiver android:name="com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver"
android:permission="android.permission.INSTALL_PACKAGES"
android:enabled="true">
<intent-filter>
<action android:name="com.android.vending.INSTALL_REFERRER"/>
</intent-filter>
</receiver>
Watch the logs:
$ adb shell setprop log.tag.FA VERBOSE
$ adb shell setprop log.tag.FA-SVC VERBOSE
$ adb logcat -v time -s FA FA-SVC
Broadcast the message:
$ adb shell am broadcast -a com.android.vending.INSTALL_REFERRER -n com.example/com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver --es "referrer" "utm_source=medium&utm_medium=test&utm_content=reactnativetest&utm_campaign=reactnativetest"
The logs seem show a "successful upload":
04-09 11:05:04.314 V/FA ( 7426): Local receiver got: com.android.vending.INSTALL_REFERRER
04-09 11:05:04.315 I/FA ( 7426): Install referrer extras are: utm_source=medium
04-09 11:05:04.317 W/FA ( 7426): Install referrer is missing timestamp
04-09 11:05:04.318 I/FA ( 7426): Install Referrer Reporter is initializing
04-09 11:05:04.325 I/FA ( 7426): Install Referrer Service is: available
04-09 11:05:04.330 V/FA ( 7426): Install campaign recorded
04-09 11:05:04.338 D/FA ( 7426): Logging event (FE): firebase_campaign(_cmp), Bundle[{click_timestamp=1554755627203, source=medium, firebase_event_origin(_o)=auto, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=1234512345123451234, campaign_info_source(_cis)=referrer broadcast}]
04-09 11:05:04.362 V/FA ( 7426): Connecting to remote service
04-09 11:05:04.373 D/FA ( 7426): Connected to remote service
04-09 11:05:04.373 V/FA ( 7426): Processing queued up service tasks: 1
04-09 11:05:04.388 V/FA-SVC ( 8508): Logging event: origin=auto,name=firebase_campaign(_cmp),params=Bundle[{click_timestamp=1554755627203, source=medium, firebase_event_origin(_o)=auto, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=1234512345123451234, campaign_info_source(_cis)=referrer broadcast}]
04-09 11:05:04.397 V/FA-SVC ( 8508): Saving event, name, data size: firebase_campaign(_cmp), 147
04-09 11:05:04.398 V/FA-SVC ( 8508): Event recorded: Event{appId='com.example', name='firebase_campaign(_cmp)', params=Bundle[{click_timestamp=1554755627203, source=medium, firebase_event_origin(_o)=auto, _r=1, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=1234512345123451234, campaign_info_source(_cis)=referrer broadcast, _dbg=1}]}
04-09 11:05:04.399 V/FA-SVC ( 8508): Upload scheduled in approximately ms: 500
04-09 11:05:04.400 V/FA-SVC ( 8508): Cancelling job. JobID: 812057698
04-09 11:05:04.403 V/FA-SVC ( 8508): Scheduling upload with DelayedRunnable
04-09 11:05:04.404 V/FA-SVC ( 8508): Scheduling upload with GcmTaskService
04-09 11:05:04.404 V/FA-SVC ( 8508): Scheduling task with Gcm. time: 500
04-09 11:05:04.409 V/FA-SVC ( 8508): Background event processing time, ms: 21
04-09 11:05:04.662 I/FA ( 7426): Install Referrer Service connected
04-09 11:05:04.679 E/FA ( 7426): Service response is missing Install Referrer install timestamp
04-09 11:05:04.907 V/FA-SVC ( 8508): Cancelling job. JobID: 812057698
04-09 11:05:04.910 V/FA-SVC ( 8508): Starting upload from DelayedRunnable
04-09 11:05:04.918 V/FA-SVC ( 8508): Saving bundle, size: 505
04-09 11:05:04.919 D/FA-SVC ( 8508): Uploading events. Elapsed time since last upload attempt (ms): 512
04-09 11:05:04.921 V/FA-SVC ( 8508): Uploading data. app, uncompressed size, data: com.example, 546,
...
04-09 11:05:04.921 V/FA-SVC ( 8508): Not stopping services. fetch, network, upload: false, true, false
04-09 11:05:04.923 V/FA-SVC ( 8508): Uploading data. size: 519
04-09 11:05:05.149 V/FA-SVC ( 8508): Upload scheduled in approximately ms: 3599995
04-09 11:05:05.151 V/FA-SVC ( 8508): Cancelling job. JobID: 812057698
04-09 11:05:05.157 V/FA-SVC ( 8508): Scheduling upload with GcmTaskService
04-09 11:05:05.157 V/FA-SVC ( 8508): Scheduling task with Gcm. time: 3599995
04-09 11:05:05.160 V/FA-SVC ( 8508): Successful upload. Got network response. code, size: 204, 0
04-09 11:05:05.164 V/FA-SVC ( 8508): Nothing to upload or uploading impossible
04-09 11:05:05.165 V/FA-SVC ( 8508): Cancelling job. JobID: 812057698
04-09 11:05:05.169 V/FA-SVC ( 8508): Stopping uploading service(s)
In Firebase under "Conversions", I can see that first_open is set to "Mark as conversion". However, the data only shows google-play, (direct) and google as sources.
Also, I can see "screen_view" and "user_engagement" events in the Firebase DebugView when I turn it on, but nothing related to the referrer attribution.
I'm not sure what the problem is---does it need to be a Google campaign? (Ultimately I want to track facebook campaigns.) Or does it need to be installed from the Play store? Or is there something else I'm missing?

Related

On Appetize.io app does not send analytic events to Firebase debugView

We have Firebase Crashlytics logging on the app. I am trying to log events to Firebase as described here. Also manifest contains:
<meta-data
android:name="firebase_analytics_collection_deactivated"
tools:node="remove" />
<meta-data
android:name="firebase_analytics_collection_enabled"
android:value="true"
tools:replace="android:value" />
On appetize.io there is ssh tunnel, so I can remotely connect via adb. When running adb shell setprop debug.firebase.analytics.app com.my.app I expect live events to show up on Firebase, which does not happen.
Here are the logs from the Appetize via their adb tunnel:
❯ adb shell setprop log.tag.FA VERBOSE
adb shell setprop log.tag.FA-SVC VERBOSE
adb logcat -v time -s FA FA-SVC
--------- beginning of main
10-28 05:00:20.671 I/FA ( 1924): App measurement disabled by setAnalyticsCollectionEnabled(false)
10-28 05:00:20.672 I/FA ( 1924): App measurement initialized, version: 28015
10-28 05:00:20.672 I/FA ( 1924): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
10-28 05:00:20.672 I/FA ( 1924): To enable faster debug mode event logging run:
10-28 05:00:20.672 I/FA ( 1924): adb shell setprop debug.firebase.analytics.app com.google.android.apps.youtube.music
10-28 05:00:21.239 I/FA-SVC ( 1294): App measurement initialized, version: 212423
10-28 05:00:22.785 W/FA-SVC ( 1294): Storing bundle outside of the max uploading time span. appId, now, timestamp: com.google.android.apps.maps, 1666918822785, 1636602805328
10-28 05:00:23.947 I/FA ( 1830): App measurement initialized, version: 42041
10-28 05:00:23.947 I/FA ( 1830): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
10-28 05:00:23.947 I/FA ( 1830): To enable faster debug mode event logging run:
10-28 05:00:23.947 I/FA ( 1830): adb shell setprop debug.firebase.analytics.app com.google.android.googlequicksearchbox
10-28 05:00:23.976 I/FA ( 1830): Tag Manager is not found and thus will not be used
10-28 05:00:23.986 I/FA ( 2735): App measurement initialized, version: 42041
10-28 05:00:23.986 I/FA ( 2735): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
10-28 05:00:23.986 I/FA ( 2735): To enable faster debug mode event logging run:
10-28 05:00:23.986 I/FA ( 2735): adb shell setprop debug.firebase.analytics.app com.google.android.apps.messaging
10-28 05:00:24.862 I/FA ( 1942): App measurement initialized, version: 42041
10-28 05:00:24.862 I/FA ( 1942): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
10-28 05:00:24.862 I/FA ( 1942): To enable faster debug mode event logging run:
10-28 05:00:24.862 I/FA ( 1942): adb shell setprop debug.firebase.analytics.app com.google.android.youtube
10-28 05:00:31.955 I/FA ( 3615): App measurement disabled by setAnalyticsCollectionEnabled(false)
10-28 05:00:31.955 I/FA ( 3615): App measurement initialized, version: 28015
10-28 05:00:31.955 I/FA ( 3615): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
10-28 05:00:31.955 I/FA ( 3615): To enable faster debug mode event logging run:
10-28 05:00:31.955 I/FA ( 3615): adb shell setprop debug.firebase.analytics.app com.google.android.apps.youtube.music
10-28 05:00:38.669 I/FA ( 4175): App measurement initialized, version: 42041
10-28 05:00:38.669 I/FA ( 4175): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
10-28 05:00:38.669 I/FA ( 4175): To enable faster debug mode event logging run:
10-28 05:00:38.669 I/FA ( 4175): adb shell setprop debug.firebase.analytics.app com.google.android.youtube
10-28 05:00:44.960 I/FA-SVC ( 1094): App measurement initialized, version: 212423
10-28 05:00:51.372 I/FA ( 4626): App measurement initialized, version: 42041
10-28 05:00:51.372 I/FA ( 4626): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
10-28 05:00:51.372 I/FA ( 4626): To enable faster debug mode event logging run:
10-28 05:00:51.372 I/FA ( 4626): adb shell setprop debug.firebase.analytics.app com.google.android.apps.messaging
10-28 05:01:23.688 I/FA ( 5468): App measurement disabled by setAnalyticsCollectionEnabled(false)
10-28 05:01:23.689 I/FA ( 5468): App measurement initialized, version: 28015
10-28 05:01:23.689 I/FA ( 5468): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
10-28 05:01:23.689 I/FA ( 5468): To enable faster debug mode event logging run:
10-28 05:01:23.689 I/FA ( 5468): adb shell setprop debug.firebase.analytics.app com.google.android.apps.youtube.music
10-28 05:01:29.271 I/FA ( 5611): App measurement initialized, version: 42041
10-28 05:01:29.271 I/FA ( 5611): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
10-28 05:01:29.271 I/FA ( 5611): To enable faster debug mode event logging run:
10-28 05:01:29.271 I/FA ( 5611): adb shell setprop debug.firebase.analytics.app com.google.android.youtube
10-28 05:01:29.312 I/FA-SVC ( 5882): App measurement initialized, version: 212423
10-28 05:01:29.540 I/FA-SVC ( 5882): Install Referrer Reporter is not available
10-28 05:01:32.590 I/FA ( 5818): App measurement initialized, version: 42041
10-28 05:01:32.590 I/FA ( 5818): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
10-28 05:01:32.590 I/FA ( 5818): To enable faster debug mode event logging run:
10-28 05:01:32.590 I/FA ( 5818): adb shell setprop debug.firebase.analytics.app com.google.android.googlequicksearchbox
10-28 05:01:32.618 I/FA-SVC ( 5882): Install Referrer Reporter is not available
10-28 05:01:35.729 I/FA-SVC ( 5832): App measurement initialized, version: 212423
10-28 05:01:45.440 W/FA-SVC ( 5882): Storing bundle outside of the max uploading time span. appId, now, timestamp: com.google.android.googlequicksearchbox, 1666918905440, 1636602615899
10-28 05:01:45.519 W/FA-SVC ( 5882): Storing bundle outside of the max uploading time span. appId, now, timestamp: com.google.android.youtube, 1666918905519, 1636601698965
10-28 16:27:54.843 I/FA ( 7296): App measurement disabled by setAnalyticsCollectionEnabled(false)
10-28 16:27:54.860 I/FA ( 7296): App measurement initialized, version: 28015
10-28 16:27:54.860 I/FA ( 7296): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
10-28 16:27:54.860 I/FA ( 7296): To enable faster debug mode event logging run:
10-28 16:27:54.860 I/FA ( 7296): adb shell setprop debug.firebase.analytics.app com.google.android.apps.youtube.music
10-28 16:27:55.996 I/FA ( 6908): App measurement initialized, version: 42041
10-28 16:27:55.996 I/FA ( 6908): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
10-28 16:27:55.996 I/FA ( 6908): To enable faster debug mode event logging run:
10-28 16:27:55.996 I/FA ( 6908): adb shell setprop debug.firebase.analytics.app com.google.android.apps.messaging
10-28 16:27:56.055 I/FA-SVC ( 5882): Install Referrer Reporter is not available
10-28 16:27:56.595 W/FA-SVC ( 5882): Storing bundle outside of the max uploading time span. appId, now, timestamp: com.google.android.apps.messaging, 1666960076595, 1636601717426
10-28 16:50:56.089 I/FA ( 8871): App measurement initialized, version: 42041
10-28 16:50:56.089 I/FA ( 8871): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
10-28 16:50:56.089 I/FA ( 8871): To enable faster debug mode event logging run:
10-28 16:50:56.089 I/FA ( 8871): adb shell setprop debug.firebase.analytics.app com.my.app.staging
10-28 16:50:56.994 I/FA-SVC ( 8546): App measurement initialized, version: 212423
10-28 16:50:57.070 I/FA ( 8871): Tag Manager is not found and thus will not be used
10-28 16:50:57.271 I/FA-SVC ( 8546): Install Referrer Reporter is not available
10-28 16:50:57.296 W/FA ( 8871): Cannot log screen view event when the app is in the background.
10-28 16:50:57.402 W/FA ( 8871): Cannot log screen view event when the app is in the background.
10-28 16:50:57.450 W/FA ( 8871): Invalid screen class length for screen view. Length: 0
10-28 16:50:57.630 I/FA ( 9171): App measurement disabled by setAnalyticsCollectionEnabled(false)
10-28 16:50:57.653 I/FA ( 9171): App measurement initialized, version: 28015
10-28 16:50:57.653 I/FA ( 9171): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
10-28 16:50:57.653 I/FA ( 9171): To enable faster debug mode event logging run:
10-28 16:50:57.653 I/FA ( 9171): adb shell setprop debug.firebase.analytics.app com.google.android.apps.youtube.music
10-28 16:50:59.244 W/FA ( 8871): Cannot log screen view event when the app is in the background.
10-28 16:50:59.244 W/FA ( 8871): Cannot log screen view event when the app is in the background.
10-28 16:50:59.273 W/FA ( 8871): Invalid screen class length for screen view. Length: 0
10-28 16:51:02.879 I/FA ( 9572): App measurement initialized, version: 42041
10-28 16:51:02.879 I/FA ( 9572): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
10-28 16:51:02.879 I/FA ( 9572): To enable faster debug mode event logging run:
10-28 16:51:02.879 I/FA ( 9572): adb shell setprop debug.firebase.analytics.app com.google.android.youtube
10-28 16:51:04.060 W/FA ( 8871): Cannot log screen view event when the app is in the background.
10-28 16:51:04.069 W/FA ( 8871): Cannot log screen view event when the app is in the background.
10-28 16:51:11.434 I/FA ( 9059): App measurement initialized, version: 42041
10-28 16:51:11.434 I/FA ( 9059): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
10-28 16:51:11.434 I/FA ( 9059): To enable faster debug mode event logging run:
10-28 16:51:11.434 I/FA ( 9059): adb shell setprop debug.firebase.analytics.app com.google.android.apps.messaging
10-28 16:51:38.799 D/FA ( 8871): Event not sent since app measurement is disabled
10-28 16:51:40.534 D/FA ( 8871): Event not sent since app measurement is disabled
10-28 16:51:42.528 D/FA ( 8871): Event not sent since app measurement is disabled
10-28 16:51:43.550 D/FA ( 8871): Event not sent since app measurement is disabled
10-28 16:51:43.625 V/FA ( 8871): Recording user engagement, ms: 39549
10-28 16:51:43.637 V/FA ( 8871): Connecting to remote service
10-28 16:51:43.643 V/FA ( 8871): Activity paused, time: 1563702
10-28 16:51:43.643 D/FA ( 8871): Event not sent since app measurement is disabled
10-28 16:51:43.659 V/FA ( 8871): onActivityCreated
10-28 16:51:43.729 W/FA ( 8871): Cannot log screen view event when the app is in the background.
10-28 16:51:43.738 W/FA ( 8871): Cannot log screen view event when the app is in the background.
10-28 16:51:43.744 V/FA ( 8871): Activity resumed, time: 1563822
10-28 16:51:43.746 D/FA ( 8871): Event not sent since app measurement is disabled
10-28 16:51:43.746 V/FA ( 8871): Connection attempt already in progress
10-28 16:51:43.789 W/FA ( 8871): Invalid screen class length for screen view. Length: 0
10-28 16:51:43.795 D/FA ( 8871): Connected to remote service
10-28 16:51:43.806 V/FA ( 8871): Processing queued up service tasks: 2
10-28 16:51:46.333 V/FA ( 8871): Recording user engagement, ms: 2585
10-28 16:51:46.334 V/FA ( 8871): Activity paused, time: 1566412
10-28 16:51:46.334 D/FA ( 8871): Event not sent since app measurement is disabled
10-28 16:51:46.339 V/FA ( 8871): onActivityCreated
10-28 16:51:46.451 D/FA ( 8871): Event not sent since app measurement is disabled
10-28 16:51:46.453 W/FA ( 8871): Cannot log screen view event when the app is in the background.
10-28 16:51:46.492 W/FA ( 8871): Cannot log screen view event when the app is in the background.
10-28 16:51:46.495 W/FA ( 8871): Cannot log screen view event when the app is in the background.
10-28 16:51:46.495 W/FA ( 8871): Cannot log screen view event when the app is in the background.
10-28 16:51:46.495 W/FA ( 8871): Cannot log screen view event when the app is in the background.
10-28 16:51:46.501 V/FA ( 8871): Activity resumed, time: 1566581
10-28 16:51:46.505 D/FA ( 8871): Event not sent since app measurement is disabled
10-28 16:51:46.562 W/FA ( 8871): Invalid screen class length for screen view. Length: 0
10-28 16:51:46.673 V/FA ( 8871): Logging screen view with name, class: SupportRequestManagerFragment, com.my.app.main.MainActivity
10-28 16:51:46.674 V/FA ( 8871): Screen exposed for less than 1000 ms. Event not sent. time: 172
10-28 16:51:46.706 D/FA ( 8871): Event not sent since app measurement is disabled
10-28 16:51:51.728 V/FA ( 8871): Inactivity, disconnecting from the service
10-28 16:51:57.453 D/FA ( 8871): Event not sent since app measurement is disabled
10-28 16:51:57.492 W/FA ( 8871): Invalid screen class length for screen view. Length: 0
10-28 16:51:57.493 V/FA ( 8871): Logging screen view with name, class: ConnectTabFragment, com.my.app.main.MainActivity
10-28 16:51:57.496 V/FA ( 8871): Recording user engagement, ms: 10992
10-28 16:51:57.499 D/FA ( 8871): Event not sent since app measurement is disabled
10-28 16:51:57.499 V/FA ( 8871): Connecting to remote service
10-28 16:51:57.522 W/FA ( 8871): Invalid screen class length for screen view. Length: 0
10-28 16:51:57.532 V/FA ( 8871): Logging screen view with name, class: ConnectionsFragment, com.my.app.main.MainActivity
10-28 16:51:57.533 V/FA ( 8871): Screen exposed for less than 1000 ms. Event not sent. time: 38
10-28 16:51:57.545 D/FA ( 8871): Event not sent since app measurement is disabled
10-28 16:51:57.546 V/FA ( 8871): Connection attempt already in progress
10-28 16:51:57.553 D/FA ( 8871): Connected to remote service
10-28 16:51:57.554 V/FA ( 8871): Processing queued up service tasks: 2
10-28 16:52:02.555 V/FA ( 8871): Inactivity, disconnecting from the service
10-28 16:52:44.154 D/FA ( 8871): Event not sent since app measurement is disabled
10-28 16:52:44.176 W/FA ( 8871): Invalid screen class length for screen view. Length: 0
10-28 16:52:44.181 V/FA ( 8871): Logging screen view with name, class: AccountFragment, com.my.app.main.MainActivity
10-28 16:52:44.182 V/FA ( 8871): Recording user engagement, ms: 46688
10-28 16:52:44.186 D/FA ( 8871): Event not sent since app measurement is disabled
10-28 16:52:44.186 V/FA ( 8871): Connecting to remote service
10-28 16:52:44.227 D/FA ( 8871): Connected to remote service
10-28 16:52:44.227 V/FA ( 8871): Processing queued up service tasks: 1
10-28 16:52:49.228 V/FA ( 8871): Inactivity, disconnecting from the service
10-28 16:54:31.718 D/FA ( 8871): Event not sent since app measurement is disabled
10-28 16:54:31.752 V/FA ( 8871): Logging screen view with name, class: ProfileViewerFragment, com.my.app.main.MainActivity
10-28 16:54:31.754 V/FA ( 8871): Recording user engagement, ms: 107571
10-28 16:54:31.756 D/FA ( 8871): Event not sent since app measurement is disabled
10-28 16:54:31.759 V/FA ( 8871): Connecting to remote service
10-28 16:54:31.772 D/FA ( 8871): Event not sent since app measurement is disabled
10-28 16:54:31.798 V/FA ( 8871): Logging screen view with name, class: ProfileFieldsFragment, com.my.app.main.MainActivity
10-28 16:54:31.799 V/FA ( 8871): Screen exposed for less than 1000 ms. Event not sent. time: 46
10-28 16:54:31.802 D/FA ( 8871): Event not sent since app measurement is disabled
10-28 16:54:31.802 V/FA ( 8871): Connection attempt already in progress
10-28 16:54:31.811 D/FA ( 8871): Event not sent since app measurement is disabled
10-28 16:54:31.816 W/FA ( 8871): Invalid screen class length for screen view. Length: 0
10-28 16:54:31.819 V/FA ( 8871): Logging screen view with name, class: NoticeboardLandingFragment, com.my.app.main.MainActivity
10-28 16:54:31.820 D/FA ( 8871): Event not sent since app measurement is disabled
10-28 16:54:31.823 V/FA ( 8871): Screen exposed for less than 1000 ms. Event not sent. time: 67
10-28 16:54:31.825 D/FA ( 8871): Event not sent since app measurement is disabled
10-28 16:54:31.825 V/FA ( 8871): Connection attempt already in progress
10-28 16:54:31.841 W/FA ( 8871): Invalid screen class length for screen view. Length: 0
10-28 16:54:31.869 D/FA ( 8871): Connected to remote service
10-28 16:54:31.869 V/FA ( 8871): Processing queued up service tasks: 3
10-28 16:54:36.871 V/FA ( 8871): Inactivity, disconnecting from the service
10-28 16:56:49.286 W/FA ( 8871): Invalid screen class length for screen view. Length: 0
10-28 16:56:49.533 V/FA ( 8871): Logging screen view with name, class: WebViewBottomSheetFragment, com.my.app.main.MainActivity
10-28 16:56:49.560 D/FA ( 8871): Event not sent since app measurement is disabled
10-28 16:56:49.561 V/FA ( 8871): Recording user engagement, ms: 137781
10-28 16:56:49.562 D/FA ( 8871): Event not sent since app measurement is disabled
10-28 16:56:49.562 V/FA ( 8871): Connecting to remote service
10-28 16:56:49.802 D/FA ( 8871): Connected to remote service
10-28 16:56:49.802 V/FA ( 8871): Processing queued up service tasks: 1
10-28 16:56:54.804 V/FA ( 8871): Inactivity, disconnecting from the service
As you can see in the logs, the completely differ to what shows up on emulator running on my PC. It logs Event not sent since app measurement is disabled, but this should not happen, right? manifest already contains true as mentioned above.
The error you encountered is returned whenever you're trying to log an event but Firebase Analytics is disabled for your app, so you might need to check if there is a code or configuration somewhere in your project that can cause this. You can use this doc as a reference for this. Though, it looks like you haven't set the "firebase_analytics_collection_deactivated" properly. I think you would need to add value whether you want to permanently disable the collection or not. It is something similar to this -

Reading from Firebase Database without crashing

I'm creating an app that requires me to read from a fire base database and this value to alter layouts. I've tried using the 'help' from android studio but when I run the program it crashes. The photo I've attached is the 'help' not as code because it crashed the program and I wanted it work basically. So can anyone advise an easier method of reading from the database?
Thanks
12-04 11:38:44.004 3524-3524/com.example.jopayne1968.points4spending I/FA: App measurement is starting up, version: 11020
12-04 11:38:44.004 3524-3524/com.example.jopayne1968.points4spending I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
12-04 11:38:44.034 3524-3524/com.example.jopayne1968.points4spending V/FA: Collection enabled
12-04 11:38:44.034 3524-3524/com.example.jopayne1968.points4spending V/FA: App package, google app id: com.example.jopayne1968.points4spending, 1:723788589244:android:e3ad2acca46870b3
12-04 11:38:44.034 3524-3524/com.example.jopayne1968.points4spending I/FA: To enable faster debug mode event logging run:
adb shell setprop debug.firebase.analytics.app com.example.jopayne1968.points4spending
12-04 11:38:44.034 3524-3524/com.example.jopayne1968.points4spending D/FA: Debug-level message logging enabled
12-04 11:38:44.104 3524-3524/com.example.jopayne1968.points4spending V/FA: Registered activity lifecycle callback
12-04 11:38:44.114 3524-3630/com.example.jopayne1968.points4spending V/FA: Using measurement service
12-04 11:38:44.114 3524-3630/com.example.jopayne1968.points4spending V/FA: Connecting to remote service
12-04 11:38:44.114 3524-3630/com.example.jopayne1968.points4spending V/FA: Connection attempt already in progress
12-04 11:38:44.264 3524-3524/com.example.jopayne1968.points4spending V/FA: onActivityCreated
12-04 11:38:44.514 3524-3630/com.example.jopayne1968.points4spending V/FA: Using measurement service
12-04 11:38:44.514 3524-3630/com.example.jopayne1968.points4spending V/FA: Connection attempt already in progress
12-04 11:38:44.514 3524-3630/com.example.jopayne1968.points4spending V/FA: Activity resumed, time: 60750091
12-04 11:38:44.514 3524-3630/com.example.jopayne1968.points4spending I/FA: Tag Manager is not found and thus will not be used
12-04 11:38:44.514 3524-3630/com.example.jopayne1968.points4spending D/FA: Logging event (FE): screen_view(_vs), Bundle[{firebase_event_origin(_o)=auto, firebase_screen_class(_sc)=SignUpActivity, firebase_screen_id(_si)=531904640859358265}]
12-04 11:38:44.544 3524-3630/com.example.jopayne1968.points4spending V/FA: Using measurement service
12-04 11:38:44.544 3524-3630/com.example.jopayne1968.points4spending V/FA: Connection attempt already in progress
12-04 11:38:44.744 3524-3630/com.example.jopayne1968.points4spending D/FA: Connected to remote service
12-04 11:38:44.744 3524-3630/com.example.jopayne1968.points4spending V/FA: Processing queued up service tasks: 4
12-04 11:38:44.794 3422-2815/? V/FA-SVC: Logging event: origin=auto,name=screen_view(_vs),params=Bundle[{firebase_event_origin(_o)=auto, firebase_screen_class(_sc)=SignUpActivity, firebase_screen_id(_si)=531904640859358265}]
12-04 11:38:44.804 3422-2815/? V/FA-SVC: Saving event, name, data size: screen_view(_vs), 59
12-04 11:38:44.804 3422-2815/? V/FA-SVC: Event recorded: Event{appId='com.example.jopayne1968.points4spending', name='screen_view(_vs)', params=Bundle[{firebase_event_origin(_o)=auto, firebase_screen_class(_sc)=SignUpActivity, firebase_screen_id(_si)=531904640859358265}]}
12-04 11:38:44.814 3422-2815/? V/FA-SVC: Upload scheduled in approximately ms: 3418911
12-04 11:38:44.814 3422-2815/? V/FA-SVC: Scheduling upload with GcmTaskService
12-04 11:38:44.814 3422-2815/? V/FA-SVC: Scheduling task with Gcm. Time3418911
12-04 11:38:44.824 3422-2815/? V/FA-SVC: Background event processing time, ms: 28
12-04 11:38:49.854 3524-3630/com.example.jopayne1968.points4spending V/FA: Inactivity, disconnecting from the service

Firebase strange behavior. Stopped accessing the network

Trying to retrieve data from Firebase DB, all is worked fine, then after couple of requests I saw strange logs and no data being retrieved anymore, Firebase event doesn't call the network I see it in logcat.
Here is full log. I am using Firebase 11.0.2
07-14 10:22:58.933 2462-16349/com.google.android.gms V/FA-SVC: Logging event: origin=auto,name=session_start(_s),params=Bundle[{firebase_event_origin(_o)=auto, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=-2277481415355967345}]
07-14 10:22:58.936 2462-16349/com.google.android.gms V/FA-SVC: Saving event, name, data size: session_start(_s), 53
07-14 10:22:58.936 2462-16349/com.google.android.gms V/FA-SVC: Event recorded: Event{appId='com.contentoffice', name='session_start(_s)', params=Bundle[{firebase_event_origin(_o)=auto, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=-2277481415355967345}]}
07-14 10:22:58.938 2462-16349/com.google.android.gms V/FA-SVC: Upload scheduled in approximately ms: 456
07-14 10:22:58.939 2462-16349/com.google.android.gms V/FA-SVC: Cancelling job. JobID: 812057698
07-14 10:22:58.940 2462-16349/com.google.android.gms V/FA-SVC: Scheduling upload with DelayedRunnable
07-14 10:22:58.940 2462-16349/com.google.android.gms V/FA-SVC: Scheduling upload with AlarmManager
07-14 10:22:58.940 2462-16349/com.google.android.gms V/FA-SVC: Background event processing time, ms: 7
07-14 10:22:59.400 2462-16349/com.google.android.gms V/FA-SVC: Sending upload intent from DelayedRunnable
07-14 10:22:59.403 2462-2462/com.google.android.gms V/FA-SVC: Device receiver got: com.google.android.gms.measurement.UPLOAD
07-14 10:22:59.407 2462-2462/com.google.android.gms V/FA-SVC: Device PackageMeasurementService is starting up
07-14 10:22:59.408 2462-2462/com.google.android.gms V/FA-SVC: Device PackageMeasurementService called. startId, action: 1, com.google.android.gms.measurement.UPLOAD
07-14 10:22:59.410 2462-16349/com.google.android.gms D/FA-SVC: Uploading events. Elapsed time since last upload attempt (ms): 10015
07-14 10:22:59.411 2462-16349/com.google.android.gms V/FA-SVC: Fetching remote configuration: com.contentoffice
07-14 10:22:59.411 2462-16349/com.google.android.gms V/FA-SVC: Not stopping services. fetch, network, upload: true, false, false
07-14 10:22:59.537 2462-16349/com.google.android.gms V/FA-SVC: onConfigFetched. Response size: 0
07-14 10:22:59.539 2462-16349/com.google.android.gms V/FA-SVC: Successfully fetched config. Got network response. code, size: 304, 0
07-14 10:22:59.547 2462-16349/com.google.android.gms V/FA-SVC: Saving bundle, size: 458
07-14 10:22:59.547 2462-16349/com.google.android.gms D/FA-SVC: Uploading events. Elapsed time since last upload attempt (ms): 10147
07-14 10:22:59.550 2462-16349/com.google.android.gms V/FA-SVC: Uploading data. app, uncompressed size, data: com.contentoffice, 586,
batch {
bundle {
protocol_version: 1
platform: android
gmp_version: 11020
uploading_gmp_version: 11055
config_version: 1499088177858764
gmp_app_id: 1:338872414290:android:1cfea40718f29dbd
app_id: com.contentoffice
app_version: 1.0
app_version_major: 1
firebase_instance_id: cAtrMCzM1uc
dev_cert_hash: -3540713154163920889
app_store: manual_install
upload_timestamp_millis: 1499998979541
start_timestamp_millis: 1499998968774
end_timestamp_millis: 1499998978912
app_instance_id: 071025213b0f2723ab50b3f71036b979
resettable_device_id: c3085378-5d4c-4053-a8dd-99d8139c7b36
limited_ad_tracking: false
os_version: 7.1.1
device_model: Android SDK built for x86
user_default_language: en-us
time_zone_offset_minutes: 480
bundle_sequential_index: 1
service_upload: true
user_property {
set_timestamp_millis: 1499998968774
name: first_open_time(_fot)
int_value: 1500001200000
}
user_property {
set_timestamp_millis: 1499998968774
name: first_open_after_install(_fi)
int_value: 1
}
event {
name: first_open(_f)
timestamp_millis: 1499998968774
previous_timestamp_millis: 0
param {
name: firebase_conversion(_c)
int_value: 1
}
param {
name: firebase_event_origin(_o)
string_value: auto
}
param {
name: _r
int_value: 1
}
param {
name: previous_first_open_count(_pfo)
int_value: 6
}
param {
name: system_app(_sys)
int_value: 0
}
param {
name: update_with_analytics(_uwa)
int_value: 0
}
param {
name: system_app_update(_sysu)
int_value: 0
}
}
event {
name: user_engagement(_e)
timestamp_millis: 1499998968774
previous_timestamp_millis: 0
param {
name: firebase_event_origin(_o)
string_value: auto
}
param {
name: engagement_time_msec(_et)
int_value: 1
}
}
event {
name: screen_view(_vs)
timestamp_millis: 1499998968911
previous_timestamp_millis: 0
param {
name: firebase_event_origin(_o)
string_value: auto
}
param {
name: firebase_screen_class(_sc)
string_value: MainActivity
}
param {
name: firebase_screen_id(_si)
int_value: -2277481415355967345
}
}
event {
name: session_start(_s)
timestamp_millis: 1499998978912
previous_timestamp_millis: 0
param {
name: firebase_event_origin(_o)
string_value: auto
}
param {
name: firebase_screen_class(_sc)
string_value: MainActivity
}
param {
name: firebase_screen_id(_si)
int_value: -2277481415355967345
}
}
}
}
07-14 10:22:59.550 2462-16349/com.google.android.gms V/FA-SVC: Not stopping services. fetch, network, upload: true, true, false
07-14 10:22:59.552 2462-16500/com.google.android.gms V/FA-SVC: Uploading data. size: 472
07-14 10:22:59.558 2462-16349/com.google.android.gms V/FA-SVC: Not stopping services. fetch, network, upload: false, true, false
07-14 10:22:59.662 2462-16349/com.google.android.gms V/FA-SVC: Upload scheduled in approximately ms: 3599994
07-14 10:22:59.664 2462-16349/com.google.android.gms V/FA-SVC: Cancelling job. JobID: 812057698
07-14 10:22:59.664 2462-16349/com.google.android.gms V/FA-SVC: Scheduling upload with AlarmManager
07-14 10:22:59.667 2462-16349/com.google.android.gms V/FA-SVC: Successful upload. Got network response. code, size: 204, 0
07-14 10:22:59.675 2462-16349/com.google.android.gms V/FA-SVC: Nothing to upload or uploading impossible
07-14 10:22:59.676 2462-16349/com.google.android.gms V/FA-SVC: Cancelling job. JobID: 812057698
07-14 10:22:59.677 2462-16349/com.google.android.gms V/FA-SVC: Stopping uploading service(s)
07-14 10:22:59.678 2462-16349/com.google.android.gms V/FA-SVC: Device PackageMeasurementService processed last upload request. StartId: 1
07-14 10:22:59.678 2462-2462/com.google.android.gms V/FA-SVC: Device PackageMeasurementService is shutting down
07-14 10:23:00.022 1792-2032/com.android.systemui D/EGL_emulation: eglMakeCurrent: 0x9fee93e0: ver 2 0 (tinfo 0x90f44540)
07-14 10:23:03.567 2170-15958/com.google.android.apps.nexuslauncher I/ClearcutLoggerApiImpl: disconnect managed GoogleApiClient
07-14 10:23:03.939 16294-16330/com.contentoffice V/FA: Inactivity, disconnecting from the service
Here is what am I doing to call Firebase
val query = FirebaseDatabase.getInstance().reference.child("posts").child("collection").limitToLast(10)
Do you install Google Play Services to your emulator?If yes, restart emulator and Android Studio than try again.Sometimes i get errors like this.
Well seems like its a firebase migration issue reported here as well :
https://github.com/firebase/firebase-android-sdk/issues/1944

Firebase Analytics getting uploaded successfully but not showing on Firebase console even after 2 days

I am trying Firebase Analytics in my app and I assume I have done all the initial setting right. I checked the log on terminal with this command:
adb logcat -v time -s FA FA-SVC
This is the log output -
09-26 11:20:09.760 V/FA (27438): Activity resumed, time: 3451189692
09-26 11:20:11.216 V/FA (27438): Activity paused, time: 3451191151
09-26 11:22:44.674 I/FA ( 5784): App measurement is starting up, version: 9080
09-26 11:22:44.674 I/FA ( 5784): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
09-26 11:22:44.674 D/FA ( 5784): Debug logging enabled
09-26 11:22:44.674 D/FA ( 5784): AppMeasurement singleton hash: 74700849
09-26 11:22:44.690 V/FA ( 5784): Collection enabled
09-26 11:22:44.690 V/FA ( 5784): App package, google app id: com.gaadi.sfa.dev, 1:450847066500:android:80a026686cf10a8d
09-26 11:22:44.708 V/FA ( 5784): Registered activity lifecycle callback
09-26 11:22:44.714 V/FA ( 5784): Using measurement service
09-26 11:22:44.715 V/FA ( 5784): Connecting to remote service
09-26 11:22:44.859 V/FA ( 5784): onActivityCreated
09-26 11:22:45.011 D/FA ( 5784): Logging event (FE): select_content, Bundle[{item_name=Splash screen opened, _o=app, item_id=7}]
09-26 11:22:45.012 V/FA ( 5784): Using measurement service
09-26 11:22:45.012 V/FA ( 5784): Connection attempt already in progress
09-26 11:22:45.012 D/FA ( 5784): Setting app measurement enabled (FE): true
09-26 11:22:45.012 V/FA ( 5784): Setting measurementEnabled: true
09-26 11:22:45.014 V/FA ( 5784): Using measurement service
09-26 11:22:45.014 V/FA ( 5784): Connection attempt already in progress
09-26 11:22:45.035 V/FA ( 5784): Activity resumed, time: 3451344970
09-26 11:22:45.240 D/FA ( 5784): Connected to remote service
09-26 11:22:45.240 V/FA ( 5784): Processing queued up service tasks: 3
09-26 11:22:45.273 V/FA-SVC ( 784): Logging event: origin=app,name=select_content,params=Bundle[mParcelledData.dataSize=140]
09-26 11:22:45.539 V/FA-SVC ( 784): Saving event, name, data size: select_content, 66
09-26 11:22:45.540 V/FA-SVC ( 784): Event recorded: Event{appId='com.gaadi.sfa.dev', name='select_content', params=Bundle[{item_name=Splash screen opened, _o=app, item_id=7}]}
09-26 11:22:45.565 V/FA-SVC ( 784): Upload scheduled in approximately ms: 14382
09-26 11:22:45.575 V/FA-SVC ( 784): Background event processing time, ms: 303
09-26 11:22:48.198 V/FA ( 5784): Activity paused, time: 3451348134
09-26 11:22:48.346 V/FA ( 5784): Activity resumed, time: 3451348281
09-26 11:22:50.263 V/FA ( 5784): Inactivity, disconnecting from AppMeasurementService
09-26 11:22:50.534 I/FA ( 6365): App measurement is starting up, version: 9452
09-26 11:22:50.535 I/FA ( 6365): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
09-26 11:22:50.535 D/FA ( 6365): Debug logging enabled
09-26 11:22:50.535 D/FA ( 6365): AppMeasurement singleton hash: 241818726
09-26 11:22:50.549 V/FA ( 6365): Collection enabled
09-26 11:22:50.549 V/FA ( 6365): App package, google app id: com.gaadi.app, 1:29823256680:android:0379d7b84ea091f3
09-26 11:22:50.558 V/FA ( 6365): Registered activity lifecycle callback
09-26 11:22:50.568 V/FA ( 6365): Using measurement service
09-26 11:22:50.576 V/FA ( 6365): Connecting to remote service
09-26 11:22:50.726 D/FA ( 6365): Connected to remote service
09-26 11:22:50.726 V/FA ( 6365): Processing queued up service tasks: 1
09-26 11:22:55.183 V/FA ( 5784): Session started, time: 3451355119
09-26 11:22:55.187 D/FA ( 5784): Logging event (FE): _s, Bundle[{_o=auto}]
09-26 11:22:55.187 V/FA ( 5784): Using measurement service
09-26 11:22:55.187 V/FA ( 5784): Connecting to remote service
09-26 11:22:55.194 D/FA ( 5784): Connected to remote service
09-26 11:22:55.195 V/FA ( 5784): Processing queued up service tasks: 1
09-26 11:22:55.198 V/FA-SVC ( 784): Logging event: origin=auto,name=_s,params=Bundle[mParcelledData.dataSize=36]
09-26 11:22:55.207 V/FA-SVC ( 784): Saving event, name, data size: _s, 19
09-26 11:22:55.211 V/FA-SVC ( 784): Event recorded: Event{appId='com.gaadi.sfa.dev', name='_s', params=Bundle[{_o=auto}]}
09-26 11:22:55.217 V/FA-SVC ( 784): Upload scheduled in approximately ms: 14967
09-26 11:22:55.224 V/FA-SVC ( 784): Background event processing time, ms: 26
09-26 11:22:55.743 V/FA ( 6365): Inactivity, disconnecting from AppMeasurementService
09-26 11:23:00.199 V/FA ( 5784): Inactivity, disconnecting from AppMeasurementService
09-26 11:23:10.373 V/FA-SVC ( 784): Device receiver got: com.google.android.gms.measurement.UPLOAD
09-26 11:23:10.381 V/FA-SVC ( 784): Device PackageMeasurementService is starting up
09-26 11:23:10.381 V/FA-SVC ( 784): Device PackageMeasurementService called. startId, action: 1, com.google.android.gms.measurement.UPLOAD
09-26 11:23:10.386 V/FA-SVC ( 784): Device receiver got: com.google.android.gms.measurement.UPLOAD
09-26 11:23:10.398 V/FA-SVC ( 784): Device PackageMeasurementService called. startId, action: 2, com.google.android.gms.measurement.UPLOAD
09-26 11:23:10.514 D/FA-SVC ( 784): Uploading events. Elapsed time since last upload attempt (ms): 36507706
09-26 11:23:10.522 V/FA-SVC ( 784): Fetching remote configuration: com.gaadi.sfa.dev
09-26 11:23:10.526 D/FA-SVC ( 784): Uploading events. Elapsed time since last upload attempt (ms): 36507847
09-26 11:23:10.528 V/FA-SVC ( 784): Fetching remote configuration: com.gaadi.sfa.dev
09-26 11:23:10.530 V/FA-SVC ( 784): Device PackageMeasurementService processed last upload request
09-26 11:23:10.530 V/FA-SVC ( 784): Device PackageMeasurementService is shutting down
09-26 11:23:11.394 V/FA-SVC ( 784): Successfully fetched config. Got network response. code, size: 304, 0
09-26 11:23:11.428 V/FA-SVC ( 784): Saving bundle, size: 437
09-26 11:23:11.429 D/FA-SVC ( 784): Uploading events. Elapsed time since last upload attempt (ms): 36508720
09-26 11:23:11.448 V/FA-SVC ( 784): Uploading data. app, uncompressed size, data: com.gaadi.sfa.dev, 475,
09-26 11:23:11.448 V/FA-SVC ( 784): batch {
09-26 11:23:11.448 V/FA-SVC ( 784): bundle {
09-26 11:23:11.448 V/FA-SVC ( 784): protocol_version: 1
09-26 11:23:11.448 V/FA-SVC ( 784): platform: android
09-26 11:23:11.448 V/FA-SVC ( 784): gmp_version: 9080
09-26 11:23:11.448 V/FA-SVC ( 784): uploading_gmp_version: 9683
09-26 11:23:11.448 V/FA-SVC ( 784): gmp_app_id: 1:450847066500:android:80a026686cf10a8d
09-26 11:23:11.448 V/FA-SVC ( 784): app_id: com.gaadi.sfa.dev
09-26 11:23:11.448 V/FA-SVC ( 784): app_version: 1.0.0.7
09-26 11:23:11.448 V/FA-SVC ( 784): app_version_major: 100007
09-26 11:23:11.448 V/FA-SVC ( 784): firebase_instance_id: e5ssFe0UGMY
09-26 11:23:11.448 V/FA-SVC ( 784): dev_cert_hash: -6222367415306193050
09-26 11:23:11.448 V/FA-SVC ( 784): app_store: manual_install
09-26 11:23:11.448 V/FA-SVC ( 784): upload_timestamp_millis: 1474869191396
09-26 11:23:11.448 V/FA-SVC ( 784): start_timestamp_millis: 1474869164947
09-26 11:23:11.448 V/FA-SVC ( 784): end_timestamp_millis: 1474869175184
09-26 11:23:11.448 V/FA-SVC ( 784): previous_bundle_start_timestamp_millis: 1474832497931
09-26 11:23:11.448 V/FA-SVC ( 784): previous_bundle_end_timestamp_millis: 1474832497931
09-26 11:23:11.448 V/FA-SVC ( 784): app_instance_id: 46bff6a9cfdd41f9c57bb94ff2a22a0a
09-26 11:23:11.448 V/FA-SVC ( 784): resettable_device_id: 7380f339-aa10-4513-a294-3a11d3048df6
09-26 11:23:11.448 V/FA-SVC ( 784): limited_ad_tracking: false
09-26 11:23:11.448 V/FA-SVC ( 784): os_version: 6.0.1
09-26 11:23:11.448 V/FA-SVC ( 784): device_model: MotoG3
09-26 11:23:11.448 V/FA-SVC ( 784): user_default_language: en-in
09-26 11:23:11.448 V/FA-SVC ( 784): time_zone_offset_minutes: 330
09-26 11:23:11.448 V/FA-SVC ( 784): bundle_sequential_index: 29
09-26 11:23:11.448 V/FA-SVC ( 784): service_upload: true
09-26 11:23:11.448 V/FA-SVC ( 784): user_property {
09-26 11:23:11.448 V/FA-SVC ( 784): set_timestamp_millis: 1474610827551
09-26 11:23:11.448 V/FA-SVC ( 784): name: _fot
09-26 11:23:11.448 V/FA-SVC ( 784): int_value: 1474614000000
09-26 11:23:11.448 V/FA-SVC ( 784): }
09-26 11:23:11.448 V/FA-SVC ( 784): user_property {
09-26 11:23:11.448 V/FA-SVC ( 784): set_timestamp_millis: 1474832490868
09-26 11:23:11.448 V/FA-SVC ( 784): name: LandingDboard
09-26 11:23:11.448 V/FA-SVC ( 784): string_value: LandingDboard opened
09-26 11:23:11.448 V/FA-SVC ( 784): }
09-26 11:23:11.448 V/FA-SVC ( 784): event {
09-26 11:23:11.448 V/FA-SVC ( 784): name: select_content
09-26 11:23:11.448 V/FA-SVC ( 784): timestamp_millis: 1474869164947
09-26 11:23:11.448 V/FA-SVC ( 784): previous_timestamp_millis: 1474832486501
09-26 11:23:11.448 V/FA-SVC ( 784): param {
09-26 11:23:11.448 V/FA-SVC ( 784): name: item_name
09-26 11:23:11.448 V/FA-SVC ( 784): string_value: Splash screen opened
09-26 11:23:11.448 V/FA-SVC ( 784): }
09-26 11:23:11.448 V/FA-SVC ( 784): param {
09-26 11:23:11.448 V/FA-SVC ( 784): name: _o
09-26 11:23:11.448 V/FA-SVC ( 784): string_value: app
09-26 11:23:11.448 V/FA-SVC ( 784): }
09-26 11:23:11.448 V/FA-SVC ( 784): param {
09-26 11:23:11.448 V/FA-SVC ( 784): name: item_id
09-26 11:23:11.448 V/FA-SVC ( 784): int_value: 7
09-26 11:23:11.448 V/FA-SVC ( 784): }
09-26 11:23:11.448 V/FA-SVC ( 784): }
09-26 11:23:11.448 V/FA-SVC ( 784): event {
09-26 11:23:11.448 V/FA-SVC ( 784): name: _s
09-26 11:23:11.448 V/FA-SVC ( 784): timestamp_millis: 1474869175184
09-26 11:23:11.448 V/FA-SVC ( 784): previous_timestamp_millis: 1474830293753
09-26 11:23:11.448 V/FA-SVC ( 784): param {
09-26 11:23:11.448 V/FA-SVC ( 784): name: _o
09-26 11:23:11.448 V/FA-SVC ( 784): string_value: auto
09-26 11:23:11.448 V/FA-SVC ( 784): }
09-26 11:23:11.448 V/FA-SVC ( 784): }
09-26 11:23:11.448 V/FA-SVC ( 784): }
09-26 11:23:11.448 V/FA-SVC ( 784): }
09-26 11:23:11.551 V/FA-SVC ( 784): Successfully fetched config. Got network response. code, size: 304, 0
09-26 11:23:11.552 V/FA-SVC ( 784): Uploading data. size: 454
09-26 11:23:11.554 W/FA-SVC ( 784): Uploading requested multiple times
09-26 11:23:12.097 V/FA-SVC ( 784): Upload scheduled in approximately ms: 3599996
09-26 11:23:12.100 V/FA-SVC ( 784): Successful upload. Got network response. code, size: 204, 0
09-26 11:25:33.029 V/FA ( 5784): Activity paused, time: 3451512963
09-26 11:25:33.037 V/FA ( 5784): onActivityCreated
09-26 11:25:33.288 D/FA ( 5784): Setting user property (FE): LandingDboard, LandingDboard opened
09-26 11:25:33.289 V/FA ( 5784): Using measurement service
09-26 11:25:33.289 V/FA ( 5784): Connecting to remote service
09-26 11:25:33.318 V/FA ( 5784): Activity resumed, time: 3451513253
09-26 11:25:33.586 D/FA ( 5784): Connected to remote service
09-26 11:25:33.587 V/FA ( 5784): Processing queued up service tasks: 1
09-26 11:25:33.591 D/FA-SVC ( 784): Setting user property: LandingDboard, LandingDboard opened
09-26 11:25:33.611 D/FA-SVC ( 784): User property set: LandingDboard, LandingDboard opened
09-26 11:25:38.594 V/FA ( 5784): Inactivity, disconnecting from AppMeasurementService
Since my logs are being uploaded successfully, I don't think I have any Manifest Merger problems like this (correct me if I am wrong):
FirebaseApp with name [DEFAULT] doesn't exist
I have already made a demo project and its working fine. But when I am doing same exact thing in a pre-existing project, its not working.
Following is my Analytics code in the Splash Activity -
firebaseAnalytics = FirebaseAnalytics.getInstance(this);
Bundle bundle = new Bundle();
bundle.putInt(FirebaseAnalytics.Param.ITEM_ID, 7);
bundle.putString(FirebaseAnalytics.Param.ITEM_NAME, "Splash screen opened");
firebaseAnalytics.logEvent(FirebaseAnalytics.Event.SELECT_CONTENT, bundle);
firebaseAnalytics.setAnalyticsCollectionEnabled(true);
I am using firebase-analytics-9.0.0 (same for demo project and its working perfectly)
I even tried adding optional SHA1 key in the Firebase project setting in the console, but no success.
PS - My crash data is showing perfectly for the same project but no luck with Analytics.

Android Firebase Analytics events dont display on console

I have integrated firebase analytics in My android project. I am trying to capture screen visit events like.
Bundle params = new Bundle();
params.putString(FirebaseAnalytics.Param.ITEM_CATEGORY, "Custom screen");
params.putString(FirebaseAnalytics.Param.ITEM_NAME,"Custom screen name");
mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.VIEW_ITEM, params);
I have also tried from the google sample project with this code
Bundle bundle = new Bundle();
bundle.putString(FirebaseAnalytics.Param.ITEM_ID, "1");
bundle.putString(FirebaseAnalytics.Param.ITEM_NAME, "test name");
bundle.putString(FirebaseAnalytics.Param.CONTENT_TYPE, "image");
mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.SELECT_CONTENT, bundle);
My debug logs are showing that events are successfully posted.
09-19 14:22:15.364 I/FA ( 3313): App measurement is starting up, version: 9452
09-19 14:22:15.364 I/FA ( 3313): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
09-19 14:22:15.364 D/FA ( 3313): Debug logging enabled
09-19 14:22:15.365 D/FA ( 3313): AppMeasurement singleton hash: 233567450
09-19 14:22:15.383 V/FA ( 3313): Collection enabled
09-19 14:22:15.383 V/FA ( 3313): App package, google app id: com.prabhu.test, 1:64059382301:android:4262dc7062227fc8
09-19 14:22:15.393 V/FA ( 3313): Registered activity lifecycle callback
09-19 14:22:15.403 V/FA ( 3313): Using measurement service
09-19 14:22:15.404 V/FA ( 3313): Connecting to remote service
09-19 14:22:15.433 V/FA ( 3313): onActivityCreated
09-19 14:22:15.529 I/FA ( 3313): Tag Manager is not found and thus will not be used
09-19 14:22:15.529 D/FA ( 3313): Logging event (FE): select_content, Bundle[{item_name=test name, _o=app, content_type=image, item_id=1}]
09-19 14:22:15.530 V/FA ( 3313): Using measurement service
09-19 14:22:15.530 V/FA ( 3313): Connection attempt already in progress
09-19 14:22:15.532 D/FA ( 3313): Logging event (FE): view_item, Bundle[{item_name=Custom screen name, _o=app, item_category=Custom screen}]
09-19 14:22:15.532 V/FA ( 3313): Using measurement service
09-19 14:22:15.532 V/FA ( 3313): Connection attempt already in progress
09-19 14:22:15.532 V/FA ( 3313): Activity resumed, time: 273496560
09-19 14:22:15.698 D/FA ( 3313): Connected to remote service
09-19 14:22:15.698 V/FA ( 3313): Processing queued up service tasks: 3
09-19 14:22:15.751 V/FA-SVC (10602): Logging event: origin=app,name=select_content,params=Bundle[mParcelledData.dataSize=168]
09-19 14:22:15.766 V/FA-SVC (10602): Saving event, name, data size: select_content, 79
09-19 14:22:15.768 V/FA-SVC (10602): Event recorded: Event{appId='com.prabhu.test', name='select_content', params=Bundle[{item_name=test name, _o=app, content_type=image, item_id=1}]}
09-19 14:22:16.168 V/FA-SVC (10602): Upload scheduled in approximately ms: 2557230
09-19 14:22:16.171 V/FA-SVC (10602): Background event processing time, ms: 423
09-19 14:22:16.171 V/FA-SVC (10602): Logging event: origin=app,name=view_item,params=Bundle[mParcelledData.dataSize=176]
09-19 14:22:16.175 V/FA-SVC (10602): Saving event, name, data size: view_item, 84
09-19 14:22:16.175 V/FA-SVC (10602): Event recorded: Event{appId='com.prabhu.test', name='view_item', params=Bundle[{item_name=Custom screen name, _o=app, item_category=Custom screen}]}
09-19 14:22:16.212 V/FA-SVC (10602): Upload scheduled in approximately ms: 2557187
09-19 14:22:16.215 V/FA-SVC (10602): Background event processing time, ms: 44
09-19 14:22:20.723 V/FA ( 3313): Inactivity, disconnecting from AppMeasurementService
09-19 14:22:22.384 V/FA ( 3313): Activity paused, time: 273503415
09-19 14:22:23.515 V/FA ( 3313): onActivityCreated
09-19 14:22:23.531 D/FA ( 3313): Logging event (FE): select_content, Bundle[{item_name=test name, _o=app, content_type=image, item_id=1}]
09-19 14:22:23.531 V/FA ( 3313): Using measurement service
09-19 14:22:23.531 V/FA ( 3313): Connecting to remote service
09-19 14:22:23.539 D/FA ( 3313): Logging event (FE): view_item, Bundle[{item_name=Custom screen name, _o=app, item_category=Custom screen}]
09-19 14:22:23.539 V/FA ( 3313): Using measurement service
09-19 14:22:23.539 V/FA ( 3313): Connection attempt already in progress
09-19 14:22:23.539 V/FA ( 3313): Activity resumed, time: 273504562
09-19 14:22:23.594 D/FA ( 3313): Connected to remote service
09-19 14:22:23.594 V/FA ( 3313): Processing queued up service tasks: 2
09-19 14:22:23.602 V/FA-SVC (10602): Saving event, name, data size: select_content, 79
09-19 14:22:23.603 V/FA-SVC (10602): Event recorded: Event{appId='com.prabhu.test', name='select_content', params=Bundle[{item_name=test name, _o=app, content_type=image, item_id=1}]}
09-19 14:22:23.630 V/FA-SVC (10602): Upload scheduled in approximately ms: 2549768
09-19 14:22:23.632 V/FA-SVC (10602): Background event processing time, ms: 35
09-19 14:22:23.632 V/FA-SVC (10602): Logging event: origin=app,name=view_item,params=Bundle[mParcelledData.dataSize=176]
09-19 14:22:23.636 V/FA-SVC (10602): Saving event, name, data size: view_item, 84
09-19 14:22:23.636 V/FA-SVC (10602): Event recorded: Event{appId='com.prabhu.test', name='view_item', params=Bundle[{item_name=Custom screen name, _o=app, item_category=Custom screen}]}
09-19 14:22:23.648 V/FA-SVC (10602): Upload scheduled in approximately ms: 2549750
09-19 14:22:23.651 V/FA-SVC (10602): Background event processing time, ms: 18
09-19 14:22:26.687 V/FA ( 3313): Session started, time: 273507718
09-19 14:22:26.699 D/FA ( 3313): Logging event (FE): _s, Bundle[{_o=auto}]
09-19 14:22:26.709 V/FA-SVC (10602): Logging event: origin=auto,name=_s,params=Bundle[mParcelledData.dataSize=36]
09-19 14:22:26.738 V/FA-SVC (10602): Saving event, name, data size: _s, 19
09-19 14:22:26.739 V/FA-SVC (10602): Event recorded: Event{appId='com.prabhu.test', name='_s', params=Bundle[{_o=auto}]}
09-19 14:22:26.754 V/FA-SVC (10602): Upload scheduled in approximately ms: 2546644
09-19 14:22:26.757 V/FA-SVC (10602): Background event processing time, ms: 48
09-19 14:22:31.717 V/FA ( 3313): Inactivity, disconnecting from AppMeasurementService
09-19 14:24:23.422 V/FA ( 3313): Activity paused, time: 273624439
09-19 14:24:24.423 D/FA ( 3313): Application backgrounded. Logging engagement
09-19 14:24:24.427 D/FA ( 3313): Logging event (FE): _e, Bundle[{_o=auto, _et=126732}]
09-19 14:24:24.427 V/FA ( 3313): Using measurement service
09-19 14:24:24.428 V/FA ( 3313): Connecting to remote service
09-19 14:24:24.444 D/FA ( 3313): Connected to remote service
09-19 14:24:24.444 V/FA ( 3313): Processing queued up service tasks: 1
09-19 14:24:24.450 V/FA-SVC (10602): Logging event: origin=auto,name=_e,params=Bundle[mParcelledData.dataSize=60]
09-19 14:24:24.480 V/FA-SVC (10602): Saving event, name, data size: _e, 30
09-19 14:24:24.481 V/FA-SVC (10602): Event recorded: Event{appId='com.prabhu.test', name='_e', params=Bundle[{_o=auto, _et=126732}]}
09-19 14:24:24.500 V/FA-SVC (10602): Upload scheduled in approximately ms: 2428898
09-19 14:24:24.505 V/FA-SVC (10602): Background event processing time, ms: 56
09-19 14:24:29.455 V/FA ( 3313): Inactivity, disconnecting from AppMeasurementService
But , In my firebase analytics console events are not shown.
Please help me whats wrong with me?
FYI, For the same Google Firebase Analytics Project, events are shown from IOS app.
Look at the log:
09-19 14:22:16.168 V/FA-SVC (10602): Upload scheduled in approximately ms: 2557230
2557230 ms means 42 min 37 sec
Then also they seem to generate the reports regularly but not realtime.
https://firebase.google.com/docs/analytics/android/events
You can view aggregrated statistics about your events in the Firebase
console dashboards. These dashboards update periodically throughout
the day. For immediate testing, use the logcat output as described in
the previous section.
UPDATE:
See this answer from Steve Ganem, Product Manager for Firebase Analytics:
There is currently no way to manually override these settings.
However, we recognize the need to see your reporting more quickly and
we hope to address this need soon.
BUT, on the same thread Yoxi found a way to force initial upload sooner by clearing application data. I just did myself and I could see the initial upload. But that doesn't seem to make the data visible in the Firebase console any sooner.
11-04 14:46:14.112 V/FA (24746): Upload scheduled in approximately ms: 9028
You can run setprop adb shell setprop debug.firebase.analytics.app <package name>
for example adb shell setprop debug.firebase.analytics.app com.google.android.play.games
If you run this, firebase analytics events are uploaded in near real-time.
check this for more details
https://firebase.google.com/docs/analytics/debugview

Categories

Resources