Send notifications created in Frappe or ERPNext as push notication via Firebase Cloud Message(FCM)
Install the app into your site. (Refer)
Create a new Server Script with values given below
i. Script Type: DocType Event
ii. Reference Document Type: Notification Log
iii. DocType Event: Before Insert
iv. Script: frappe.call("fcm_notification.send_notification.send_notification", doc=doc)
To learn more about server scripts see this link.
Add your FCM server key in FCM Notification Settings. (Refer)
Link your device id to each user using the User Device DocType.
Optionally create a notification in Frappe/ERPNext. (Refer)
Run an event that triggers any notification. The notifcation will be send the respetive user via FCM if they have subscribed to it.
The development of this app was commissioned by Searchosis marketing Pvt Ltd