I am currently trying to know when a device received a push notification, while the app is being in the background state. I have done research before posting this but I feel like we would need a clearer answer.
I can send and receive notifications perfectly but in fact, I would like to update the badge number of the app while it is the background state. But I find funny that there isn't any explicit answer to a functionality necessary for almost every app.
I hope someone could help me to solve this problem.