jmarshall-com opened a new issue #1319: URL: https://github.com/apache/cordova-android/issues/1319
### Issue Type <!-- Please check the boxes by putting an x in the [ ] like so: [x] --> - [ x] Bug Report - [ ] Feature Request - [ ] Support Question ## Description I'm testing my app's onpause/onresume in low memory, so I've set "Don't keep activities" in Android's Developer Options. When this is set, and I use the "overview" button (aka app switcher, bottom right square) and choose my app again, onresume is never fired but ondeviceready is. Thus, there is no way to distinguish between the user starting the app (when I want the user to log in) and resuming it using the overview button (when I want to restore state). ## Information When my app calls the camera plugin in low memory, both ondeviceready and onresume are fired upon return. When testing with normal memory conditions, all three events seem to work correctly, except: when using the overview button to reselect my app, onresume fires, which I thought would only happen if the phone actually ran out of memory, which is not the case here. (But maybe that detail is correct behavior?) In any case, of course, I need this to work in low-memory conditions. ### Command or Code I just put an alert() at the beginning of each of the ondeviceready and onresume handlers, indicating which handler is running. ### Environment, Platform, Device This is on a physical Pixel 2 XL running Android 11; I see the same results when running in an emulator. ### Version information Android 11 on Pixel 2 XL Cordova 10.0.0 cordova-plugin-camera 5.0.2 cordova-plugin-background-mode 0.7.3 cordova-plugin-autostart 2.3.0 I'm not using the last two yet, but my app will need them. I'm using many more plugins, but these are the only ones that seem relevant. ## Checklist <!-- Please check the boxes by putting an `x` in the `[ ]` like so: `[x]` --> - [ x] I searched for already existing GitHub issues about this - [ ] I updated all Cordova tooling to their most recent version - [ x] I included all the necessary information above -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
