incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Braden Shepherdson <bra...@chromium.org>
Subject [DISCUSS][Android] Polling plugins onNewIntent
Date Wed, 29 Aug 2012 19:10:48 GMT
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