[TIMOB-2091] Android: Support Android Notification Service
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:58:04.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.6.0 M06 |
Components | Android |
Labels | android, feature, release-1.6.0, rplist |
Reporter | Don Thorp |
Assignee | Don Thorp |
Created | 2011-04-15T03:10:10.000+0000 |
Updated | 2011-04-17T01:58:04.000+0000 |
Description
See http://developer.android.com/reference/android/app/NotificationManager.html"> Notification Manager, http://developer.android.com/reference/android/app/Notification.html"> Notification, and http://developer.android.com/guide/topics/ui/notifiers/notifications.html"> Guide
Use Titanium.Android.NotificationManager
as the
module have it provide a createNotification()
method
that accepts a dictionary.
NotificationManager will expose
- notify(int id, NotificationProxy proxy) - cancel(int id) -
cancelAll() - createNotification({/ create options /}
Requires support from Intent, PendingIntent, and Activity
Attachments
File | Date | Size |
---|---|---|
notifications.zip | 2011-04-15T03:10:10.000+0000 | 757587 |
(from [e31b041bd0e5bbc6f79c029a361184b176c08c76]) [#2091 state:open] Initial support, no documentation. http://github.com/appcelerator/titanium_mobile/commit/e31b041bd0e5bbc6f79c029a361184b176c08c76"> http://github.com/appcelerator/titanium_mobile/commit/e31b041bd0e5b...
(from [ab390853b5da78bd186c9051dec986cfc9e3b656]) [#2091] refactored the helper so I can get the id http://github.com/appcelerator/titanium_mobile/commit/ab390853b5da78bd186c9051dec986cfc9e3b656"> http://github.com/appcelerator/titanium_mobile/commit/ab390853b5da7...
(from [69df280971e6a7c76ce31f072eda0b9b287097ee]) [#1589 #2091 #1590 state:open] Additional methods on Intent, PendingIntent, and addition of NotificationManager module http://github.com/appcelerator/titanium_mobile/commit/69df280971e6a7c76ce31f072eda0b9b287097ee"> http://github.com/appcelerator/titanium_mobile/commit/69df280971e6a...
Small bug here, dunno if the icon is supposed to be attached to a resource or not, but it seems from the java source that it's included dynamically, although it fails out with (no matter where the icon is located):
Code to reproduce:
@Andrew please try and contact us via support/IRC first especially on new features that haven't been completed. You'll have to use the multidensity support and place your icon in
Resources/android/images/[high|medium|low]
so that it gets placed into theres/drawables
area correctly. We are also going to have resources that are injectable via a newplatforms/android
folder in the root of your project, but we haven't finished testing that yet.No, problem, my apologies. Just trying to stay on the cutting edge here at work, sometimes i do tend to get a bit overzealous. :)
not exactly sure why it was ever moved to in-progress.
(from [107833084490d163f9b4238b3557ed07c6624150]) better Android support for Notifications and initial support for RemoteViews we can now fully customize notifications with custom Android layouts, and have full access to all of the options provided in the Android Notification API. PendingIntent has also received an updated API. Updated and Added doc for RemoteViews, Notification, NotificationManager, and PendingIntent
[#2091 state:fixed-in-qa] [#2835 state:fixed-in-qa] https://github.com/appcelerator/titanium_mobile/commit/107833084490d163f9b4238b3557ed07c6624150"> https://github.com/appcelerator/titanium_mobile/commit/107833084490...
verified emulator 2.2 with attached test provided by Marshall