【问题标题】:Unabled to get device information in sentry crash report无法在哨兵崩溃报告中获取设备信息
【发布时间】:2018-03-13 14:16:05
【问题描述】:

我正在开发一个项目,我集成了 Sentry 以生成崩溃报告,但在哨兵控制台中没有获取设备版本或操作系统名称的详细信息,但在 iOS 中它会显示。但为什么我不知道。它在 Android 中受支持?请帮帮我。

【问题讨论】:

标签: java android sentry


【解决方案1】:

您需要通过AndroidSentryClientFactory 传递您的应用程序上下文,如下所述:https://docs.sentry.io/clients/java/modules/android/

Context ctx = this.getApplicationContext(); Sentry.init(sentryDsn, new AndroidSentryClientFactory(ctx));

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-05-08
    • 1970-01-01
    • 1970-01-01
    • 2021-01-25
    • 2016-11-01
    • 1970-01-01
    • 2012-08-27
    相关资源
    最近更新 更多