Skip to content
This repository has been archived by the owner on Apr 17, 2021. It is now read-only.

On screen timeout, application only receives onPause, breaking Android contract #172

Open
mcomella opened this issue Jan 8, 2019 · 0 comments

Comments

@mcomella
Copy link
Contributor

mcomella commented Jan 8, 2019

STR:

  • Add log statements to onPause, onStop, and onDestroy
  • Open Firefox on device
  • Wait 5 minutes for device to time out

Expected: onPause and onStop are called, as per the contracts defined by the Android lifecycle
Actual: only onPause is called

I suspect Fire OS may be doing this intentionally to prevent Android from restoring state to Firefox when it's reopened but we actually think that's desirable behavior #145. Also, diverging from Android and breaking this contract makes it harder to write reliable apps.

@athomasmoz Can we ask Amazon if this intentional and if so why they're doing this? I'd like the behavior to be consistent with Android but if it's necessary to break with convention, I'd like to understand the consequences.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants