Once you have configured the core Firebase project you can use the analytics features in your AIR application.
You can set a user id to identify your users.
You can set user properties to describe the users of your application and then use these properties to filter your reports.
You can enable the debug mode for analytics which will send events almost immediately to the Debug View on the console:
You can debug your analytics events using
adb and the Debug View in the firebase console.
Firstly make sure you've enabled developer mode on your Android device
Open up a terminal/console and use adb to enable debug analytic events:
Additionally you can check the logs to see if there are any errors. It helps to set logging to verbose:
Then restart your application and watch the logs:
You should see something like:
Check the app id is correct and watch for any errors when logging events.
With iOS you have to launch your application with a specific flag. This is not possible using AIR SDK, however using the libimobiledevice tools it is possible to launch an application on your device with this flag.
Firstly you will need to install these tools.
You can access installers in various locations but we suggest using homebrew:
We found you have to use the
HEADversion to get it to work currently
Then to launch the application with the debugging
com.distriqt.testwith your application id
To later disable the debugging outputs, launch the application with the
Note: these flags have changed from the previous version of