我收到以下警告:
[Crashlytics:Crash] 警告:用户提示功能已启用。作为
Crashlytics 3.0.0,实现用户提示是应用程序的
责任。请参阅 Crashlytics.h 的注释
-crashlyticsDidDetectReportForLastExecution:completionHandler:
当我使用 Xcode 运行应用程序时,它会出现在我的应用程序日志中。看起来我使用的 Crashlytics 版本是 3.0.8(来自 Crashlytics.framework 中的 info.plist 文件)。
以下是 Crashlytics.h 文件中的相关文档:
/**
*
* Called when a Crashlytics instance has determined that the last execution of the
* application ended in a crash. This is called synchronously on Crashlytics
* initialization. Your delegate must invoke the completionHandler, but does not need to do so
* synchronously, or even on the main thread. Invoking completionHandler with NO will cause the
* detected report to be deleted and not submitted to Crashlytics. This is useful for
* implementing permission prompts, or other more-complex forms of logic around submitting crashes.
*
* Failure to invoke the completionHandler will prevent submissions from being reported. Watch out.
*
* Just implementing this delegate method will disable all forms of synchronous report submission. This can
* impact the reliability of reporting crashes very early in application launch.
*
**/
- (void)crashlyticsDidDetectReportForLastExecution:(CLSReport *)report completionHandler:(void (^)(BOOL submit))completionHandler;
从警告来看,我似乎不会收到通常的“发送崩溃报告?”我的应用程序中提示。然而,我在事故发生后确实得到了这个。也就是说,我似乎没有必要实现这个UI。那么,什么给出呢?这个警告真的是一个错误的警告吗?我们将来必须为这个“发送崩溃报告”提示做我们自己的 UI?
我也看过文档https://dev.twitter.com/crashlytics/ios https://dev.twitter.com/crashlytics/ios
and http://support.crashlytics.com/knowledgebase/topics/14721-crashlytics-sdk-for-ios http://support.crashlytics.com/knowledgebase/topics/14721-crashlytics-sdk-for-ios但找不到任何关于 3.0.0 以来的更改的内容。
Ideas?
来自 Fabric 的迈克。
在 SDK 3.0 中,我们对如何处理崩溃报告提交添加了更细粒度的控制,以便您和其他开发人员可以根据需要显示或不显示警报。如果您想实现自己的对话框,请关闭 Fabric 仪表板中的隐私对话框,然后使用提供的调用来执行此操作。
如果您想继续使用 Fabric 提供的隐私对话框,可以,但我鼓励您创建一个新的对话框,因为它更灵活,并且可以根据应用程序的 UI 进行自定义。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)