Trying to figure out how your turn-based API is intended to work.
As far as I have figured out, no event is triggered to the opponent (only to yourself) on any of the API calls
(Start Match, Resign, Submit Move)?
E.g.
I call createRandomChallenge.
To know when I am paired up with an opponent I have to call getMatches periodaically until it doesn’t return #results>0 ?
I do not want to use push alerts because the main idea is to have an Online screen where users would come to play when interested in online game.
Also, when I call startMatch nothing is sent to the opponent (I mean no event will be triggered on the opponent side) ?
It is the resposibility of the opponent to call e.g. getMatchDetails to know the state of the game ?