I am trying to implement something similar to facebook's like feature. I have a feed which shows posts and users can like or dislike them. I don't want users to wait until the like is recorded in the server and then show the same in their feed.
What I am trying to implement is something using android services, which records all the likes/dislikes and schedules a http call to the server to record it.
Currently this is working even if the app is in background, but not when the application is closed.
I just wanted to know what is the best way to implement such a task even when the application is closed ?