Reputation: 1306
i would like to do the following, do you know if it is possible?:
When my app crashes (for whatever reason and at whichever point) i want a method to be called that sends some data to my server (for example, the method where it crashed, at what time,etc)
Is this possible? Can anyone provide some reference to accomplish this?
Basically what i want to do is that when i get a SIGABTR or EXC_BAD_ACCESS in my code is to send that data to my servers.
Thanks in advance,
Pablo
Upvotes: 1
Views: 1582
Reputation: 668
You can use PLCrashReporter, an open source framework that lets you output protobuf-encoded messages that you can send to a server. If you don't have a server (or are lazy like me), you can use Crittercism. I've been using them for both my Android and ios apps.
Upvotes: 2
Reputation: 52565
I use an open source framework called QuincyKit. Has worked really well for me so far.
Upvotes: 1
Reputation: 5541
You should get crash reports in iTunes Connect when your App is available on the AppStore. Other than that, there are some alternatives, check out this similar question: iOS Crash Reporter Service / Alternative to MacDevCrashReports.com
Upvotes: 0