I am trying to build a simple chat messaging app with Android.
I have an Android Studio project with a Cloud Endpoints module. I use this Cloud Endpoints API which is published on my Google App Engine project to communicate with my Cloud SQL database. I can do things like insert rows or delete them. The Cloud SQL database has a table in it called "message" and it is very simple with
message ------- id sender receiver datetime
Now I want to integrate push notifications using Google Cloud Messaging.
I saw some tutorials such as this one and it explained sort of how it works.
What I do not get is how I can I should set things up with my Cloud Endpoints and my Cloud SQL database so that whenever I write a new row to "message", a push notification is now sent to whatever user it is being sent to.
I know you can use Parse.com for this but how would I do it/set it up using Android Studio + Cloud Endpoints + Google Cloud Messaging, all of which are published on Google App Engine. i.e. how does Snapchat do it (who use Google App Engine)?