Closed Ldoppea closed 7 months ago
On Android, when the app request a restart, the current Activity is not directly destroyed and the app react as if it was sent to background
background
This triggers the useGlobalAppState hooks which shows the LOCK_SCREEN splashScreen
useGlobalAppState
LOCK_SCREEN
The after the app effectively restarted, it fails to hide all splashScreens because the LOCK_SCREEN one is not expected to be displayed (but it is)
To prevent this kind of side effects, we want to fully unmount the components tree, so all hooks would unregister themselves
This PR also fix some hideSplashScreen scenario and improve logs
### ✨ Features * Update the existing IAP entry with this PR (was not in production yet)
TODO:
On Android, when the app request a restart, the current Activity is not directly destroyed and the app react as if it was sent to
background
This triggers the
useGlobalAppState
hooks which shows theLOCK_SCREEN
splashScreenThe after the app effectively restarted, it fails to hide all splashScreens because the
LOCK_SCREEN
one is not expected to be displayed (but it is)To prevent this kind of side effects, we want to fully unmount the components tree, so all hooks would unregister themselves
This PR also fix some hideSplashScreen scenario and improve logs
TODO: