I’ve followed the new documentation on integrating flurry.
Here is my build.setting
settings = { android = { versionCode = "2", usesPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.WRITE\_EXTERNAL\_STORAGE" "android.permission.ACCESS\_COARSE\_LOCATION" }, }, usesFeatures = { { name="android.hardware.location.gps", required=false }, }, orientation = { default = "portrait", supported = { "portrait", "portraitUpsideDown" } }, plugins = { ["plugin.flurry.analytics"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true } }, ["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true } }, }, }
Here is where I require and init it.
local flurryAnalytics = require( "plugin.flurry.analytics" ) local function flurryListener( event ) if ( event.phase == "init" ) then -- Successful initialization print( event.provider ) end end -- Initialize the Flurry plugin flurryAnalytics.init( flurryListener, { apiKey="I've not included my apikey but it's there" } ) flurryAnalytics.logEvent( "Game Started", { location="Main Menu"} )
Flurry is a pre-activated plugin. Not sure why I’m unable to require it. Any help would be great.