Question

Handling unhandled exceptions and signals

I just read this blog, and find it is a good way to handle the crash.

Can we repalce the "continue" button to "relaunch",and relaunch the App if end user want to relaunch our App, or it is correct to do so?

Is there a way we can programing relaunch our App in this situation?Can I push a localNotification to report the crash and let the user know it?

If anyone can give some sample code to do, I will very thanks. Sorry, my english is not good, hope you can understand me!

Was it helpful?

Solution

You should rather use a library that leverages PLCrashReporter by Landon Fuller. It is much safer, creates standard crash reports, you get all threads including last exception backtrace, allows you to symbolicate them and get the line numbers of your own code. See this blog post for more details why it is safer: http://landonf.bikemonkey.org/code/objc/Reliable_Crash_Reporting.20110912.html

There are multiple frameworks and services build on top of PLCrashReporter, which I mentioned in this answer: Including custom data into iOS crash dumps

In addition you can NOT re-launch the app after it crashed (one exception is, if your app is providing voice over ip functionality). There is no code, especially Objective-C code that you should launch once your app crashed, see the linked blog post above, so you can't invoke a local notification either.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top