cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Grieve (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CB-8389) pluginManager.postMessage() Should allow plugins first dibs at messages rather than CordovaInterface
Date Fri, 30 Jan 2015 17:03:34 GMT

     [ https://issues.apache.org/jira/browse/CB-8389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrew Grieve resolved CB-8389.
-------------------------------
    Resolution: Fixed

Fixed in 4.0.0-dev

> 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: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message