- Add automatic flushing of unsent events on app close/minimize (through the Activity Lifecycle
onPause
callback). This only works if you callAmplitude.getInstance().enableForegroundTracking(getApplication());
, which is already recommended in the README by default for Setup. To disable you can callAmplitude.getInstance().setFlushEventsOnClose(false);