React-native-push-notification: android setApplicationIconBadgeNumber doesn't work

Created on 7 Jun 2018  路  3Comments  路  Source: zo0r/react-native-push-notification

PushNotification.setApplicationIconBadgeNumber(6) doesn't work in android

Most helpful comment

@Gp2mv3 The docs states that it uses ShortcutBadger, but it doesn't state anything about you having to manually use it.

Looking at the source code, it seems like this library does all the required work in order to use ShortcutBadger when this function is used in Android.

Perhaps, the documentation is not clear enough. What steps are required to have PushNotification.setApplicationIconBadgeNumber to work in Android? I'm facing the same issue.

All 3 comments

As stated in the README, you need to use ShortcutBadger: https://github.com/leolin310148/ShortcutBadger

@Gp2mv3 The docs states that it uses ShortcutBadger, but it doesn't state anything about you having to manually use it.

Looking at the source code, it seems like this library does all the required work in order to use ShortcutBadger when this function is used in Android.

Perhaps, the documentation is not clear enough. What steps are required to have PushNotification.setApplicationIconBadgeNumber to work in Android? I'm facing the same issue.

This is still an issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cidevant picture cidevant  路  3Comments

cookienawer picture cookienawer  路  3Comments

anativ picture anativ  路  3Comments

TfADrama picture TfADrama  路  3Comments

ssolida picture ssolida  路  3Comments