I want to send a push notification in my application (Android) using Google Cloud Messaging. I am using firebase for the backend. Since firebase does not support built-in push notification, I use the Google App Engine.
In Google App Engine, I have no idea. I am now using the template provided by Google to send push notifications.
Google Cloud Messaging Template Github
So far, I have deployed my application to Google App Engine, and I can send a push notification to all registered devices (from the Internet). The HTML page I get when I use the GCM template.
What I want to do is Listen to the Firebase data change and send a push notification to a user who is not connected to the network or has closed the application.
How can I run a servlet in the background so that it continues to run in the background and sends a push to a user who is not connected to the network.
Since I only have the notification logic in the Google App Engine application, I have to use a servlet or struts.
Thanks at Advance
source
share