airbrake / airbrake-ios

A Airbrake Notifier for iOS
http://airbrake.io
MIT License
268 stars 89 forks source link

Ios Airbrake not sending crash to server #85

Closed giantslogik closed 4 years ago

giantslogik commented 7 years ago

I can't get ios airbrake to work, i have integrated as per the docs:

i see airbrake starting up in the logs

2017-08-04 20:44:34.867 SimpleBills[1271:12867] [Airbrake] Notifier 4.2.6 ready to catch errors 2017-08-04 20:44:35.054 SimpleBills[1271:12867] [Airbrake] Environment "Development"

stepping through the writeTestNotice i see airbrake create a dump to a file.

However nothing is sent to server.

giantslogik commented 7 years ago

After debugging i have concluded that the following code fails to display an alert view [[[UIApplication sharedApplication] delegate].window.rootViewController presentViewController:alert animated:YES completion:nil]; in ABNotifier.m

Only workaround was to always send the crash dump

jocelynlih commented 7 years ago

@giantslogik you can opt out the alert display by using this method:

set 'displayUserPrompt' to NO will not display info.