{ "id": "62723", "key": "TIMOB-2091", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11239", "name": "Release 1.6.0 M06", "archived": true, "released": true, "releaseDate": "2011-01-24" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:58:04.000+0000", "created": "2011-04-15T03:10:10.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "feature", "release-1.6.0", "rplist" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:58:04.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

See \nNotification Manager, \nNotification, and \nGuide

\n

Use Titanium.Android.NotificationManager as the\nmodule have it provide a createNotification() method\nthat accepts a dictionary.

\n

NotificationManager will expose
\n- notify(int id, NotificationProxy proxy) - cancel(int id) -\ncancelAll() - createNotification({/ create options /}

\n

Requires support from Intent, PendingIntent, and Activity

{html}", "attachment": [ { "id": "18099", "filename": "notifications.zip", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-04-15T03:10:10.000+0000", "size": 757587, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: Support Android Notification Service", "creator": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "127465", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [e31b041bd0e5bbc6f79c029a361184b176c08c76])\n[#2091 state:open] Initial support, no\ndocumentation. \nhttp://github.com/appcelerator/titanium_mobile/commit/e31b041bd0e5b...

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:10:11.000+0000", "updated": "2011-04-15T03:10:11.000+0000" }, { "id": "127466", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [ab390853b5da78bd186c9051dec986cfc9e3b656])\n[#2091] refactored the helper so I can get the id\n\nhttp://github.com/appcelerator/titanium_mobile/commit/ab390853b5da7...

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:10:11.000+0000", "updated": "2011-04-15T03:10:11.000+0000" }, { "id": "127467", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [69df280971e6a7c76ce31f072eda0b9b287097ee])\n[#1589 #2091 #1590\nstate:open] Additional methods on Intent, PendingIntent, and\naddition of NotificationManager module \nhttp://github.com/appcelerator/titanium_mobile/commit/69df280971e6a...

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:10:11.000+0000", "updated": "2011-04-15T03:10:11.000+0000" }, { "id": "127468", "author": { "name": "andrewheebner", "key": "andrewheebner", "displayName": "Andrew Heebner", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Small bug here, dunno if the icon is supposed to be attached to\na resource or not, but it seems from the java source that it's\nincluded dynamically, although it fails out with (no matter where\nthe icon is located):

\n
\n10-22 12:24:43.615: WARN/TiNotification(7975): (kroll$1) [40,29802] No image found for stat_notify_missed_call.png\n
\n

Code to reproduce:

\n
\nvar win = Ti.UI.createWindow({\n    backgroundColor : 'gray'\n});\n\n// notification number, increments automagically\nvar i = 1;\n\nvar btn = Ti.UI.createButton({\n    title: 'Add Notification'\n});\n\nbtn.addEventListener('click', function(e) {\n    createNote('Someone Called!', '555-555-5555', 'New missed call!');\n});\n\nwin.add(btn);\nwin.open();\n\nfunction createNote(title, text, ticker) {\n    i++;\n    var activity = Ti.Android.createActivity();\n\n    var intent = Ti.Android.createIntent({\n        action: Ti.Android.ACTION_DIAL, \n        data: \"tel:555\" \n    });\n\n    var pending = Ti.Android.createPendingIntent({ \n        'activity': activity,\n        'intent': intent,\n        'type': Ti.Android.PENDING_INTENT_FOR_ACTIVITY,\n        'flags': 1073741824\n    });\n\n    var ts = new Date().getTime();\n\n    var notification = Ti.Android.NotificationManager.createNotification({\n        icon: 'stat_notify_missed_call.png',\n        contentIntent: pending,\n        contentTitle:title,\n        contentText: text,\n        when: ts,\n        tickerText: ticker\n    });\n\n    Ti.Android.NotificationManager.notify(i, notification); \n}\n
{html}", "updateAuthor": { "name": "andrewheebner", "key": "andrewheebner", "displayName": "Andrew Heebner", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:10:11.000+0000", "updated": "2011-04-15T03:10:11.000+0000" }, { "id": "127469", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

@Andrew please try and contact us via support/IRC first\nespecially on new features that haven't been completed. You'll have\nto use the multidensity support and place your icon in\nResources/android/images/[high|medium|low] so that it\ngets placed into the res/drawables area correctly. We\nare also going to have resources that are injectable via a new\nplatforms/android folder in the root of your project,\nbut we haven't finished testing that yet.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:10:12.000+0000", "updated": "2011-04-15T03:10:12.000+0000" }, { "id": "127470", "author": { "name": "andrewheebner", "key": "andrewheebner", "displayName": "Andrew Heebner", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

No, problem, my apologies. Just trying to stay on the cutting\nedge here at work, sometimes i do tend to get a bit overzealous.\n:)

{html}", "updateAuthor": { "name": "andrewheebner", "key": "andrewheebner", "displayName": "Andrew Heebner", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:10:12.000+0000", "updated": "2011-04-15T03:10:12.000+0000" }, { "id": "127471", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

not exactly sure why it was ever moved to in-progress.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:10:12.000+0000", "updated": "2011-04-15T03:10:12.000+0000" }, { "id": "127472", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [107833084490d163f9b4238b3557ed07c6624150])\nbetter Android support for Notifications and initial support for\nRemoteViews we can now fully customize notifications with custom\nAndroid layouts, and have full access to all of the options\nprovided in the Android Notification API. PendingIntent has also\nreceived an updated API. Updated and Added doc for RemoteViews,\nNotification, NotificationManager, and PendingIntent
\n[#2091 state:fixed-in-qa] [#2835\nstate:fixed-in-qa] \nhttps://github.com/appcelerator/titanium_mobile/commit/107833084490...

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:10:13.000+0000", "updated": "2011-04-15T03:10:13.000+0000" }, { "id": "127473", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "{html}

verified emulator 2.2 with attached test provided by\nMarshall

{html}", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-04-15T03:10:14.000+0000", "updated": "2011-04-15T03:10:14.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }