You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Andrew Grieve (JIRA)" <ji...@apache.org> on 2015/01/30 17:55:34 UTC

[jira] [Created] (CB-8389) pluginManager.postMessage() Should allow plugins first dibs at messages rather than CordovaInterface

Andrew Grieve created CB-8389:
---------------------------------

             Summary: 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