I am having the requirement in my project, that nodejs server has to send the notification (kind of push notification) to our mobile, and user( or mobile holder ) have to act on that notification like processing some action, and post back to the nodejs server. As I am very new to the android development, I want to know that, 1. Is it possible to post notification to any android phone by using device ID kind of unique ID from nodejs ? 2. Is it possible to send response from android to nodejs server, as a response to the push notification? 3. I came across the term called Google cloud messaging ( or ) firebase cloud messaging. Is it helps to my requirement ?
-
push notifications work on an operating system level and not on a per-app or per-website level, so that the device doesn't have to spend lots of power for maintaining a connection with your server. That is why you effectively have to use Google's service for push notifications. Push notifications are unidirectional, but once your app receives a notification it can establish a direct connection with your server.amon– amon2019-01-22 18:06:31 +00:00Commented Jan 22, 2019 at 18:06
-
is it possible to read the push notification by an android app, and establish the connection with server through that application.Naveen Kumar– Naveen Kumar2019-01-25 04:50:32 +00:00Commented Jan 25, 2019 at 4:50
-
yes, exactly! For example, a messaging app may receive a push notification that wakes the app. The app could then connect to the server to load any media like images from a server; those would be too big for the push notification.amon– amon2019-01-25 09:23:21 +00:00Commented Jan 25, 2019 at 9:23
Add a comment
|