You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2022/02/14 13:23:10 UTC
[GitHub] [cordova-android] WiHa31 opened a new issue #1397: JS event 'resume' on Android 11 doesn`t work correctly during app start
WiHa31 opened a new issue #1397:
URL: https://github.com/apache/cordova-android/issues/1397
<!--
Please have a look at the issue templates you get when you click "New issue" in the GitHub UI.
We very much prefer issues created by using one of these templates.
-->
### Issue Type
<!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
- [x] Bug Report
- [ ] Feature Request
- [ ] Support Question
## Description
In my case:
When app runnig at first time after installation, callback into event listener on 'resume' event, doesn`t work.
## Information
<!-- Include all relevant information that might help understand and reproduce the problem -->
In my code i added evnetListener on window.document, with params ('resume', onResume, false ) and in case witch is described above, callback onResume doesn`t work. Reproducibility of case is constant. Problem appeared only at Android 11, same code work correctly at Android with lower os version. IOS working correctly.
Case:
1. Install app
2. Launch app
3. Hide(minimize) app
4. Tap on app icon again
Result: callback doesnt work
You can repeat this case and there will be the same result while your app is on memory.
After unloading app from memory, and restart app problem dissapear.
When i change window.document.addEventListener('resume', ...) to window.document.onresume(...) - the problem continued.
### Command or Code
<!-- What command or code is needed to reproduce the problem? -->
const onResume = () => alert('resume event');
window.document.addEventListener('resume', onResume, false);
### Environment, Platform, Device
<!-- In what environment, on what platform or on which device are you experiencing the issue? -->
Samsung Galaxy S20 Ultra, 11 Android - working **incorrect**
Samsung Galaxy A52, 11 Android - working **incorrect**
Nokia TA-1053, 10 Android - working _correct_
iPhone 11, IOS 12.1 - working _correct_
### Version information
<!--
What are relevant versions you are using?
For example:
Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
Other Frameworks: Ionic Framework and CLI version
Operating System, Android Studio, Xcode etc.
-->
Android 11
Cordova 10.0.0
## 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: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-android] breautek commented on issue #1397: JS event 'resume' on Android 11 doesn`t work correctly during app start
Posted by GitBox <gi...@apache.org>.
breautek commented on issue #1397:
URL: https://github.com/apache/cordova-android/issues/1397#issuecomment-1039095619
Can you confirm if your issue also reproduces on an Android 11 emulator?
--
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: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-android] WiHa31 commented on issue #1397: JS event 'resume' on Android 11 doesn`t work correctly during app start
Posted by GitBox <gi...@apache.org>.
WiHa31 commented on issue #1397:
URL: https://github.com/apache/cordova-android/issues/1397#issuecomment-1039085869
https://github.com/apache/cordova-android/issues/1319
https://github.com/apache/cordova-android/issues/1340
looks like something same
--
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: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org