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

Kiran0791 picture Kiran0791  路  3Comments

sungjinoh picture sungjinoh  路  3Comments

sunnyyants picture sunnyyants  路  4Comments

Benzer1406 picture Benzer1406  路  3Comments

edwinharly picture edwinharly  路  3Comments