[Android] OnDestroy is currently firing twice #8541
Labels
area/lifecycle 🔁
XPlat and Native UIApplicationDelegate/Activity/Window lifecycle events
fixed-in-8.0.0-preview.4.8333
Look for this fix in 8.0.0-preview.4.8333!
p/1
Work that is critical for the release, but we could probably ship without
platform/android 🤖
Milestone
The following PR tried to fix this issue. I think the PR didn't notice that we already have hooks into calling OnDestroy here. I don't think the original issue is fixable on Android because of the comments that @mattleibow has made here.
OnDestroyed isn't a resilient place to put any of your code
Repro steps
Run the code from the original PR
If you hit the back button to kill your activity or you set your android developer settings to always destroy your activity then you will see it fire twice when you background and the foreground the app
The text was updated successfully, but these errors were encountered: