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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to