Creating a bug report from when the app crashes on the phones of testers?
I'm wanting to hav开发者_Python百科e a bunch of people beta test my app on their phones soon. In the event that the app crashes, what's the best way for them to send me a bug report?
A good approach is to use a 3rd party service like Instabug which is a bug & crash reporting service that allows for two things:
- Automatically receive crash reports in the event of a crash
- Allow users to report bugs through a shake gesture in-app.
All reports arrive to your Instabug dashboard containing various details such as:
- Network and console logs
- Complete Device details
- Visual reproduction steps
- 3D inspection of the current view hierarchy
- Crash stack trace (In case of a crash report)
- It only takes a line of code to integrate.
For full disclosure, I work at Instabug. Let me know if I can help.
My own experience: I used Flurry as the analytics tool in my project. I followed Flurry's recommendation and set up an uncaught exception listener inside my code.
void uncaughtExceptionHandler(NSException *exception) {
[FlurryAPI logError:@"Uncaught" message:@"Crash!" exception:exception];
}
- (void)applicationDidFinishLaunching:(UIApplication *)application {
NSSetUncaughtExceptionHandler(&uncaughtExceptionHandler);
[FlurryAPI startSession:@"my_API_here"];
....
}
And then I tested my app, and after several hours' delay, I was able to see a few crashes reported to Flurry. Things like this:
NSInvalidArgumentException: -[NSCFString objectAtIndex:]: unrecognized selector sent to instance 0x2e1b30 Msg: Crash!
It's neither complete nor thorough, but it was a convenient way to have a basic sense of what's going on out there in the wild.
Setup a database for it. Have a submit form that places their report into the database. This way any of the info they submit can be searched and managed easilly.
精彩评论