Crashlytics don’t send crash report when there is another crash report (Umeng)

与世无争的帅哥 提交于 2020-01-10 20:11:24

问题


I’ve implemented Crashlytics (2.2.4) in my iOS app for crash report collection. I also implemented another third-party component (Umeng) for other data collection. However, Crashlytics doesn’t send report when Umeng is turned on. When I check the log, there are these suspicious warnings:

[Crashlytics] Warning: NSUncaughtExceptionHandler is 'UmengHandleException'  
[Crashlytics] Warning: sigabrt handler is ‘UmengSignalHandler'  
[Crashlytics] Warning: sigbus handler is 'UmengSignalHandler' 
[Crashlytics] Warning: sigfpe handler is 'UmengSignalHandler' 
[Crashlytics] Warning: sigill handler is 'UmengSignalHandler' 
[Crashlytics] Warning: sigsegv handler is ‘UmengSignalHandler'

When Umeng is turned off, these warnings are gone and the reports are well sent.

I have put Crashlytics last to call in AppDelegate, but the warning is still there. Is there a way to work around this issue so that Crashlytics can send report when Umeng is turned on?


回答1:


Self answer. I got an advice from another developer on Umeng's support forum, which is to put the set report disable method before the startWithKey method. The trick is to use this method BEFORE not after the startWithKey. I am trapped by this pitfalll for two days.

[MobClick setCrashReportEnabled:NO];
[MobClick startWithAppkey:YOURKEY reportPolicy:YOURPOLICY channelId:YOURCHANNELID];


来源:https://stackoverflow.com/questions/26090629/crashlytics-don-t-send-crash-report-when-there-is-another-crash-report-umeng

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!