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

Change dependency through a task in gradle
how to transfer data from edittext to spinner both are in different activity
Determining the yaw angle using only the accelerometer [closed]
Turn by turn navigation with OSMDroid & Graphopper
WIFI P2P REMOVE GROUP
How to make my ImageView as an Image from URL and How to fix my code? [duplicate]
How to set image for android:popupCharacters?
How to POST JSON Object In Android using Volly Library below type of Json?
Android TabHost not showing content programmatically added from default tab
Andorid Wear - Start Mobile Service on Watch Face Set
Where is the “USER_HOME” folder for Gradle properties?
Parse Server Onesignal Push Adapter
Androidruntime: FATAL EXCEPTION's
AutoCompleteTextView with online database
Error: Expected resource of type layout… for ColorRes?
OpenSSL compilation for Android x86

Categories

HOME
service-worker
assembly
spark-streaming
fuelux
ggplot2
telegram
pda
obfuscation
alarm
javacc
carousel
switch-statement
maxscript
polling
android-json
crystal-reports-2013
azure-container-service
banner
retrofit2
lanczos
elasticsearch-5
performancepoint
jquery-ui-sortable
spring-social
gkturnbasedmatch
docx
capistrano3
scsi
atlassian-stash
android-7.0-nougat
easyphp
forgot-password
video-editing
identity-management
oledb
visual-glitch
gulp-watch
event-store
onload
siri
fable-f#
handler
nsurl
zend-debugger
login-script
hunspell
carriage-return
pdw-file-browser
jwplayer6
video-capture
apiary.io
openerp-7
timing
jvmti
lpsolve
memory-mapping
jide
robomongo
tf
magic-draw
pair-programming
java-bytecode-asm
py2neo
objectscript
renaming
javafx-css
gets
stax
envi
rspec2
udpclient
freepbx
aurora
ikiwiki
lz77
linklabel
morton-number
branch-and-bound
avahi
user-permissions
mass-assignment
addressing-mode
administration
metatrader5
easyrtc
entry-point
gii
unix-socket
mutual-authentication
visual-studio-express
artemis
oocss
nevron
ui-select2
preload
xcode3.2
httponly
stress
exponentiation
uipagecontrol
mtu
updatesourcetrigger
zen
tabpanel
sifr
lxr
dojo-dnd
windows-identity
wysiwym
localizable.strings
contentpresenter
leader
netbeans6.1

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