{ "id": "173433", "key": "TIMOB-27073", "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": [], "resolution": null, "resolutiondate": null, "created": "2019-04-02T13:07:26.000+0000", "priority": null, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-05-09T23:18:49.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": [], "description": "After upgrading to Appcelerator version 7.5.0 this issue has been observed.\r\n\r\nWhen a user receives a push notification, rather than the number going up by 1 on their app icon badge, it is going up by 9-11.\r\n\r\nThis is occurring only in Android 8 and above devices.\r\n\r\nSteps:\r\n1. Trigger push notification\r\n2. Monitor badge count x push\r\n\r\nJust FYI- Looks like in Appcelerator documentation |https://docs.appcelerator.com/cloud/latest/?mobile=/api/PushNotifications\r\nIt says that badge count will not appear on app icon, but it's not the case for Android 8 and above because user can go to settings and enable the app icon badge count. (screenshot attached).\r\n\r\nHere is the json payload we are putting in arrow db for push notification.\r\n{code:js}\r\n{\r\n \"alert\": \"This is for badge testing count24\",\r\n \"title\": \"Hello world1\",\r\n \"vibrate\": true,\r\n \"icon\": \"notification\",\r\n \"badge\": \"+1\",\r\n \"sound\": \"default\"\r\n}\r\n{code}", "attachment": [ { "id": "66539", "filename": "Screenshot_20190403-160246_Settings.jpg", "author": { "name": "pravsrivastava", "key": "pravsrivastava", "displayName": "pravsrivastava", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-04-03T20:06:27.000+0000", "size": 337893, "mimeType": "image/jpeg" }, { "id": "66538", "filename": "Snip20190403_12.png", "author": { "name": "pravsrivastava", "key": "pravsrivastava", "displayName": "pravsrivastava", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-04-03T18:30:37.000+0000", "size": 560783, "mimeType": "image/png" } ], "flagged": false, "summary": "Push notification badge count is not incrementing by one (Android only)", "creator": { "name": "pravsrivastava", "key": "pravsrivastava", "displayName": "pravsrivastava", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pravsrivastava", "key": "pravsrivastava", "displayName": "pravsrivastava", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "447457", "author": { "name": "pravsrivastava", "key": "pravsrivastava", "displayName": "pravsrivastava", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Looks like for Android we need something similar to below code:\r\nTi.UI.iOS.setAppBadge(0);", "updateAuthor": { "name": "pravsrivastava", "key": "pravsrivastava", "displayName": "pravsrivastava", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-04-03T20:08:47.000+0000", "updated": "2019-04-03T20:08:47.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }