Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27073] Push notification badge count is not incrementing by one (Android only)

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
Reporterpravsrivastava
AssigneeEric Merriman
Created2019-04-02T13:07:26.000+0000
Updated2019-05-09T23:18:49.000+0000

Description

After upgrading to Appcelerator version 7.5.0 this issue has been observed. When 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. This is occurring only in Android 8 and above devices. Steps: 1. Trigger push notification 2. Monitor badge count x push Just FYI- Looks like in Appcelerator documentation |https://docs.appcelerator.com/cloud/latest/?mobile=/api/PushNotifications It 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). Here is the json payload we are putting in arrow db for push notification.
{
  "alert": "This is for badge testing count24",
  "title": "Hello world1",
  "vibrate": true,
  "icon": "notification",
  "badge": "+1",
  "sound": "default"
}

Attachments

FileDateSize
Screenshot_20190403-160246_Settings.jpg2019-04-03T20:06:27.000+0000337893
Snip20190403_12.png2019-04-03T18:30:37.000+0000560783

Comments

  1. pravsrivastava 2019-04-03

    Looks like for Android we need something similar to below code: Ti.UI.iOS.setAppBadge(0);

JSON Source