Push Notification Using Firebase and Google Cloud Messaging

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

+4
source share
1 answer

I understand that Firebase does not really work very well with GAE, so you can reconsider your options.

, , , . GAE , GAE.

GAE , , . GAE , .

, Firebase , , , , .

+1

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


All Articles