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?
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
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?
Hello! It would be easier to use DB services - to save data in DB, then check every X seconds updates using JS.
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.
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.
This video should help http://docs.appery.io/videos/
there are a bunch of videos here, which one applies to push?
Lesson 3. Marina was referring to database videos.