I'm trying to create a game using Ionic and Parse. There are several game rooms that users can join.
My problem comes when a user creates a game(which saves a 'Game' class in Parse), the game shouldn't start until other users have joined the game(which adds the User to the 'users' array).
What is the best way to go about notifying other users about changes in the Parse database? Is there a way that Parse can notify users about changes in schema?
Right now when a user creates a game, an $ionicLoading appears and is waiting for an event; I am not sure what event should even occur.
I know $watch and $broadcast/$on would only notify that same user about changes in their own scopes, but I need the game's creator to be notified when others join the Game/ enter the Game's users array.
I've also looked into other backend options, such as push notifications(both Parse and Ionic) and building a REST API, but I'm not sure if that is completely necessary.