New answers tagged

0

Primarily, they use the Apple (APNS) or Google (FCM) push notification service. This is the primary mechanism because it's the only one supported by the operating system iOS / Android that will efficiently wake up the target app when the message is received. see https://stackoverflow.com/a/63443012/887092 The Push Notification itself can include data, but ...


4

There is no one answer to this, because over the years there have been many, many different chat programs and protocols, but there are a few basic ways of building it: Store and forward, with polling. This is the most basic setup: Alice sends a message addressed to Bob to a central server, which stores it in Bob's inbox; Bob's client periodically "...


5

You only need websockets if you want the communication to be initiated by the server, not the client. Unless I misunderstand, in your case, the client seems to initiate every communication. In that case, Ajax is sufficient and I would advise to stick with what you already know. You would need websockets if the underlying dataset updates (while the client isn'...


Top 50 recent answers are included