Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tridz-dev/erpnext_fcm

Firebase Cloud Messaging integration for sending notification created in ERPNext/Frappe to users as push notification.
https://github.com/tridz-dev/erpnext_fcm

erpnext erpnext-application fcm firebase-cloud-messaging frappe frappe-framework push-notifications

Last synced: 2 months ago
JSON representation

Firebase Cloud Messaging integration for sending notification created in ERPNext/Frappe to users as push notification.

Awesome Lists containing this project

README

        

# FCM Notification for ERPNext
Send notifications created in Frappe or ERPNext as push notication via Firebase Cloud Message(FCM)

### Steps to use the app:

1. Install the app into your site. [(Refer)](https://frappeframework.com/docs/v13/user/en/bench/frappe-commands#app-installation)

2. 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.](https://frappeframework.com/docs/v13/user/en/desk/scripting/server-script)

2. Add your FCM server key in FCM Notification Settings. [(Refer)](https://intercom.help/push-monkey/en/articles/1649592-how-to-set-up-your-fcm-keys-previously-called-gcm)

3. Link your device id to each user using the **User Device** DocType.

4. Optionally create a notification in Frappe/ERPNext. [(Refer)](https://docs.erpnext.com/docs/v12/user/manual/en/setting-up/notifications)

5. Run an event that triggers any notification. The notifcation will be send the respetive user via FCM if they have subscribed to it.

## Supporting Organization

The development of this app was commissioned by [Searchosis marketing Pvt Ltd](searchosis.com)