GCM and chat application

I plan to make a chat application through which the user can send and receive text and multimedia - audio, images and video. For simplicity, I decided to use the application engine with GCM. Downstream execution with GCM seems to work well (for text messages) using the provided example tutorial and the Android Studio template. When I tried to climb up, I did not receive a message. It may be very trivial, but someone can point me to a good textbook or book about it. Any suggestions?

Used for downstream: https://github.com/GoogleCloudPlatform/gradle-appengine-templates/tree/master/GcmEndpoints And this is for upstream: https://developers.google.com/cloud-messaging/upstream

+7
android google-app-engine google-cloud-messaging
source share
1 answer

I had to add the @ApiMethod (name = "sendMessage") sendMessage method in the MessagingEndpoint class created using the Studio template. After that, I was able to use sendMessage api to send a message back to the application engine server, which is connected to GCM, and this message was again returned on my device.

+5
source share

All Articles