Shutdown and Draining

The default behavior of most SDKs is to send out events over the network asynchronously in the background. This means that some events might be lost if the application shuts down unexpectedly. The SDKs provide mechanisms to cope with this.

The React Native SDK ensures all Sentry events are accounted for in the event of a hard crash. This is done by prolonging the process until all events are successfully stored on the device's disk. The events will then be sent the next time the application is open.

You can manually flush all events to disk by calling Sentry.flush().

Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) to suggesting an update ("yeah, this would be better").