Attach to application lifecycle using ProcessLifecycleOwner and send events to Parse.ly servers whenever application reaches ON_STOP lifecycle phase.
Why?
To move flushing events from onDestroy (as we previosuly requested from clients) to onStop. This way SDK will send events whenever client application goes background
To make it easier for clients to integrate the Parsely SDK (no need to manually trigger flushing events)
What?
Attach to application lifecycle using
ProcessLifecycleOwner
and send events to Parse.ly servers whenever application reachesON_STOP
lifecycle phase.Why?
onDestroy
(as we previosuly requested from clients) toonStop
. This way SDK will send events whenever client application goes background