How to send device to device push notification in

2019-09-18 07:28发布

问题:

I am new to android firebase and notifications. I have created my basic android application in which user(s) of type say x sends a request to user of type y. The request gets generated fine and user of type y can click on the pending request button to see the list of request from user x but i want to inform the user type y through push notification when x generates a request.

Any tutorial or detailed explanation with code would be really helpful as I could not find anything useful til now

回答1:

You can not generate notification from mobile, Notification is fared from Backed, It is possible when you want to generate push notification then first call webservice of database and database fired notification to particular phone device

how to integrate pushnotification in android

step wise description