-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash events not cached when no internet connectivity #49
Comments
Thanks @cwarner1. In a nutshell, I think this would be a new feature request. I believe the current provider was never made to cater for this. The intention had been to cache crash reports when the device is offline. If - for whatever reason - the http post fails for another reason, there was never any re-processing supposed to happen but the provider would just log an exception @mduncan26 - Could you clarify if you'd want to extend the local storage of crash reports for cases in which the http request failed? |
The effect is a bit worse than that, it deletes previously cached crash reports as well. |
@cwarner1 What would be your ideal scenario for this feature to work? |
Ideally? Any crash report generated by the application is cached until it can be delivered to Raygun, up to a limit of 64 (configurable?) crash reports, with the oldest crash reports discarded when the limit is exceeded. A cached message will only be deleted from the cache if - Delivery of cached data is attempted - |
Hi @cwarner1 Just a quick explanation around the caching. We have found issues with our current implementation and unexpected results occur because of this. It was not implemented well and I am sorry for the inconvenience. We are addressing these problems in the new 4.0 release of the provider which is currently being worked on. We plan to have it so the oldest messages are kept until they can be sent. The reason behind this is we do not wish to delete an initial report that would then be pushed out by another that has been recorded multiple times. We are looking to have the max number of reports stored on device configurable in the 4.0 release of the provider. However we will be keeping 64 as the upper number of reports allowed on the device. In terms of when to deliver crash reports, the current implementation attempts to do so each time a new report is sent. We plan also to have it post stored reports when the client is first initialised on start up in the new 4.0 release of the provider. |
Using an Android device connected via ethernet to a ECU/Gateway.
If the Android device has a connection to a host, it can still fail to send, and the message will not be cached.
RaygunPostService.java, Line 43
currently using a work around, but may be other effects from this use case
The text was updated successfully, but these errors were encountered: