Skip to content

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

Open
DavidWiesner wants to merge 5 commits into
katzer:masterfrom
DavidWiesner:pure-fix-notification-update
Open

bug(android): update notification instead of recreating#249
DavidWiesner wants to merge 5 commits into
katzer:masterfrom
DavidWiesner:pure-fix-notification-update

Conversation

@DavidWiesner

@DavidWiesner DavidWiesner commented Feb 23, 2017

Copy link
Copy Markdown

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

katzer commented Feb 27, 2017

Copy link
Copy Markdown
Owner

@DavidWiesner Sounds reasonable. I will take a look.

@roeycohen

Copy link
Copy Markdown

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