-
-
Notifications
You must be signed in to change notification settings - Fork 469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setBadgeNumber not working #124
Comments
Please try building & running the example project to eliminate the cause of issue being in your own code. If you are able to reproduce the issue in the example project, please complete the issue template to provide full details of the issue such as affected platform/version, etc. |
I have tested it also with example project. Tested on Android Redmi Note 4 Thank You! |
OK, thanks for the info, I will add to list for investigation |
Upon investigation, the library used by this plugin to set the badge number on Android will not work on Android 8 and above. Therefore I'm going to remove |
What is the logic of this? lot of time users entering to app by ignoring the popup notification, and the app should have the way to change the badge icon by internal logic that depend on user action. |
As the StackOverflow post I've referenced makes clear, there is no way to modify the badge icon count on Android 8 and above without displaying a notification. |
This StackOverflow post don't seem to be Official answer. |
ShortcutBadger does work on a subset of Android devices and this change has broken existing uses of this plugin. Surely it would be better to leave the Android functions in place while updating the README to explicitly say that is not supported on all Android devices? |
I am trying to set badge with my app logic, and it is not working. it's reseting the current badge.
` window.FirebasePlugin.setBadgeNumber(myCount, function () {
alert('success')
},
function (err) {
alert(err)
})
the function is running and display the alert 'success' on done event, but the badge is not set to my request number.
The text was updated successfully, but these errors were encountered: