Can't seem to make flurry crash report work

Hi !

I’m trying to implement the Flurry’s crash report in Corona.

I have added the following keys in my build.settings :

  ["plugin.flurry.analytics"] =         {             publisherId = "com.coronalabs",             supportedPlatforms = { iphone=true, android=true }         },         ["plugin.google.play.services"] =         {             publisherId = "com.coronalabs",             supportedPlatforms = { android=true }         },

Then I have this on the applicationStart event

if (system.getInfo("environment") ~= "simulator") then     flurryAnalytics = require( "plugin.flurry.analytics" )     print("init Flurry")     flurryAnalytics.init(flurryListener, {         apiKey = "[redacted]",         crashReportingEnabled = true,         logLevel = "all"     }) end

My listener is basic : 

local function flurryListener (event)     print("Event Flurry = " .. json.encode(event))     if event.isError then         print("Error Flurry")     else         if event then             print("event Flurry 2 = " .. json.encode(event))         end     end end

I’ve made the app crash intentionally two or three times already. 

Reinstalled the app, and gave me the logs below on first launch (I didn’t trigger the crash, only launched the app)

init Flurry Flurry: startSession called for the first time Flurry: Start session called with apiKey[8XVXGJVV4CHW5W64DN4P] Flurry: Starting session on Agent Version [Flurry\_iOS\_175\_7.5.2]  Flurry: crash reporting enabled Flurry: Trim white space and use apiKey[[redacted]]

initial network status [1] =========  Flurry: Background session enabled[0] FlurrySession: Event logging enabled[1] FlurrySession: Session reports on close enabled[1] FlurrySession: Session reports on pause enabled[0] FlurrySession: Crash reporting enabled[0] FlurrySession: Initialized session from scratch with startTime[2016-12-13 14:21:19 +0000] +[FlurryGlobalVariableStorage getPersistentFilePath:]: /var/mobile/Containers/Data/Application/F5A4C8AE-06FA-4B41-A078-4A26742D9BAD/Library/Application Support/FlurryFiles/.flurryPropertiesData122998705\_175.archive +[FlurryGlobalVariableStorage getPersistentFilePath:]: /var/mobile/Containers/Data/Application/F5A4C8AE-06FA-4B41-A078-4A26742D9BAD/Library/Application Support/FlurryFiles/.flurryCkData122998705\_175.archive +[FlurryGlobalVariableStorage getPersistentFilePath:]: /var/mobile/Containers/Data/Application/F5A4C8AE-06FA-4B41-A078-4A26742D9BAD/Library/Application Support/FlurryFiles/.flurryPersistentUrlsData122998705\_175.archive +[FlurryGlobalVariableStorage getPersistentFilePath:]: /var/mobile/Containers/Data/Application/F5A4C8AE-06FA-4B41-A078-4A26742D9BAD/Library/Application Support/FlurryFiles/.flurryPersistenPulseUrlsData122998705\_175.archive +[FlurryGlobalVariableStorage getPersistentFilePath:]: /var/mobile/Containers/Data/Application/F5A4C8AE-06FA-4B41-A078-4A26742D9BAD/Library/Application Support/FlurryFiles/.flurryPersistenPulsePrepUrlsData122998705\_175.archive FlurrySession: Created active session with API[[redacted]] FlurrySession: Session reports on close enabled[1] FlurrySession: Session reports on pause enabled[1] FlurrySession: Event logging enabled[1] FlurrySession: Crash reporting enabled[1] FlurrySession: Initial timestamp[2016-12-12 15:16:34 +0000] from secure source Native Debug Log: ad\_fetch = 0, ad\_requests = 0, ads\_returned = 0, ad\_ready = 0, Impression fired = 0 Flurry: Finish starting session with apiKey[[redacted]] FlurryPulseEventController: app resuming FlurrySession: networkStatusChanged to  reachable FlurrySession: Sending sessions to server, include current YES FlurrySession: Initial timestamp[2016-12-12 15:16:34 +0000] from secure source INFO: GoogleAnalytics 3.15 -[GAIReachabilityChecker reachabilityFlagsChanged:] (GAIReachabilityChecker.m:159): Reachability flags update: 0X000002 updated network status [1] ========  FlurryDataSenderBase: networkStatusChanged to  reachable FlurryDataSenderBase: networkStatusChanged to  reachable FlurryDataSender: posting session via flurryhttpasynctask! FlurrySession: networkStatusChanged to  reachable -[FlurryBackgroundTaskTracker startBackgroundTaskTrackingIfNeeded]: start background task FlurrySession: networkStatusChanged to  reachable FlurrySession: Scheduled send 1 session(s).

I’m aware that crash reports might take up to 8h to show on the dashboard, but I’ve already tried this procedure more that 24h ago and nothing is showing in the dashboard. 

Am I missing something?

EDIT : 

I’ve forgotten some logs, what I find weird is that the plugin reinits (listener print) itself (no “init flurry” log, this is my only call to the init function)

FlurryDataSender: Not sent blocks count [1] FlurryPulseReportSender: -[FlurryPulseCBReportSender retransmitNotSentBlocks], Not sent blocks count [0] Event Flurry = {"phase":"init","provider":"flurry","name":"analyticsRequest","data":{"sessionId":"1481638879395"}} INFO: GoogleAnalytics 3.15 -[GAIBatchingDispatcher deleteHits:] (GAIBatchingDispatcher.m:529): hit(s) Successfully deleted event Flurry 2 = {"phase":"init","provider":"flurry","name":"analyticsRequest","data":{"sessionId":"1481638879395"}}

Flurry: HTTP connection delegate received r

Response[\<NSHTTPURLResponse: 0x1c8cec20\> { URL: https://data.flurry.com/aas.do } { status code: 200, headers { &nbsp; &nbsp;Connection = close; &nbsp; &nbsp;"Content-Length" = 122; &nbsp; &nbsp;"Content-Type" = "application/octet-stream"; &nbsp; &nbsp;Date = "Tue, 13 Dec 2016 14:21:20 GMT"; &nbsp; &nbsp;Server = nginx; } }] FlurryDataSender: async http response code: 200, id [06AD0428-4F0D-4558-96BB-CE9D305F72DF] +[FlurryGlobalVariableStorage getPersistentFilePath:]: /var/mobile/Containers/Data/Application/F5A4C8AE-06FA-4B41-A078-4A26742D9BAD/Library/Application Support/FlurryFiles/.flurryCkData122998705\_175.archive FlurryDataSender: Not sent blocks count [0]

Nevermind found the cause!

I had a

Runtime:addEventListener( "unhandledError", unhandledErrorListener )

from earlier in dev. 

On iOS, you can’t have 2 crash handler, it works fine now that I removed it!

Glad you solved it!

Rob

Nevermind found the cause!

I had a

Runtime:addEventListener( "unhandledError", unhandledErrorListener )

from earlier in dev. 

On iOS, you can’t have 2 crash handler, it works fine now that I removed it!

Glad you solved it!

Rob