Michael Pierce
Posts: 0
Joined: Mon Apr 22, 2013 12:36 am

Push notifications for turn based game

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?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Push notifications for turn based game

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

Michael Pierce
Posts: 0
Joined: Mon Apr 22, 2013 12:36 am

Push notifications for turn based game

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.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Push notifications for turn based game

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.

Michael Pierce
Posts: 0
Joined: Mon Apr 22, 2013 12:36 am

Push notifications for turn based game

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Push notifications for turn based game

Lesson 3. Marina was referring to database videos.

Return to “Issues”