In my app, I want a worker to request my server every 1 minute using ( PeriodicWorkRequest ) whether there are new messages for the user.
The transmission is therefore kept very small and always contains the same json object that contains the important values. This looks like this:
{"1":**7**,"2":**0**,"3":**215**,"4":**0**}
In the WorkManager documentation, a minimum period of 15 minutes is specified for the periodic request. but not every app uses "firebase" and still gets all messages directly. especially the server query is important when the app is closed. Are there any exceptions or other alternatives?
I've been looking for a lot but haven't found a solution so far and hope someone can help me.