GaneshP
GaneshP

Reputation: 766

ACRA not sending queued crash report

I am using ACRA for error reporting , when internet is not available and their is some error it gets queued to send but does not get trigged unless their is new error. Is their any way to trigger forcefully as soon as internet is available ?

Upvotes: 0

Views: 339

Answers (2)

William
William

Reputation: 20196

Short answer is no.

Long answer is

1) No, because to listen to network state requires a BroadcastListener and a permission that most are unlikely to want to grant. If you'd like to provide a pull request then I'm happy to review it. But it should only enable IF the permission has been granted.

2) No, but it will be sent when your app is restarted and you do have internet coverage.

Think about crash reporting from a statistical point of view and you will realise that it generally doesn't matter.

Upvotes: 1

Dhaval Parmar
Dhaval Parmar

Reputation: 18978

you can use Sending reports for caught exceptions or for unexpected application state without any exception when internet available(check using receiver and use below way)

You could also want your application to send a report without any Exception thrown, just because you know that your application is in an unexpected state.

ACRA.getErrorReporter().handleException(caughtException);

If you need to add silent trace reports whatever notification mode you configured for your application, you can also use:

ACRA.getErrorReporter().handleSilentException(caughtException);

check documentation for more details

Upvotes: 0

Related Questions