问题
I have been trying to test crash reports using Flurry for the past few days on iPad app using Flurry but haven’t had much success. When I view the Flurry dashboard online, its not showing any crash reports. Although I can see other events being registered in Flurry Dashboard but not crash reports. Below is the code which I am using in AppDelegate to enable crash reports using flurry.
//Step 1: This should be done before you start session
[Flurry setCrashReportingEnabled:YES];
//Step 2:
[Flurry startSession:flurryToken];
[Flurry setSecureTransportEnabled:YES];
[Flurry setShowErrorInLogEnabled:YES];
[Flurry setDebugLogEnabled:YES];
[Flurry setBackgroundSessionEnabled:NO];
Below are the steps that I have used to test on iPad
- Run my app on iPad
- Cause crash on one of the screen
- Re-run the app
- Press the home screen to put in the background
Any suggestions would be appreciated, thnx.
回答1:
Its seems to be working now, I created a ticket with flurry, they confirmed that it could take about 8 hours before it could show in the dashboard.
回答2:
Try putting [Flurry startSession: flurryToken]; last. At least one of your methods subsequent to your startSession call needs to be called before startSession.
See, for example, documentation for setSecureTransportEnabled:
来源:https://stackoverflow.com/questions/23915173/flurry-ios-crash-reporting-analytics