0

我在 iOS 中使用 airbrake,但在我的付费 airbrake 帐户中没有收到任何崩溃通知。我已经按照airbrake iOS git中的说明实现了 https://github.com/airbrake/airbrake-ios

这是我在应用程序委托中编写的 Objective-c 中的代码,如下所示

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    [ABNotifier startNotifierWithAPIKey:@"xxxx"
                              projectID:@"xxxxxx"
                        environmentName:ABNotifierAutomaticEnvironment
                                 useSSL:YES // only if your account supports it
                               delegate:(id)self];
    return YES;
}

以及在应用程序崩溃的 ViewController 中。代码是

- (IBAction)crashBttnAction:(id)sender {
        NSMutableArray *arr=[[NSMutableArray alloc]init];
        [arr objectAtIndex:5];
}

该应用程序严重崩溃,但我的 airbrake 付费帐户中没有收到任何通知。这是我的测试 github 项目的链接

https://github.com/vikashbitcanny/AirBrakeIOSTest

4

1 回答 1

0

您的代码应该可以工作。我下载了您的代码,并尝试使用我自己的帐户使用 airbrake 密钥、项目 ID 和应用程序包 ID。所以它可能与项目设置有关

于 2016-03-09T21:44:08.713 回答