Skip to content
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

bug(android): update notification instead of recreating #249

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

DavidWiesner
Copy link

@DavidWiesner DavidWiesner commented Feb 23, 2017

On Android the notification will always recreated when updating e.g. the text with cordova.plugins.backgroundMode.configure({ text: "Upload 2 of 20 images" });.
This will result in a flickering notification because the old notification will be replaced with a new one. If you only want to update elements in the notification you have to keep the old Notification.Builder.

@katzer
Copy link
Owner

katzer commented Feb 27, 2017

@DavidWiesner Sounds reasonable. I will take a look.

@roeycohen
Copy link

cordova.plugins.backgroundMode.configure is not documented in the readme...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants