{ "id": "172680", "key": "TIMOB-26678", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": "20949", "name": "Release 9.0.1", "archived": false, "released": true, "releaseDate": "2020-04-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-04-10T21:19:20.000+0000", "created": "2018-11-28T22:40:21.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-04-10T21:19:20.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": "When using SDK 7.5.0.GA and targeting Android SDK version 26 there is a small issue with notifications.\r\n\r\nIn TIMOB-25864 forward compatibility was introduced to have a default channel in case apps target SDK version 26. This works perfect, apart from the fact that it now always creates this channel.\r\n\r\nWhen using the (undocumented) 'channelId' as option in the createNotification after creating a custom notification channel this yields the expected result. You see a notification that belongs to the channel just created, but on top that you still see the warning:\r\n{code}\r\n[WARN] TiNotification: (main) [234,27512] Falling back to default notification channel.\r\n[WARN] TiNotification: It is highly advised to create your own notification channel using Ti.Android.NotificationManager.createNotificationChannel()\r\n{code}\r\n\r\nThis occurs with the example code of NotificationChannel when targeting SDK version 26: https://docs.appcelerator.com/platform/latest/#!/api/Titanium.Android.NotificationChannel\r\n\r\nExpected result:\r\nNo default notification channel is created, when a custom notification channel is defined.", "attachment": [], "flagged": false, "summary": "Android: Unnecessary default notification channel created when using a custom one", "creator": { "name": "jvandijk", "key": "jvandijk", "displayName": "Jeroen van Dijk", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "jvandijk", "key": "jvandijk", "displayName": "Jeroen van Dijk", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": null, "closedSprints": [ { "id": 1190, "state": "closed", "name": "2020 Sprint 7", "startDate": "2020-03-27T16:30:21.583Z", "endDate": "2020-04-10T16:30:00.000Z", "completeDate": "2020-04-10T17:43:27.544Z", "originBoardId": 114 }, { "id": 1180, "state": "closed", "name": "2020 Sprint 4", "startDate": "2020-02-17T09:48:41.834Z", "endDate": "2020-02-28T09:48:00.000Z", "completeDate": "2020-02-28T17:07:21.344Z", "originBoardId": 114 }, { "id": 1181, "state": "closed", "name": "2020 Sprint 5", "startDate": "2020-03-02T18:45:02.513Z", "endDate": "2020-03-13T18:45:00.000Z", "completeDate": "2020-03-13T16:42:04.632Z", "originBoardId": 114 }, { "id": 1182, "state": "closed", "name": "2020 Sprint 6", "startDate": "2020-03-16T21:38:00.000Z", "endDate": "2020-03-27T21:38:00.000Z", "completeDate": "2020-03-27T16:02:02.830Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "444023", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "You definitely can create your own notification channel for local notifications. We've tested it in 7.5.0 when adding sound support to local notifications channels.\r\n\r\nPlease see the \"NotificationSoundTest.js\" attached to [TIMOB-26484].\r\nThe test procedure for this can be found [here|https://github.com/appcelerator/titanium_mobile/pull/10400].", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-11-28T23:17:48.000+0000", "updated": "2018-11-28T23:17:48.000+0000" }, { "id": "444042", "author": { "name": "jvandijk", "key": "jvandijk", "displayName": "Jeroen van Dijk", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "That's correct. I'm not saying that the creation of the notification channel is the problem. I can perfectly see that happening. But using the created channel is somehow failing for me.\r\n\r\nIn my case I explicitly don't use sounds for notifications, because of a solution using background audio that informs users in the same way when running either in the foreground or background.", "updateAuthor": { "name": "jvandijk", "key": "jvandijk", "displayName": "Jeroen van Dijk", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2018-11-29T08:20:19.000+0000", "updated": "2018-11-29T08:20:19.000+0000" }, { "id": "444063", "author": { "name": "jvandijk", "key": "jvandijk", "displayName": "Jeroen van Dijk", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Okay [~jquick], you're right. It works as expected. I was just using the wrong importance on my custom channel due to that I heard an extra sound. But I was under the impression that that was triggered by the default channel that is created. So there still is a minor issue.\r\n\r\nNow a default channel is 'always' created, even when you use a custom channel. This shouldn't be necessary. I've updated the description to reflect this problem.", "updateAuthor": { "name": "jvandijk", "key": "jvandijk", "displayName": "Jeroen van Dijk", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2018-11-29T22:54:12.000+0000", "updated": "2018-11-29T22:54:51.000+0000" }, { "id": "444110", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Oh I see. That default channel warning/creation shouldn't be happening. Sorry about the confusion.\r\n\r\nIs everything else notification-wise working out for you?\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-11-30T19:21:20.000+0000", "updated": "2018-11-30T19:21:20.000+0000" }, { "id": "444112", "author": { "name": "jvandijk", "key": "jvandijk", "displayName": "Jeroen van Dijk", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Yes it is!", "updateAuthor": { "name": "jvandijk", "key": "jvandijk", "displayName": "Jeroen van Dijk", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2018-11-30T21:01:49.000+0000", "updated": "2018-11-30T21:01:49.000+0000" }, { "id": "453212", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "+1 for fixing the warning", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-12-17T09:53:38.000+0000", "updated": "2019-12-17T09:53:38.000+0000" }, { "id": "454431", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/11500", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-02-25T18:20:18.000+0000", "updated": "2020-02-25T18:20:18.000+0000" }, { "id": "454840", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "9_0_X: https://github.com/appcelerator/titanium_mobile/pull/11559", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-03-24T21:29:47.000+0000", "updated": "2020-03-24T21:29:47.000+0000" }, { "id": "454849", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed on Master. Waiting on Jenkins build.", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-03-25T13:51:58.000+0000", "updated": "2020-03-25T13:51:58.000+0000" }, { "id": "454893", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master and 9_0_X", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2020-03-27T17:53:03.000+0000", "updated": "2020-03-27T17:53:03.000+0000" }, { "id": "454894", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master and 9_0_X", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2020-03-27T17:53:03.000+0000", "updated": "2020-03-27T17:53:03.000+0000" }, { "id": "455086", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified on:\r\nMac OS: 10.15.4\r\nSDK: 9.0.1.v20200409100807, 9.1.0.v20200409073825\r\nAppc CLI: 8.0.0\r\nJDK: 11.0.4\r\nNode: 10.17.0\r\nStudio: 6.0.0.202003132109\r\nDevice: Pixel3(v10.0) emulator, ", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-04-10T21:19:20.000+0000", "updated": "2020-04-10T21:19:20.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }