You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by spirann <gi...@git.apache.org> on 2016/09/29 12:54:11 UTC

[GitHub] cordova-android pull request #337: CB-11935 Call onPause & onResume on WebVi...

GitHub user spirann opened a pull request:

    https://github.com/apache/cordova-android/pull/337

    CB-11935 Call onPause & onResume on WebView

    Does a best-effort attempt to pause any processing that can be paused safely, such as animations and geolocation.
    Fix the potential rejection from Play Store

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/spirann/cordova-android master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-android/pull/337.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #337
    
----
commit 9357737f3c6f7396af947c5c4529cba7022882b0
Author: Simon Pireyn <sp...@gmail.com>
Date:   2016-09-29T12:47:19Z

    CB-11935 Does a best-effort attempt to pause any processing that can be paused safely, such as animations and geolocation.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] cordova-android issue #337: CB-11935 Call onPause & onResume on WebView

Posted by vinzscam <gi...@git.apache.org>.
Github user vinzscam commented on the issue:

    https://github.com/apache/cordova-android/pull/337
  
    It makes sense :)
    I just want to point out that it is not just a broken API: it could affects the functionality of existing apps (in my case I was using it to connect/disconnect a persistent connection to a server).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] cordova-android issue #337: CB-11935 Call onPause & onResume on WebView

Posted by infil00p <gi...@git.apache.org>.
Github user infil00p commented on the issue:

    https://github.com/apache/cordova-android/pull/337
  
    Sorry, but this is more important than the pause event, this stays.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] cordova-android issue #337: CB-11935 Call onPause & onResume on WebView

Posted by codecov-io <gi...@git.apache.org>.
Github user codecov-io commented on the issue:

    https://github.com/apache/cordova-android/pull/337
  
    ## [Current coverage](https://codecov.io/gh/apache/cordova-android/pull/337?src=pr) is 35.15% (diff: 100%)
    > Merging [#337](https://codecov.io/gh/apache/cordova-android/pull/337?src=pr) into [master](https://codecov.io/gh/apache/cordova-android/branch/master?src=pr) will not change coverage
    
    ```diff
    @@             master       #337   diff @@
    ==========================================
      Files            12         12          
      Lines          1007       1007          
      Methods         198        198          
      Messages          0          0          
      Branches        168        168          
    ==========================================
      Hits            354        354          
      Misses          653        653          
      Partials          0          0          
    ```
    
    > Powered by [Codecov](https://codecov.io?src=pr). Last update [30325e4...9357737](https://codecov.io/gh/apache/cordova-android/compare/30325e4f32564cc8806bb1e100dbe4be8a0db449...9357737f3c6f7396af947c5c4529cba7022882b0?src=pr)


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] cordova-android issue #337: CB-11935 Call onPause & onResume on WebView

Posted by infil00p <gi...@git.apache.org>.
Github user infil00p commented on the issue:

    https://github.com/apache/cordova-android/pull/337
  
    BTW: Don't add a commit that says "This closes #337" on this.  I want to be certain that this actually closes it and sign off on the commit.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] cordova-android issue #337: CB-11935 Call onPause & onResume on WebView

Posted by dpogue <gi...@git.apache.org>.
Github user dpogue commented on the issue:

    https://github.com/apache/cordova-android/pull/337
  
    The Android System WebView (in Android 5.0+ anyhow) also fires `visibilitychange` when the app is focused/backgrounded, which might be an alternative (and is, arguably, the spec-compliant event to use for this sort of thing).
    
    Unfortunately the CrossWalk webview does not fire `visibilitychange`, nor do the older WebViews on Android 4.x, so it's not a perfect solution


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] cordova-android issue #337: CB-11935 Call onPause & onResume on WebView

Posted by infil00p <gi...@git.apache.org>.
Github user infil00p commented on the issue:

    https://github.com/apache/cordova-android/pull/337
  
    It's obviously a bug, and we should probably make sure the pause event fires before we pause the timers somehow, since it's clear there's a threading issue.  That said, broken apps in the store are better than no apps in the store.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] cordova-android issue #337: CB-11935 Call onPause & onResume on WebView

Posted by vinzscam <gi...@git.apache.org>.
Github user vinzscam commented on the issue:

    https://github.com/apache/cordova-android/pull/337
  
    The #337 has broken the firing of `pause` event. 
    
    Now the `pause` event fires when the native platform pulls the application out from the background (just before firing the `resume` event).
    
    Maybe is better to rollback the changes keeping consistent to the [documentation](https://cordova.apache.org/docs/en/latest/cordova/events/events.html#pause).
    



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] cordova-android pull request #337: CB-11935 Call onPause & onResume on WebVi...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/cordova-android/pull/337


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] cordova-android issue #337: CB-11935 Call onPause & onResume on WebView

Posted by infil00p <gi...@git.apache.org>.
Github user infil00p commented on the issue:

    https://github.com/apache/cordova-android/pull/337
  
    https://issues.apache.org/jira/browse/CB-12601 is the bug for this new issue.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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