Type Library Revision 2017.3060 Keywords analytics, Flurry Analytics Platforms Android, iOS
The Flurry Analytics plugin allows you to track the usage and behavior of your application in the Flurry system. Optional crash analytics are also available which allow you to monitor system crashes and unhandled events.
local flurryAnalytics = require( "plugin.flurry.analytics" )
To use this plugin, add two entries into the plugins
table of build.settings
. When added, the build server will integrate the plugin during the build phase.
settings = { plugins = { ["plugin.flurry.analytics"] = { publisherId = "com.coronalabs" }, ["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true } }, }, }
For Android, the following permissions/features are automatically added when using this plugin:
"android.permission.INTERNET"
"android.permission.ACCESS_NETWORK_STATE"
In addition, you can optionally include the "android.permission.ACCESS_FINE_LOCATION"
and "android.permission.ACCESS_COARSE_LOCATION"
permissions. This allows Flurry to record the end user's current location such as latitude and longitude. If you do not set these location permissions, Flurry can only record the country that the app was used in, based on the device's locale and region settings. Note that if you add these location permissions, you should not require device features like GPS, as doing so may prevent downloading of the app on a device without these features.