cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filip Maj <>
Subject Re: [DISCUSS][Android] Polling plugins onNewIntent
Date Wed, 29 Aug 2012 20:14:31 GMT
Is this at all related to the high-level / general purpose "Message" api
we have in plugins [1] [2]? Could that be used instead?


On 8/29/12 12:10 PM, "Braden Shepherdson" <> wrote:

>I'm working on the status bar notification plugin for Android, hoping to
>add support for onclick as in the W3C spec.
>There are basically three approaches to capturing the Intent when the
>notification is clicked:
>1. Create a new Activity that causes the onclick to be called and then
>hands off to the main Cordova Activity.
>2. Have the user of the plugin add onNewIntent() to the root of the app,
>with code provided in the plugin's documentation.
>3. Do something similar to the plugin polling when the top-level URL
>I've been investigating (1), but it requires adding an Activity to the app
>manifest. (2) sucks in several ways. (3) appeals to me the most, but
>requires that polling of plugins. It will only be active when something is
>actually sending new Intents to the app, which currently doesn't happen at
>all. It would also enable other apps to call into Cordova apps and have
>plugins capture those events. (Share, etc.)
>Thoughts? I'm mostly glad I can actually support onclick.

View raw message