{ "id": "170693", "key": "MOD-2385", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "10034", "key": "MOD", "name": "Appcelerator Modules", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2017-12-29T11:43:45.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "push", "ti.cloud" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2019-01-29T16:59:39.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "11902", "name": "Cloud" } ], "description": "*Problem*\r\nWhen you target Android 8.0 (API level 26), you must implement one or more notification channels to display notifications to your users.\r\nWith the current Ti.Cloud you'll see a Toast notification that the NotificationChannel is null: https://i.stack.imgur.com/JCS2e.jpg\r\n\r\n*Solution:*\r\nhttps://stackoverflow.com/a/47135605/5193915\r\nhttps://stackoverflow.com/a/47974065/5193915\r\n\r\n*More infos*\r\nhttps://medium.com/exploring-android/exploring-android-o-notification-channels-94cd274f604c\r\n\r\n*Platform*\r\nTitanium SDK 7.0.1\r\nTi.Cloud 3.2.11\r\nAndroid Oreo", "attachment": [], "flagged": false, "summary": "Android: Ti.Cloud support for Oreo NotificationChannels", "creator": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "432602", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Thanks for the Ticket, Our engineers will look into it. ", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-12-30T22:19:21.000+0000", "updated": "2017-12-30T22:19:21.000+0000" }, { "id": "435581", "author": { "name": "paulatstepup", "key": "paulatstepup", "displayName": "Paul Ryan", "active": true, "timeZone": "Europe/London" }, "body": "I find that if you do something like this in your app\r\n\r\nif (OS_ANDROID) {\r\n var apiLevel = parseInt(Ti.Platform.Android.API_LEVEL, 10);\r\n if (apiLevel > 25) {\r\n var channel = Ti.Android.NotificationManager.createNotificationChannel({\r\n id: 'channel_name',\r\n name: 'All Users',\r\n importance: Ti.Android.IMPORTANCE_DEFAULT\r\n });\r\n }\r\n}\r\n\r\nyou can send a push to it via GCM using a payload like\r\n\r\ndata: {\r\n payload: {\r\n android: {\r\n alert: \"test\",\r\n title: \"test\",\r\n channelId: \"channel_name\"\r\n }\r\n }\r\n }\r\n\r\nbut I cannot do this via the app dashboard in ACS, the app throws an error \"no valid small icon\"", "updateAuthor": { "name": "paulatstepup", "key": "paulatstepup", "displayName": "Paul Ryan", "active": true, "timeZone": "Europe/London" }, "created": "2018-03-14T14:48:49.000+0000", "updated": "2018-03-14T14:48:49.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }