android


Log events Firebase Analytics for Android


I'm trying to implement the Firebase Analytics for Android and it's not working.
So far what I have done is this https://firebase.google.com/docs/analytics/android/start/
private FirebaseAnalytics mFirebaseAnalytics;
#Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//...
mFirebaseAnalytics = FirebaseAnalytics.getInstance(this);
mFirebaseAnalytics.setUserProperty("dev", "TEST");
// [START custom_event]
Bundle params = new Bundle();
params.putString("dev_name", "dev_name_test");
params.putString("dev_description", "Testing log events");
mFirebaseAnalytics.logEvent("dev_test", params);
// ....
Also I have disabled the disable Instant Run:
To disable Instant Run: Open the Settings or Preferences dialog.
Navigate to Build, Execution, Deployment > Instant Run. Uncheck the
box next to Enable Instant Run
Any idea why is not working? I can't see anything in my firebase dashboard.
The fastest way to validate that events are recorded and uploaded is to enable debug logging: View events in the Android Studio debug log
In summary run this from command line with the device/emulator connected:
adb shell setprop log.tag.FA VERBOSE
adb shell setprop log.tag.FA-SVC VERBOSE
adb logcat -v time -s FA FA-SVC
You should see messages when you log events or set properties and when the data is uploaded.
It takes around 2-4 hours in my experiences for any events to appear in the console. Also, note that the default view in the console is the past 30 days, you may want to switch this to Today. Something to consider also is that in the console for custom events you will only be able to view the event dev_test and not the strings you have added as custom parameters. You must export the events to BigQuery to view the custom parameters you have added dev_name abd dev_description. See my similar question here which may also help.

Related Links

android opengl es 2.0 converting screen coordinates to world coordinate
How should I test the functionality of an Android activity containing a ListFragment?
Android: Platform tools missing in the android_sdk_r16 zip package
Access Pc through Android Device Sensor
How to know that a file is deleted or added (or any changes) in sdcard
How to find the screen is locked in android
Android - scaling a viewgroup (layout) at runtime
How to perform client-server communication with android app? Can I use servlet on server side or do I need to implement web service?
Android - Searching and navigating the web
Android Html.fromHtml in TextView - align image with text
Android - Fragment screen rotate [duplicate]
Android HTTPS Connection
Orientation change and Android VideoPlayer? What is going on?
Save a picture of a signature to a file in Rhodes on Android
Android: Check for upcoming turns on Google Navigation using a background service
Getting wrong Gps Location in android

Categories

HOME
go
search
adal
ggplot2
depth
access
nsbundle
rom
emscripten
pkcs#11
character
g++
mel
x-cart
radgridview
eip
flash-player
altera
dimensional-modeling
replication
breadth-first-search
articulate-storyline
rubymotion
named-entity-recognition
monit
strongname
android-sharedpreferences
delimiter
iis-express
xbox
contacts
carriage-return
nested-lists
lint
google-earth-engine
opensmpp
naming
plr
oracle-service-bus
httr
jboss-4.2.x
clarifai
gitlist
video-conferencing
static-cast
janus
flyout
objectscript
structuremap4
rocks
webjars
preprocessor
windows-azure-queues
jodd
x-tag
embedding
omniauth-facebook
beanstalk
findfirst
qt5.2
rewrite
oracle-spatial
coda
toolkit
rpart
wso2greg
branch-and-bound
liquid-layout
at-job
viewer
sip-server
entry-point
dsym
drupal-nodes
breakout
chart-director
sentestingkit
subproject
apache-whirr
cgimage
gobject-introspection
saxparseexception
filemerge
catransform3d
exponentiation
nhprof
interprocess
addchild
pagemethods
duplex
firefox-3
commercial-application

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App