{ "id": "121573", "key": "TIMOB-15570", "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": "16925", "description": "WatchKit Support--all going into 5.0 now", "name": "Release 5.0.0", "archived": true, "released": true, "releaseDate": "2015-09-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-07-29T23:26:37.000+0000", "created": "2013-10-24T02:15:46.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "icon", "notification" ], "versions": [], "issuelinks": [], "assignee": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2015-08-24T21:26:05.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": "Currently Titanium.Android.Notification (http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.Android.Notification) only accepts one icon which is used for both the icon on the status bar and the icon displayed on the notification center.\r\n\r\nPlease add support for the largeIcon (http://developer.android.com/reference/android/app/Notification.html#largeIcon) so it becomes possible to have 2 different icons between the status bar and the notification center.\r\n\r\nMany thanks", "attachment": [], "flagged": false, "summary": "Add support for largeIcon in Titanium.Android.Notification", "creator": { "name": "warchild", "key": "warchild", "displayName": "Dário Marcelino", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "environment": "Android", "closedSprints": [ { "id": 445, "state": "closed", "name": "2015 Sprint 15 SDK", "startDate": "2015-07-18T00:30:28.848Z", "endDate": "2015-08-01T00:30:00.000Z", "completeDate": "2015-08-03T01:49:18.234Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "329294", "author": { "name": "syamnath", "key": "syamnath", "displayName": "syam", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi,\r\n\r\nIs this issue resolved on the latest versions of Titanium? i want to add custom image to large icon on ACS notification.\r\nplease help.", "updateAuthor": { "name": "syamnath", "key": "syamnath", "displayName": "syam", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-24T04:26:01.000+0000", "updated": "2014-10-24T04:26:01.000+0000" }, { "id": "332965", "author": { "name": "jpriebe", "key": "jpriebe", "displayName": "Jason Priebe", "active": true, "timeZone": "America/New_York" }, "body": "With Lollipop, I think this is going to be critical. If you want to follow google's iconography styles, you must provide your small icon in all-white. But when the user expands the notification tray in lollipop, notifications are shown on a (nearly) white background, leaving your icon almost invisible.\r\n\r\nIf we can only specify one icon, the only thing we can do is to use a non-white icon, which would violate google's design standards here: http://developer.android.com/design/style/iconography.html\r\n\r\nIdeally, we'd have an all-white small icon, with a non-transparent, colored icon for the tray.", "updateAuthor": { "name": "jpriebe", "key": "jpriebe", "displayName": "Jason Priebe", "active": true, "timeZone": "America/New_York" }, "created": "2014-11-19T20:21:20.000+0000", "updated": "2014-11-19T20:21:20.000+0000" }, { "id": "357553", "author": { "name": "angusf", "key": "angusf", "displayName": "Angus Fox", "active": true, "timeZone": "Europe/London" }, "body": "+1 for critical for Lollipop. Whats the reason for this having a low priority.", "updateAuthor": { "name": "angusf", "key": "angusf", "displayName": "Angus Fox", "active": true, "timeZone": "Europe/London" }, "created": "2015-07-13T12:05:44.000+0000", "updated": "2015-07-13T12:05:44.000+0000" }, { "id": "357556", "author": { "name": "jpriebe", "key": "jpriebe", "displayName": "Jason Priebe", "active": true, "timeZone": "America/New_York" }, "body": "Another issue with icons in Lollipop. Sometimes my push notification icons are zoomed in and cropped when they are displayed in the in the status bar.", "updateAuthor": { "name": "jpriebe", "key": "jpriebe", "displayName": "Jason Priebe", "active": true, "timeZone": "America/New_York" }, "created": "2015-07-13T13:53:50.000+0000", "updated": "2015-07-13T13:53:50.000+0000" }, { "id": "357628", "author": { "name": "angusf", "key": "angusf", "displayName": "Angus Fox", "active": true, "timeZone": "Europe/London" }, "body": "Jason I believe thats a different issue and can be resolved by providing the right icon sizes in the right folder in the project. The largeIcon issue above requires an SDK change.", "updateAuthor": { "name": "angusf", "key": "angusf", "displayName": "Angus Fox", "active": true, "timeZone": "Europe/London" }, "created": "2015-07-14T07:48:35.000+0000", "updated": "2015-07-14T07:48:35.000+0000" }, { "id": "357653", "author": { "name": "jpriebe", "key": "jpriebe", "displayName": "Jason Priebe", "active": true, "timeZone": "America/New_York" }, "body": "Angus, can you elaborate? All I know to do is to put the notification icon into platform/android/drawable/res/foo.png and then reference it in the payload as icon => \"foo\". I haven't seen specs on the size to use.\r\n\r\nI paid close attention to some notifications this morning, and the problem occurs when the push notification first comes in -- android displays it at the top of the screen with a zoomed-in, cropped icon. That display auto-dismisses after a few seconds. Then I see the notification icon in the status bar, and it is sized correctly. \r\n\r\nScreenshots:\r\n\r\nInitial appearance:\r\n!http://s17.postimg.org/v36k0bk27/ss1.png!\r\n\r\nStatus bar appearance:\r\n!http://s13.postimg.org/an8muebon/ss2.png!\r\n\r\nnotifications tray appearance: \r\n!http://s7.postimg.org/es798f9hn/ss3.png!", "updateAuthor": { "name": "jpriebe", "key": "jpriebe", "displayName": "Jason Priebe", "active": true, "timeZone": "America/New_York" }, "created": "2015-07-14T15:48:50.000+0000", "updated": "2015-07-14T16:19:28.000+0000" }, { "id": "357663", "author": { "name": "angusf", "key": "angusf", "displayName": "Angus Fox", "active": true, "timeZone": "Europe/London" }, "body": "Ah I see - that is a different issue to the one I was thinking of - apologies for the dead end - Odd sizes in the status bar is not something we have looked for or seen. We see the same small icon with the google generated circle in place of a proper largeIcon in our apps too.", "updateAuthor": { "name": "angusf", "key": "angusf", "displayName": "Angus Fox", "active": true, "timeZone": "Europe/London" }, "created": "2015-07-14T17:29:44.000+0000", "updated": "2015-07-14T17:29:44.000+0000" }, { "id": "357665", "author": { "name": "jpriebe", "key": "jpriebe", "displayName": "Jason Priebe", "active": true, "timeZone": "America/New_York" }, "body": "So I found out a little bit more about the notification icons. \r\n\r\nWe have been using a 128x128 notification icon in platform/android/res/drawable. In most cases, the system scales it properly, and it looks great. It's just that one situation where the push notification first appears on Lollipop devices -- it's not getting resized properly; instead, it's just cropped center.\r\n\r\nI've just been playing around with some sizes for the notification icon:\r\n\r\nplatform/android/res/drawable-mdpi/foo.png - 24 px\r\nplatform/android/res/drawable-hdpi/foo.png - 36 px\r\nplatform/android/res/drawable-xhdpi/foo.png - 48 px\r\nplatform/android/res/drawable-xxhdpi/foo.png - 72 px\r\nplatform/android/res/drawable-xxhdpi/foo.png - 96 px\r\n\r\n(I also made it pure white with alpha to comply with Lollipop design guidelines).\r\n\r\nWith these sizes, I don't get the zoomed in effect. It looks fine in all circumstances. On the white cards in the Lollipop notification tray, it shows up as a white icon on a colored circle (gray on a Nexus 7, light blue on a Galaxy S4).\r\n\r\nSupport for the large icon would be nice for us, but I'm OK with the way things look in the interim.", "updateAuthor": { "name": "jpriebe", "key": "jpriebe", "displayName": "Jason Priebe", "active": true, "timeZone": "America/New_York" }, "created": "2015-07-14T17:37:13.000+0000", "updated": "2015-07-14T17:37:13.000+0000" }, { "id": "358488", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/6992", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-07-29T07:52:32.000+0000", "updated": "2015-07-29T07:52:32.000+0000" }, { "id": "358570", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "PR merged.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-07-30T01:27:53.000+0000", "updated": "2015-07-30T01:27:53.000+0000" }, { "id": "360991", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the implementation.\r\nLarge icon is displayed as expected when placed in the proper path.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 4.2.0.201508141038\r\nTi SDK : 5.0.0.v20150824091229\r\nTi CLI : 4.1.5\r\nAlloy : 1.7.5\r\nMAC Yosemite : 10.10.4\r\nAppc NPM : 4.2.0-1\r\nAppc CLI : 5.0.0-14\r\nNode: v0.10.37\r\nNexus 5 - Android 5.1.1\r\nNode : v0.10.37", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-08-24T21:25:27.000+0000", "updated": "2015-08-24T21:25:27.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }