You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/07/11 10:35:16 UTC

[GitHub] [cordova-browser] benitogf opened a new issue #79: page lifecycle

benitogf opened a new issue #79: page lifecycle
URL: https://github.com/apache/cordova-browser/issues/79
 
 
   # Bug Report
   
   ## Problem
   
   The [cordova-android lifecycle](https://cordova.apache.org/docs/en/latest/guide/platforms/android/index.html#lifecycle-guide) crashes with the [page lifecycle spec](https://wicg.github.io/page-lifecycle/spec.html).
   
   ### What is expected to happen?
   
   There should be some integration between cordova lifecycle and the page lifecycle
   
   ### What does actually happen?
   
   The cordova even 'resume' name clashes with 'resume' of page lifecycle
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   
   The browser `pause` event could be a proxy of `freeze`. currently `pause`  will trigger even on a browser tab change, which makes sense on the mobile webview, but not so much on a browser.
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
   The easiest way to test integration with page lifecycle that I found so far is with `chrome://discards/` as stated here https://developers.google.com/web/updates/2018/07/page-lifecycle-api#testing-your-app-in-the-frozen-and-discarded-states
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   
   Tested with cordova-android and cordova-browser
   
   ### 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.
   -->
   
   Cordova: 9.0
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to 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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org