Closed wzieba closed 1 year ago
~Sorry, it's still WIP @ParaskP7 . I'll ping you again when it'll be ready 👍~ False alarm, actually it's good to go 👍
👋 @wzieba !
Took another look at the extra 2 commits added, thanks and everything LGTM, feel free to merge this when you're ready! 🚀
Closes: #76
Description
This PR introduces a new behavior of automatically flushing the events queue using
ProcessLifecycleOwner
. This API is used in e.g.AppLifecycleIntegration.kt
from Sentry Android SDK which works similarly to Parse.ly SDK in the sense of observing application lifecycle.At the same time, this PR deprecates manual queue flushing.
How to test
Before
main
POST Data {"events":
logAfter
POST Data {"events":
log is logged imidiatelly after app is moved to the backgroundDependency change report