You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.
When a push message is received override the badge count number with setApplicationIconBadgeNumber() when app is in background.
Actual Behaviour
When a push message is received when the app is in the background nothing happens, the badge number wil be the badge number that is included in the push payload. When the app is open it works.
Reproduce Scenario (including but not limited to)
Steps to Reproduce
Click app to the background and send a push notification. The app wil show the badge count number included in the push payload and ignores the push.setApplicationIconBadgeNumber function.
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
iOS 9.3
(Android) What device vendor (e.g. Samsung, HTC, Sony...)
Cordova CLI version and cordova platform version
cordova --version #6.0.0
cordova platform version iOS #4.0.1
Plugin version
cordova plugin version | grep phonegap-plugin-push #1.6.0
When the app is running the log is showing me the data.count of the push payload, 1 in this case and it also shows ''succes".
When the app is in de background there are no logs shown.
The text was updated successfully, but these errors were encountered:
Expected Behaviour
When a push message is received override the badge count number with setApplicationIconBadgeNumber() when app is in background.
Actual Behaviour
When a push message is received when the app is in the background nothing happens, the badge number wil be the badge number that is included in the push payload. When the app is open it works.
Reproduce Scenario (including but not limited to)
Steps to Reproduce
Click app to the background and send a push notification. The app wil show the badge count number included in the push payload and ignores the push.setApplicationIconBadgeNumber function.
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
iOS 9.3
(Android) What device vendor (e.g. Samsung, HTC, Sony...)
Cordova CLI version and cordova platform version
Plugin version
Sample Push Data Payload
{"aps":{"alert":"Testing.. (1)","badge":1,"sound":"default"}}
Sample Code that illustrates the problem
Logs taken while reproducing problem
When the app is running the log is showing me the data.count of the push payload, 1 in this case and it also shows ''succes".
When the app is in de background there are no logs shown.
The text was updated successfully, but these errors were encountered: