【问题标题】:Airbrake notification not send from iOS不从 iOS 发送 Airbrake 通知
【发布时间】:2016-06-24 00:15:47
【问题描述】:

我在 iOS 中使用 airbrake,但在我的付费 airbrake 帐户中没有收到任何崩溃通知。我已经按照 airbrake iOS git here 中的说明实现了 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

【问题讨论】:

  • 您联系过他们的支持吗?

标签: ios objective-c airbrake


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-12-28
    • 1970-01-01
    • 2017-12-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-11-01
    • 2016-12-18
    相关资源
    最近更新 更多