Following on from my thread to get push notification working when the app is in the background: https://www.b4x.com/android/forum/t...n-only-works-when-app-is-in-foreground.82928/
When I get the notification the app icon badge number is not increased. Should that not happen automatically?
I tried to use background fetch (https://www.b4x.com/android/forum/threads/background-fetch-downloads.56022) to update the badge number using:
But the Application_FetchDownload event never fires.
So how do I update the app icon badge number when the app is in the background or is the OS supposed to do it? Maybe I need to send something else when I send the JSON to fcm.googleapis.com/fcm/send?
When I get the notification the app icon badge number is not increased. Should that not happen automatically?
I tried to use background fetch (https://www.b4x.com/android/forum/threads/background-fetch-downloads.56022) to update the badge number using:
B4X:
App.ApplicationIconBadgeNumber = 123
But the Application_FetchDownload event never fires.
So how do I update the app icon badge number when the app is in the background or is the OS supposed to do it? Maybe I need to send something else when I send the JSON to fcm.googleapis.com/fcm/send?