It’s generally a common question.
I wonder how do mail apps implement functionality of email-receiving?
I need to implement a simple sync between two devices(for example) using my web service.
Imagine a to do list app.
Is it possible to implement such a functionality: device1 makes an entry,then sends a message to webservice, webservice informs device2 that changes took place and device2 adjusts its data and displays that entry?
Basically there are 2 ways:
Option 1 is better for your todo app because you don’t need real-time accuracy. The option 2 is better for a chat application where you don’t want to wait for the message.