cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CB-13975) Android MainActivity cdvStartInBackground=true fails to fire pause event
Date Tue, 27 Mar 2018 20:51:00 GMT


ASF GitHub Bot commented on CB-13975:

infil00p commented on issue #435: CB-13975: (android) Fix to fire pause event when cdvStartInBackground=true

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:

> Android MainActivity cdvStartInBackground=true fails to fire pause event
> ------------------------------------------------------------------------
>                 Key: CB-13975
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-android
>            Reporter: Rich T
>            Assignee: Joe Bowser
>            Priority: Major
>         Attachments:
> 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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message