7 Commits

Author SHA1 Message Date
Manij Shrestha
ac02e812c3 Bug fix on CLEAR, that resulted in NPE. Added feature to allow FLAG_NO_CLEAR with backwards compatiblity. 2012-11-21 00:39:14 -06:00
Braden Shepherdson
287abff321 Merge branch 'master' of github.com:phonegap/phonegap-plugins 2012-08-30 16:12:07 -04:00
Braden Shepherdson
1362a06aba onclick for Android status bar notifications
Cleans up the Android status bar notifications code and handles clicks
on the notification, calling the onclick() callback defined on the
notification in Javascript.
2012-08-30 16:10:41 -04:00
Max Ogden
4b6e9ef145 fixed import line and verified that #761 works on an android 2.2 device :) 2012-08-28 13:07:34 -07:00
Braden Shepherdson
161428abb9 Improvements to Android status bar notifications
Several things here:
- Add support for the W3C notifications spec, and rewrite the old API to
  call the new W3C one behind the scenes.
- Notifications are now automatically cleared when the user clicks.
- Clicking the notification brings the user to the same instance of the
  app as was already running (and not a new copy as by default in
  Android notifications).
- Support for multiple notifications from one app using tags, as
  specified in the W3C spec and supported by Android.
- Support for canceling a single notification by tag, as per W3C spec.

Callbacks to Javascript when the user clicks are specified but not yet
supported; I will add that assuming I can get Android to call some code
in the plugin when the notification is clicked.
2012-08-28 15:19:40 -04:00
Max Ogden
eb63a0124b update readme and add more docs to statusbarnotification android plugin 2012-08-27 13:39:05 -07:00
Max Ogden
03dedd48b8 make android statusbar notification plugin work on all cordova/android versions EVAR 2012-08-26 16:49:50 -07:00