Which is the most correct way to obtain a background worker that ask someting to a server, in order to obtain new data? The perfect example is WhatsApp.
I wrote the protocol that download data yet. I Miss the part that let run my code in background. I've tried with background Fetch yesterday but it doesn't want to work.
This is what i'm trying to achieve:
I need to write a service that every 60 seconds checks some data on a remote server and, if necessary, download a few bytes notifying the user.
The service must be constant, stable in time.
Assuming that i can't use the push server because the Apps need to work alone
Is there any way to do that?