{ "id": "161582", "key": "TIMOB-23645", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "17609", "description": "", "name": "Release 7.0.0", "archived": false, "released": true, "releaseDate": "2017-12-07" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-11-10T18:56:27.000+0000", "created": "2016-07-06T15:41:45.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-11-10T21:45:44.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 we can't set the color of the circle notification on Android. T\r\nhere is no method setColor on ti.cloudpush or style variable that we can override.", "attachment": [], "flagged": false, "summary": "Android notification: allow to set color of background", "creator": { "name": "ThibZ", "key": "thibz", "displayName": "Thibault Lenclos", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ThibZ", "key": "thibz", "displayName": "Thibault Lenclos", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "390816", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Thanks for submitting the request. Can you share a demonstration of how this works in native platform? Our engineers will look into it. We will let you know if and when we will include this feature in ti.cloudpush. ", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-07-15T19:49:02.000+0000", "updated": "2016-07-15T19:49:02.000+0000" }, { "id": "392652", "author": { "name": "azamouchi", "key": "azamouchi", "displayName": "Ayoub Zamouchi", "active": true, "timeZone": "Africa/Lagos" }, "body": "This is the method used in native android development : [https://developer.android.com/reference/android/app/Notification.Builder.html#setColor(int)] , and this post describe how to do it : [http://stackoverflow.com/questions/27343202/changing-notification-icon-background-on-lollipop]", "updateAuthor": { "name": "azamouchi", "key": "azamouchi", "displayName": "Ayoub Zamouchi", "active": true, "timeZone": "Africa/Lagos" }, "created": "2016-08-08T18:57:17.000+0000", "updated": "2016-08-08T18:57:17.000+0000" }, { "id": "427998", "author": { "name": "dieskim", "key": "dieskim", "displayName": "David van de Meer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Has this still not been implemented?? ", "updateAuthor": { "name": "dieskim", "key": "dieskim", "displayName": "David van de Meer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-18T07:08:02.000+0000", "updated": "2017-09-18T07:08:02.000+0000" }, { "id": "428071", "author": { "name": "dieskim", "key": "dieskim", "displayName": "David van de Meer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Eric Merriman - I have added a Pull request that adds this ability - as this is my first I have signed the CLA as well. I am not sure what other tests, docs etc need to be done or if there is anywhere else in the code you would like me to add this? \r\n\r\nOne concern I have is that this will not work on Android < 5 and I see we still support Android 4. Will this automatically fail or should we code in some check to ignore it on Android 4?\r\n\r\nUsage:\r\n\r\n\r\n{code:java}\r\nvar notification = Titanium.Android.createNotification({\r\n contentTitle: \"Title\",\r\n contentText: \"Content\",\r\n tickerText: \"TickerTitle\",\r\n when: 0,\r\n icon : Ti.App.Android.R.drawable.notification_icon_white,\r\n flags : Titanium.Android.FLAG_NO_CLEAR | Titanium.Android.FLAG_ONGOING_EVENT,\r\n contentIntent: pending,\r\n color: \"black\", // #90B81A also works\r\n });\r\n \r\nTi.Android.NotificationManager.notify(1, notification);\r\n{code}\r\n", "updateAuthor": { "name": "dieskim", "key": "dieskim", "displayName": "David van de Meer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-19T03:22:08.000+0000", "updated": "2017-09-19T07:39:51.000+0000" }, { "id": "429606", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~dieskim] Can you link your pull-request here? We are currently doing house-keeping for 7.0.0 and would need to reschedule it otherwise. Thank you!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-10-25T21:50:33.000+0000", "updated": "2017-10-25T21:50:33.000+0000" }, { "id": "429635", "author": { "name": "dieskim", "key": "dieskim", "displayName": "David van de Meer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "sure but I am not sure what to do exactly...I thought it was already linked?\r\n\r\nDid you mean add a link here?\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/9444", "updateAuthor": { "name": "dieskim", "key": "dieskim", "displayName": "David van de Meer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-10-26T01:07:03.000+0000", "updated": "2017-10-26T02:26:16.000+0000" }, { "id": "429730", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Yes, thank you! ", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-10-27T10:24:54.000+0000", "updated": "2017-10-27T10:24:54.000+0000" }, { "id": "430374", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.\r\nWaiting for merge to get enabled.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-10T02:37:38.000+0000", "updated": "2017-11-10T02:37:38.000+0000" }, { "id": "430410", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR merged.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-10T18:56:20.000+0000", "updated": "2017-11-10T18:56:20.000+0000" }, { "id": "430424", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with SDK 7.0.0.v20171110104246.\r\n\r\nClosing.\r\n\r\nStudio Ver: 4.10.0.201709271713\r\nSDK Ver: 7.0.0.v20171110104246\r\nOS Ver: 10.12.3\r\nXcode Ver: Xcode 8.3.3\r\nAppc NPM: 4.2.10\r\nAppc CLI: 6.3.0\r\nTi CLI Ver: 5.0.14\r\nAlloy Ver: 1.10.7\r\nNode Ver: 7.10.1\r\nJava Ver: 1.8.0_101\r\nDevices: ⇨ google Nexus 5 --- Android 6.0.1\r\n ⇨ google Nexus 6P --- Android 8.0.0", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-10T21:45:37.000+0000", "updated": "2017-11-10T21:45:37.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }