Page 1 of 1

Push notifications for turn based game

Posted: Thu Apr 25, 2013 10:38 am
by Michael Pierce

Is it possible to send a push notification from one user to a specified user to inform them it is their move in a turn based game?


Push notifications for turn based game

Posted: Thu Apr 25, 2013 12:15 pm
by Maryna Brodina

Hello! It would be easier to use DB services - to save data in DB, then check every X seconds updates using JS.


Push notifications for turn based game

Posted: Thu Apr 25, 2013 12:48 pm
by Michael Pierce

I'm not sure what you mean by use DB services to save data in DB. I am currently using Appery DB to store user and game data. I have a field that will be updated with whose turn it is based on a "send move" click event. Essentially, I just want to send a notification the username that is listed in the whose turn field when it is updated or when the "send move" click event returns a success.


Push notifications for turn based game

Posted: Thu Apr 25, 2013 1:59 pm
by Maryna Brodina

There is no possibility to send a notification the username. Instead you have to use JS where you set timer and every X seconds send requests to DB to check are there any updates. If there are updates - do the action you need, if no - continue send requests every X seconds.


Push notifications for turn based game

Posted: Thu Apr 25, 2013 2:06 pm
by Maryna Brodina

This video should help http://docs.appery.io/videos/


Push notifications for turn based game

Posted: Thu May 02, 2013 10:42 pm
by Michael Pierce

there are a bunch of videos here, which one applies to push?


Push notifications for turn based game

Posted: Thu May 02, 2013 10:51 pm
by maxkatz

Lesson 3. Marina was referring to database videos.