[
https://issues.apache.org/jira/browse/CB-13975?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16412039#comment-16412039
]
ASF GitHub Bot commented on CB-13975:
-------------------------------------
codecov-io commented on issue #435: CB-13975: (android) Fix to fire pause event
when cdvStartInBackground=true
URL: https://github.com/apache/cordova-android/pull/435#issuecomment-375793330
#
[Codecov](https://codecov.io/gh/apache/cordova-android/pull/435?src=pr&el=h1)
Report
> Merging
[#435](https://codecov.io/gh/apache/cordova-android/pull/435?src=pr&el=desc)
into
[master](https://codecov.io/gh/apache/cordova-android/commit/6abd6d6b477966d6a40420800376d28bacd1d940?src=pr&el=desc)
will **not change** coverage.
> The diff coverage is `n/a`.
[](https://codecov.io/gh/apache/cordova-android/pull/435?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #435 +/- ##
=======================================
Coverage 43.95% 43.95%
=======================================
Files 17 17
Lines 1711 1711
Branches 318 318
=======================================
Hits 752 752
Misses 959 959
```
------
[Continue to review full report at
Codecov](https://codecov.io/gh/apache/cordova-android/pull/435?src=pr&el=continue).
> **Legend** - [Click here to learn
more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by
[Codecov](https://codecov.io/gh/apache/cordova-android/pull/435?src=pr&el=footer).
Last update
[6abd6d6...b1551ca](https://codecov.io/gh/apache/cordova-android/pull/435?src=pr&el=lastupdated).
Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Android MainActivity cdvStartInBackground=true fails to fire pause event
> ------------------------------------------------------------------------
>
> Key: CB-13975
> URL: https://issues.apache.org/jira/browse/CB-13975
> Project: Apache Cordova
> Issue Type: Bug
> Components: cordova-android
> Reporter: Rich T
> Assignee: Joe Bowser
> Priority: Major
> Attachments: CoreAndroid.java
>
>
> The MainActivity created from the template that adds support for starting the
> app in the background via the cdvStartInBackground flag doesn't fire the
> pause event. Debugging the Android code it looks like onPause is called
> before the messageChannel is set so the send event is dropped.
> There should probably be a pendingPause flag like the pendingResume.
> The reason this is a problem is that I am using the phonegap-push-plugin to
> wake the app in the background and I want to know that the app is in the
> background so I can disable polling requests which are a data and battery
> drain, currently I cannot do this and the app can just be sitting there in
> the background consuming resources it doesn't need.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]