incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Braden Shepherdson <bra...@chromium.org>
Subject Re: [DISCUSS][Android] Polling plugins onNewIntent
Date Wed, 29 Aug 2012 21:20:12 GMT
I don't know about the Message API, but it certainly has something to do
with the code a function below your link [1]: We capture onNewIntent and
call that on plugins. >_>

So I'll use that, and it looks like it will work great. Thanks for the link!

Braden


On Wed, Aug 29, 2012 at 4:14 PM, Filip Maj <fil@adobe.com> wrote:

> Is this at all related to the high-level / general purpose "Message" api
> we have in plugins [1] [2]? Could that be used instead?
>
> [1]
> https://github.com/apache/incubator-cordova-android/blob/master/framework/s
> rc/org/apache/cordova/api/PluginManager.java#L318
> [2]
> https://github.com/apache/incubator-cordova-android/blob/master/framework/s
> rc/org/apache/cordova/api/Plugin.java#L114
>
> On 8/29/12 12:10 PM, "Braden Shepherdson" <braden@chromium.org> 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
> >changes.
> >
> >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.
> >
> >Braden
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message