[
https://issues.apache.org/jira/browse/CB-13975?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16416220#comment-16416220
]
ASF subversion and git services commented on CB-13975:
------------------------------------------------------
Commit b8530a6b70e8d4f791bce8b1805c6fe438cf7420 in cordova-android's branch
refs/heads/master from [~bowserj]
[ https://gitbox.apache.org/repos/asf?p=cordova-android.git;h=b8530a6 ]
Merge pull request #435 from richturner/master
CB-13975: (android) Fix to fire pause event when cdvStartInBackground=true
> 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]