How to make such a thing.
Here we have a server, this server will pick up the picture from time to time and send it to the user ... The user should receive notification .
As I understand it, the service should work and get token , but how to make it so that service doesn’t constantly check if there is an update, but wait until it gets something from the server ... And as soon as it receives, it immediately starts the notification ?