Raygun4iOS behaviour when device is offline
andhapp
Posted on
Apr 03 2014
Hi,
Does Raygun4iOS keep a list of errors thrown when the device is offline and then pushes them to the API when device comes back online?
Thanks.
John-Daniel Trask
Raygun
Posted on
Apr 03 2014
Yup, that's exactly what it does! The provider will automatically write the crash to disk and then attempt to send it, and any others pending, and if it is successfully received by the API they are deleted from the cache.
This behaviour is in line with the other providers for Android, Windows Phone 8, the Xamarain providers for Android/iOS and finally JavaScript (as of yesterday).
andhapp
Posted on
Apr 03 2014
Thanks. That's nice!
Does Javascript provider write to the localStorage? Thanks.
Callum
Posted on
Apr 03 2014
Indeed it does, with similar behavior to the iOS provider detailed above. Offline saving is disabled by default in JS, but to enable it you can call:
Raygun.init('apikey').attach().saveIfOffline(true);
Hope this helps.
andhapp
Posted on
Apr 04 2014
I tested it, and it works very nicely.
Awesome!