Flurry won't show logs

Hi All,

While I used Flurry successfully in native apps before, it is the first time I try using it in a Corona app. I have added 

 plugins = { -- key is the name passed to Lua's 'require()' ["CoronaProvider.analytics.flurry"] = { -- required publisherId = "com.coronalabs", }, },

to the build.settings and also

local analytics = require("analytics") … analytics:setCurrentProvider("flurry") analytics.init("...") … analytics.logEvent("...")

in the main.lua.

I have been playing with this code for a while on a real device for many days and still don’t get any logging events in Flurry. I have triple checked that I use the correct API key, what else could be wrong with this simple setup?

Any ideas?

Thanks,
Danz

Hi Danz,

I faced this issue a while back.  Surprisingly, you need to call analytics.init before you call analytics:setCurrentProvider.  It’s counter-intuitive, but if you call them in that order, it works fine.

Hope this helps.

  • Andrew

Hi Danz,

I faced this issue a while back.  Surprisingly, you need to call analytics.init before you call analytics:setCurrentProvider.  It’s counter-intuitive, but if you call them in that order, it works fine.

Hope this helps.

  • Andrew