[
https://issues.apache.org/jira/browse/CB-10498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15131257#comment-15131257
]
ASF GitHub Bot commented on CB-10498:
-------------------------------------
GitHub user riknoll opened a pull request:
https://github.com/apache/cordova-android/pull/257
CB-10498: Resume event should be sticky if it has a plugin result
Changes the resume event behavior as follows:
1. When the app starts and there is no plugin result to be delivered, the
**resume event will not fire** (same as current behavior)
2. When the app is left and then resumed (e.g. press the home button and
then return to the app), the **resume event will fire but will not be sticky**
(same as current behavior)
3. When the app is recreated after a plugin Activity finishes (i.e. the
event payload contains a pending result), the **resume event will fire and will
be sticky**
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/MSOpenTech/cordova-android CB-10498rebase
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cordova-android/pull/257.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 #257
----
commit d7e111fb710c63c32ff21c15b6cb5c67ed6280cc
Author: riknoll <[email protected]>
Date: 2016-02-03T21:12:21Z
CB-10498: Resume event should be sticky if it has a plugin result
----
> Resume event not guaranteed to be received with plugin result
> -------------------------------------------------------------
>
> Key: CB-10498
> URL: https://issues.apache.org/jira/browse/CB-10498
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Reporter: Richard B Knoll
> Assignee: Richard B Knoll
> Labels: android, triaged
>
> The save/restore API delivers results in the resume event. The issue is, it
> is possible to "miss" the resume event if you don't add an event handler in
> time.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]