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
Related
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?
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
While running the demo (https://github.com/androidthings/doorbell) on my respberry PI, I run into error like the following:
01-01 00:11:00.830 5672-5672/com.company.androidthings.doorbell I/CameraManagerGlobal: Connecting to camera service
01-01 00:11:00.835 5672-5672/com.company.androidthings.doorbell D/DoorbellCamera: Using camera id 0
01-01 00:11:00.853 5672-5723/com.company.androidthings.doorbell D/DoorbellCamera: Opened camera.
01-01 00:11:00.995 5672-5715/com.company.androidthings.doorbell I/FA: This instance being marked as an uploader
01-01 00:11:01.122 5672-5715/com.company.androidthings.doorbell D/FA: Unable to get advertising id: com.google.android.gms.common.GooglePlayServicesNotAvailableException: com.google.android.gms.measurement.internal.zzt.zzlx(Unknown Source)
01-01 00:11:01.253 5672-5732/com.company.androidthings.doorbell D/FirebaseInstanceId: background sync failed: SERVICE_NOT_AVAILABLE, retry in 10s
The following is the method I tried:
I did some research and find the following relevant post:
adjust/unity_sdk#88
Following the instruction to install play service with android SDK manage tool (using android studio). Clear the project. Rebuild. Install the new apk into respberry PI but still have the same error log.
I also checked on the firebase console, no picture was updated. Even from the android monitor, it was confirmed that button was pushed camera works as expected.
Regarding internet connection, I installed another app on the raspberry PI. It successfully sent the info to the server. It confirms the connectivity works as expected.
Any suggestion?
The log message you are seeing is from FirebaseAnalytics (the "FA" in the log tag), and makes sense since analytics is not enabled in this sample (unless you added code to enable it). Notice this is also a debug message (the "D" in the log tag) and not an error/warning.
This should not be affecting the Doorbell sample, so if you are not able to get the images uploaded properly to Firebase there is likely something else wrong with the project configuration and perhaps there are other clues deeper in the log.
It turns out that configuration is not appropriate. It uses the new SDK path which doesn't install google play service. Once I switch to the default SDK path of system which installed google play service. The logs looks different event though that message "Unable to get advertising id:" is still there. It seems (from FA log) the app can talk to the server.
04-24 15:22:53.659 16642-16642/? I/art: Late-enabling -Xcheck:jni
04-24 15:22:53.661 16642-16642/? W/art: Unknown instruction set features for ARM CPU variant (generic) using conservative defaults
04-24 15:22:53.709 16642-16649/? I/art: Debugger is no longer active
04-24 15:22:53.709 16642-16649/? I/art: Starting a blocking GC Instrumentation
04-24 15:22:54.610 16642-16642/? W/System: ClassLoader referenced unknown path: /data/app/com.company.androidthings.doorbell-1/lib/arm
04-24 15:22:54.678 16642-16642/com.company.androidthings.doorbell D/FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
04-24 15:22:54.712 16642-16642/com.company.androidthings.doorbell W/InstanceID/Rpc: Found 10007
04-24 15:22:54.723 16642-16642/com.company.androidthings.doorbell D/FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
04-24 15:22:54.812 16642-16642/com.company.androidthings.doorbell I/FA: App measurement is starting up, version: 9452
04-24 15:22:54.812 16642-16642/com.company.androidthings.doorbell I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
04-24 15:22:54.812 16642-16642/com.company.androidthings.doorbell D/FA: Debug logging enabled
04-24 15:22:54.812 16642-16642/com.company.androidthings.doorbell D/FA: AppMeasurement singleton hash: 202124672
04-24 15:22:54.906 16642-16642/com.company.androidthings.doorbell V/FA: Collection enabled
04-24 15:22:54.907 16642-16642/com.company.androidthings.doorbell V/FA: App package, google app id: com.company.androidthings.doorbell, 1:821276198771:android:044f9c86291658f3
04-24 15:22:54.980 16642-16642/com.company.androidthings.doorbell V/FA: Registered activity lifecycle callback
04-24 15:22:54.986 16642-16642/com.company.androidthings.doorbell I/FirebaseInitProvider: FirebaseApp initialization successful
04-24 15:22:54.989 16642-16642/com.company.androidthings.doorbell I/InstantRun: starting instant run server: is main process
04-24 15:22:55.000 16642-16666/com.company.androidthings.doorbell V/FA: State of service unknown
04-24 15:22:55.000 16642-16666/com.company.androidthings.doorbell V/FA: Checking service availability
04-24 15:22:55.015 16642-16666/com.company.androidthings.doorbell W/GooglePlayServicesUtil: Google Play Store is missing.
04-24 15:22:55.015 16642-16666/com.company.androidthings.doorbell W/FA: Service invalid
04-24 15:22:55.016 16642-16666/com.company.androidthings.doorbell V/FA: Setting useService: false
04-24 15:22:55.019 16642-16666/com.company.androidthings.doorbell V/FA: Using local app measurement service
04-24 15:22:55.449 16642-16642/com.company.androidthings.doorbell V/FA: onActivityCreated
04-24 15:22:55.449 16642-16642/com.company.androidthings.doorbell D/DoorbellActivity: Doorbell Activity created.
04-24 15:22:55.450 16642-16642/com.company.androidthings.doorbell D/DoorbellActivity: No permission
04-24 15:22:55.502 16642-16666/com.company.androidthings.doorbell V/FA: Activity resumed, time: 331914987
04-24 15:22:55.530 16642-16642/com.company.androidthings.doorbell V/FA: Local AppMeasurementService is starting up
04-24 15:22:55.563 16642-16642/com.company.androidthings.doorbell V/FA: Bound to IMeasurementService interface
04-24 15:22:55.565 16642-16666/com.company.androidthings.doorbell V/FA: Connected to service
04-24 15:22:55.566 16642-16666/com.company.androidthings.doorbell V/FA: Processing queued up service tasks: 1
04-24 15:22:59.196 16642-16666/com.company.androidthings.doorbell W/art: Long monitor contention with owner pool-2-thread-1 (16678) at long com.android.org.conscrypt.NativeCrypto.RSA_generate_key_ex(int, byte[])(NativeCrypto.java:-2) waiters=0 in java.lang.String com.google.firebase.iid.zzg.get(java.lang.String, java.lang.String) for 3.621s
04-24 15:22:59.236 16642-16666/com.company.androidthings.doorbell I/FA: This instance being marked as an uploader
04-24 15:22:59.696 16642-16666/com.company.androidthings.doorbell D/FA: Unable to get advertising id: com.google.android.gms.common.GooglePlayServicesNotAvailableException: com.google.android.gms.measurement.internal.zzt.zzlx(Unknown Source)
04-24 15:22:59.711 16642-16666/com.company.androidthings.doorbell D/FA: Setting user property: _fot, 1493049600000
04-24 15:22:59.719 16642-16666/com.company.androidthings.doorbell D/FA: User property set: _fot, 1493049600000
04-24 15:22:59.723 16642-16666/com.company.androidthings.doorbell V/FA: Logging event: origin=auto,name=_f,params=Bundle[{_c=1}]
04-24 15:22:59.790 16642-16666/com.company.androidthings.doorbell V/FA: Saving event, name, data size: _f, 22
04-24 15:22:59.792 16642-16666/com.company.androidthings.doorbell V/FA: Event recorded: Event{appId='com.company.androidthings.doorbell', name='_f', params=Bundle[{_c=1, _o=auto}]}
04-24 15:22:59.802 16642-16666/com.company.androidthings.doorbell V/FA: Upload scheduled in approximately ms: 14436
04-24 15:22:59.807 16642-16666/com.company.androidthings.doorbell V/FA: Background event processing time, ms: 84
04-24 15:22:59.808 16642-16666/com.company.androidthings.doorbell V/FA: Logging event: origin=auto,name=_e,params=Bundle[{_et=1}]
04-24 15:22:59.840 16642-16666/com.company.androidthings.doorbell V/FA: Saving event, name, data size: _e, 23
04-24 15:22:59.841 16642-16666/com.company.androidthings.doorbell V/FA: Event recorded: Event{appId='com.company.androidthings.doorbell', name='_e', params=Bundle[{_o=auto, _et=1}]}
04-24 15:22:59.847 16642-16666/com.company.androidthings.doorbell V/FA: Upload scheduled in approximately ms: 14390
04-24 15:22:59.853 16642-16666/com.company.androidthings.doorbell V/FA: Background event processing time, ms: 45
04-24 15:23:04.241 16642-16666/com.company.androidthings.doorbell V/FA: Inactivity, disconnecting from AppMeasurementService
04-24 15:23:04.276 16642-16642/com.company.androidthings.doorbell V/FA: onUnbind called for intent. action: com.google.android.gms.measurement.START
04-24 15:23:04.277 16642-16642/com.company.androidthings.doorbell V/FA: Local AppMeasurementService is shutting down
04-24 15:23:05.504 16642-16666/com.company.androidthings.doorbell V/FA: Session started, time: 331924989
04-24 15:23:05.550 16642-16666/com.company.androidthings.doorbell I/FA: Tag Manager is not found and thus will not be used
04-24 15:23:05.552 16642-16666/com.company.androidthings.doorbell D/FA: Logging event (FE): _s, Bundle[{_o=auto}]
04-24 15:23:05.555 16642-16666/com.company.androidthings.doorbell V/FA: Using local app measurement service
04-24 15:23:05.562 16642-16642/com.company.androidthings.doorbell V/FA: Local AppMeasurementService is starting up
04-24 15:23:05.564 16642-16642/com.company.androidthings.doorbell V/FA: Bound to IMeasurementService interface
04-24 15:23:05.564 16642-16666/com.company.androidthings.doorbell V/FA: Connected to service
04-24 15:23:05.565 16642-16666/com.company.androidthings.doorbell V/FA: Processing queued up service tasks: 1
04-24 15:23:05.572 16642-16666/com.company.androidthings.doorbell V/FA: Logging event: origin=auto,name=_s,params=Bundle[{_o=auto}]
04-24 15:23:05.594 16642-16666/com.company.androidthings.doorbell V/FA: Saving event, name, data size: _s, 14
04-24 15:23:05.596 16642-16666/com.company.androidthings.doorbell V/FA: Event recorded: Event{appId='com.company.androidthings.doorbell', name='_s', params=Bundle[{_o=auto}]}
04-24 15:23:05.655 16642-16666/com.company.androidthings.doorbell V/FA: Upload scheduled in approximately ms: 14850
04-24 15:23:05.660 16642-16666/com.company.androidthings.doorbell V/FA: Background event processing time, ms: 89
04-24 15:23:10.577 16642-16666/com.company.androidthings.doorbell V/FA: Inactivity, disconnecting from AppMeasurementService
04-24 15:23:10.616 16642-16642/com.company.androidthings.doorbell V/FA: onUnbind called for intent. action: com.google.android.gms.measurement.START
04-24 15:23:10.618 16642-16642/com.company.androidthings.doorbell V/FA: Local AppMeasurementService is shutting down
04-24 15:23:20.547 16642-16642/com.company.androidthings.doorbell V/FA: Local AppMeasurementReceiver got: com.google.android.gms.measurement.UPLOAD
04-24 15:23:20.562 16642-16642/com.company.androidthings.doorbell V/FA: Local AppMeasurementService is starting up
04-24 15:23:20.564 16642-16642/com.company.androidthings.doorbell V/FA: Local AppMeasurementService called. startId, action: 1, com.google.android.gms.measurement.UPLOAD
04-24 15:23:20.588 16642-16666/com.company.androidthings.doorbell V/FA: Fetching remote configuration: com.company.androidthings.doorbell
04-24 15:23:20.598 16642-16642/com.company.androidthings.doorbell V/FA: Local AppMeasurementService processed last upload request
04-24 15:23:20.598 16642-16642/com.company.androidthings.doorbell V/FA: Local AppMeasurementService is shutting down
04-24 15:23:20.601 16642-17004/com.company.androidthings.doorbell D/NetworkSecurityConfig: No Network Security Config specified, using platform default
04-24 15:23:21.835 16642-16666/com.company.androidthings.doorbell V/FA: Parsed config. version, gmp_app_id: 1492543680583000, 1:821276198771:android:044f9c86291658f3
04-24 15:23:21.841 16642-16666/com.company.androidthings.doorbell V/FA: Successfully fetched config. Got network response. code, size: 200, 52
04-24 15:23:21.892 16642-16666/com.company.androidthings.doorbell V/FA: event, affected audience count: _f, 0
04-24 15:23:21.896 16642-16666/com.company.androidthings.doorbell V/FA: event, affected audience count: _e, 0
04-24 15:23:21.899 16642-16666/com.company.androidthings.doorbell V/FA: event, affected audience count: _s, 0
04-24 15:23:21.901 16642-16666/com.company.androidthings.doorbell V/FA: property, affected audience count: _fot, 0
04-24 15:23:21.924 16642-16666/com.company.androidthings.doorbell V/FA: Saving bundle, size: 301
04-24 15:23:21.947 16642-16666/com.company.androidthings.doorbell V/FA: Uploading data. app, uncompressed size, data: com.company.androidthings.doorbell, 356,
batch {
bundle {
protocol_version: 1
platform: android
gmp_version: 9452
uploading_gmp_version: 9452
gmp_app_id: 1:821276198771:android:044f9c86291658f3
app_id: com.company.androidthings.doorbell
app_version: 1.0
app_version_major: 1
firebase_instance_id: eNnLI0cB484
dev_cert_hash: -8029454304837808102
app_store: manual_install
upload_timestamp_millis: 1493047401878
start_timestamp_millis: 1493047379237
end_timestamp_millis: 1493047385505
app_instance_id: 570e158a1616db1ea428bad0ac67c079
os_version: 7.0
device_model: iot_rpi3
user_default_language: en-us
time_zone_offset_minutes: 0
bundle_sequential_index: 1
service_upload: false
user_property {
set_timestamp_millis: 1493047379237
name: _fot
int_value: 1493049600000
}
event {
name: _f
timestamp_millis: 1493047379237
previous_timestamp_millis: 0
param {
name: _c
int_value: 1
}
param {
name: _o
string_value: auto
}
}
event {
name: _e
timestamp_millis: 1493047379237
previous_timestamp_millis: 0
param {
name: _o
string_value: auto
}
param {
name: _et
int_value: 1
}
}
event {
name: _s
timestamp_millis: 1493047385505
previous_timestamp_millis: 0
param {
name: _o
string_value: auto
}
}
}
}
04-24 15:23:21.950 16642-17004/com.company.androidthings.doorbell V/FA: Uploading data. size: 315
04-24 15:23:22.025 16642-16666/com.company.androidthings.doorbell V/FA: Upload scheduled in approximately ms: 3599959
04-24 15:23:22.030 16642-16666/com.company.androidthings.doorbell V/FA: Successful upload. Got network response. code, size: 204, 0
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.
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