[ 
https://issues.apache.org/jira/browse/CB-8389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14298869#comment-14298869
 ] 

ASF subversion and git services commented on CB-8389:
-----------------------------------------------------

Commit 26ee1c4547933955f2719530d7b42ffef0119f20 in cordova-android's branch 
refs/heads/master from [~agrieve]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-android.git;h=26ee1c4 ]

CB-8389 Allow plugins to handle exit and onReceivedError messages before 
CordovaInterface

Also switches to LinkedHashMap for plugins so that activity can insert a
plugin and have it be the first one to receive messages


> pluginManager.postMessage() Should allow plugins first dibs at messages 
> rather than CordovaInterface
> ----------------------------------------------------------------------------------------------------
>
>                 Key: CB-8389
>                 URL: https://issues.apache.org/jira/browse/CB-8389
>             Project: Apache Cordova
>          Issue Type: Bug
>            Reporter: Andrew Grieve
>            Assignee: Andrew Grieve
>            Priority: Minor
>
> This isn't really that obvious, but it makes more sense when you look at the 
> two events handled by CordovaActivity:
> - exit (finish()es the app)
> - onReceiveError (likewise)
> These events cannot be handled by plugins, because the activity gets to them 
> first. I'd like to write a plugin for "developer mode", where onReceiveError 
> happens quite a bit, and I need the plugin to be able to catch this case 
> rather than finish the activity.
> Giving plugins first dibs at messages actually doesn't preclude an activity 
> from having first dibs either. The activity just needs to register their own 
> plugin to do so (which is trivial).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to