Imagine that I would like to do an app where users can chat, but visually - they would paint stuff on the screen. The screen would be split in half, and each participant would draw something on their half, and it would appear to the other participant.
Sketching on the touch screen should be pretty straightforward, also providing user with color/brush selection, eraser, etc. I would need to capture user input into some kind of messages, each of which would describe a sketch action that would need to be replayed on the remote participant.
But how would these two users communicate? I'm thinking about JSON+AppEngine+XMPP.
- I would serialize the sketch actions from
client A
into JSON and push them onto AppEngine, that would store them. Is this approach - store stuff on server - better than P2P connection? It would possibly add significant lag due to phone A->AppEngine->phone B round-trip - How would
client B
retrieve the message? I can't have constant open connection to AppEngine. There is something about push notifications in this question. If XMPP doesn't work, would it need to poll the server?