Frappe Notifier
Push Notifications setup through Frappe Relay server
- Author: tridz-dev
- Repository: https://github.com/tridz-dev/frappe_notifier
- GitHub stars: 9
- Forks: 9
- License: GPL-3.0
- Category: Developer Tools
- Maintenance: Minimally Maintained
- Frappe versions: develop
Install Frappe Notifier
bench get-app https://github.com/tridz-dev/frappe_notifier
Add the Frappe Gems badge to your README
Maintain Frappe Notifier? Paste this into your README:
[](https://frappegems.com/gems/apps/tridz-dev/frappe_notifier)
About Frappe Notifier
Frappe Notifier
Push Notifications setup through Frappe Relay server
Prerequisites
- Google Cloud Authentication
- Firebase project with Firebase Cloud Messaging (FCM) enabled
- Frappe Bench environment
Installation
You can install this app using the bench CLI:
cd $PATH_TO_YOUR_BENCH
bench get-app $URL_OF_THIS_REPO --branch develop
bench install-app frappe_notifier
Setup Instructions
1. Firebase Service Account Configuration
- Generate a
firebase_service_account.jsonfile from your Firebase project - Place the
firebase_service_account.jsonfile in your bench directory - Generate Vapid Key Link
- Run the initialization script from the bench directory:
source ./apps/frappe_notifier/init.sh
2. Common Site Configuration
Add the push relay server URL to your common_site_config.json:
{
"push_relay_server_url": "https://your-site-domain.com"
}
Example:
{
"push_relay_server_url": "https://visaguy.erpcode.tridz.in"
}
3. Site Configuration
Add the hostname to the domains array in your site_config.json:
{
"domains": [
"your-site-domain.com"
],
"hostname": "your-site-domain.com"
}
Example:
{
"domains": [
"visaguy.erpcode.tridz.in"
],
"hostname": "visaguy.erpcode.tridz.in"
}
4. Push Notification Settings Verification
After installation:
- Navigate to Setup > Push Notification Settings
- Check "Enable Push Notifications"
- Verify that API Key and API Secret are generated
- If API Key/Secret are missing:
- Check if "Notification Manager" user exists
- If not, create the "Notification Manager" user
- Generate API key and secret for this user
5. Firebase Configuration in "Frappe Notifier Settings"
Add your Firebase project values to the Frappe Notifier Settings doctype:
Example Configuration:
- Project ID: your-firebase-project-id
- Vapid Public Key: your-vapid-public-key
- Firebase Config:
{
"apiKey": "your-api-key",
"authDomain": "your-project.firebaseapp.com",
"projectId": "your-project-id",
"storageBucket": "your-project.firebasestorage.app",
"messagingSenderId": "your-sender-id",
"appId": "your-app-id",
"measurementId": "your-measurement-id"
}
Note: Replace the example values with your actual Firebase project configuration. The values shown above are masked for security purposes.
Contributing
This app uses pre-commit for code formatting and linting. Please install pre-commit and enable it for this repository:
cd apps/frappe_notifier
pre-commit install
Pre-commit is configured to use the following tools for checking and formatting your code:
- ruff
- eslint
- prettier
- pyupgrade
License
MIT
Related Developer Tools apps for Frappe & ERPNext
- Frappe — Low code web framework for real world applications, in Python and Javascript
- Frappe Docker — Docker environment for developing, deploying, and running Frappe applications (ERPNext and custom apps) in production and development
- Builder — Craft beautiful websites effortlessly with an intuitive visual builder and publish them instantly
- Bench — CLI to manage Multi-tenant deployments for Frappe apps
- Frappe Ui — A set of components and utilities for rapid UI development
- Press — Full service cloud hosting for the Frappe stack - powers Frappe Cloud
- Gameplan — Open Source Discussions Platform for Remote Teams
- Doppio — A Frappe app (CLI) to magically setup single page applications and Vue/React powered desk pages on your custom Frappe apps.