No event is fired to the opponent on anything?

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 ?

Hi,

The thing is, there isn’t a technical way for the server to communicate (reach) to the client to update it, unless you use push.

So the only way is for the clients to contact the server and ask for information, as in this case to get the match details.

You see what I mean?

Thanks

-Mohamed

Hi Mohamed,

yes I understand what you mean.

I have an almost ready multiplayer module in PubNub and there I can get messages from the opponent.

Is this the same way push works in Corona Cloud ?

What I meant when I said I would not like to use push is, I would not like that the “default” graphical notification is displayed.

Is it possible I only get some kind of notification in my code and then do whatever I need ?

Hi,

In Corona Cloud we don’t have any UI elements, its all pure network calls.

So at it core, you are going to receive push message notifications with the payload that you decide, then when you receive it, you can do whatever you want with it.

Thanks

-Mohamed

Hi,

The thing is, there isn’t a technical way for the server to communicate (reach) to the client to update it, unless you use push.

So the only way is for the clients to contact the server and ask for information, as in this case to get the match details.

You see what I mean?

Thanks

-Mohamed

Hi Mohamed,

yes I understand what you mean.

I have an almost ready multiplayer module in PubNub and there I can get messages from the opponent.

Is this the same way push works in Corona Cloud ?

What I meant when I said I would not like to use push is, I would not like that the “default” graphical notification is displayed.

Is it possible I only get some kind of notification in my code and then do whatever I need ?

Hi,

In Corona Cloud we don’t have any UI elements, its all pure network calls.

So at it core, you are going to receive push message notifications with the payload that you decide, then when you receive it, you can do whatever you want with it.

Thanks

-Mohamed