Firebase Analytics upload delay

爷,独闯天下 提交于 2019-11-29 13:45:08

问题


Is there any way to increase Firebase Analytics upload rate for logged events on android? Currently it uploads them every hour and it is too slow for testing purposes.

I found references to following keys (with hardcoded defaults) in jars, but no idea how to change them.

  • "measurement.upload.backoff_period", 43200000L
  • "measurement.upload.window_interval", 3600000L
  • "measurement.upload.interval", 3600000L

回答1:


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.

In the meantime, you can enable verbose debug output to verify that your events are indeed being logged and uploaded. Issue the following commands and then run your app and log events :

adb shell setprop log.tag.FA VERBOSE
adb shell setprop log.tag.FA-SVC VERBOSE
adb logcat -v time -s FA FA-SVC

Hope this helps,

Steve Ganem

Product Manager, Firebase Analytics




回答2:


I found a "way" to load test data a bit faster: data wipe (emulator) forces app to use "initial delay", which is 15 seconds only.




回答3:


No, the application can not control the upload cadence for Firebase Analytics. On Google Play devices the uploading is done by Google Play Services and there is no application code involved in the process. On non Google Play devices the uploading is done from the application process. Accelerated uploading is common request and and it might be supported in future release.



来源:https://stackoverflow.com/questions/37416122/firebase-analytics-upload-delay

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!