Android push notifications using Google App Engine

I am currently developing an application in which users create messages that are stored on a server. When another user shows interest in the message by clicking the button, I want to notify the author of the message using push notifications. I have already set up a data warehouse using cloud endpoints using the Google App Engine. Anyway, can I use these endpoints to implement push notifications? If not, is there another easy way to implement push notifications based on my current setup? I already read about Google Cloud Messaging on the developers page, but was somewhat confused. I tracked the registration id, but I don't know where to go from there. Thanks in advance.

+6
source share
1 answer

You can use the HTTP interface for GCM servers as described in this Android developers page .

The easiest way to do this is to download Google Cloud Messaging for the Android library using the Android SDK Manager, which will provide you with a bank that can handle the complexity of setting up requests and responses to GCM.

At the bottom of this page, there is an example Java push notification application in App Engine that you can use to familiarize yourself with sending push notifications and then adapt to your needs.

+6
source

Source: https://habr.com/ru/post/951864/


All Articles