I read a lot of things about local alerts and how to update the application icon number.
I want to update this icon at midnight and set its value to a number that I cannot know until midnight. Therefore, I would like, if possible, to run the function at midnight, which will update / load some data, check the number to display and display it on the icon.
Of course, the display number does not apply to the displayed number and may be lower or higher.
It is expected that it will work: - When the application is in the background - When the application is in the foreground - When the application is not running
Do you know a way to do this, even partially? If this is not possible, let me say that I can find out that the badges are already before midnight ... Would it help you with a labor answer? It is not necessary, but if I have no choice for this work, I plan to write tons of useless code to do this ...
source
share