How to send ACRA reports to multiple destinations?

不羁的心 提交于 2019-12-24 04:16:08

问题


I've this special case where in I need to send the crash reports from my app to both BugSense and my own server. And AdvancedUsage - ACRA/acra Wiki says :

"You can even send reports to multiple destinations."

But where and how exactly do I specify these?

The only solution I can think of is by implementing my own ReportSender and making it post the data to both the servers. And I'm guessing that there is a simpler way to do this.


回答1:


Apart from the solution I already talked about in the question (by implementing our own version of ReportSender), we can apparently also use the less obvious :

ACRA.getErrorReporter().addReportSender(ReportSender sender)

This adds the ReportSender to List<ReportSender> mReportSenders, which is then iterated over while sending reports.



来源:https://stackoverflow.com/questions/20901139/how-to-send-acra-reports-to-multiple-destinations

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