Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
Discuss (mail)
|
Lines of code | 468 |
Technical Name |
mail_push_notification |
License | LGPL-3 |
Website | https://www.cybrosys.com |
Versions | 15.0 16.0 17.0 |
Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
Discuss (mail)
|
Lines of code | 468 |
Technical Name |
mail_push_notification |
License | LGPL-3 |
Website | https://www.cybrosys.com |
Versions | 15.0 16.0 17.0 |

Push Notification From ChatBox
Push Notification From ChatBox Provide Alerts To Users When They Receive New Message From The Chatter.

Key Highlights
Real-time Alerts:
Users receive instant notifications on their devices (such as desktop or mobile) as soon as a new message arrives in their Odoo inbox.
Message Preview:
This involves crafting concise and compelling content that provides users with a clear understanding of the notification's purpose.
Reduced Response Time:
With instant notifications, users can respond promptly to important messages, improving communication efficiency and effectiveness
Compatible with both Odoo 17.0 Community and Enterprise Editions.
Privacy and Security:
The notifications are secure and respect user privacy, as they are confined within the Odoo environment.

First go to Firebase console Create a Project if you don't have any project.

Set the name for the project and Continue

Make sure that enabled the Google Analytics for this project and click the Continue and Create the project.

Then you need to create web app in that project for that click the web app icon in the project like shown below.

Set the name for the app and register the app.

Here you can see all the details we need you can copy them and after that select npm and click the Next Button

After that you can click Next Button for Install Firebase CLI

After that click the Continue to console

After that you can see the app inside the project and click on the setting icon of the app to see the details of that app

You can see the credentials(apiKey, authDomain, projectId, storageBucket, messagingSenderId, appId, measurementId) in the General --> Your apps


Now we need to create a Vapid goto the Cloud Messaging --> Web configuration --> Generate Key pair

We can see the Vapid here.

After that navigate to Firebase Admin SDK under Service accounts, select Python and Generate new private key. It will generate a json file containing all remaining credentials.

Downloaded json file.

Goto the General Settings --> Firebase Push Notification --> enable the 'Enable Push Notification' then you can set the credentials.

Its very important that You must Allow the notification in the web browser

If you are using firefox browser you need to allow the notification from clicking top of the browser and allow like in the above image

If you are using Brave browser you need to enable Google Services for push messaging for that goto the brave://settings/privacy in brave and enable 'Use Google services for push messaging' like shown in the above image

After Allowing the notification access in the browser you can click the "TEST CONNECTION" Button

Then you can see a notification on the system, and you can see a green popup

After that you can send message from the chatBox module or in the discuss module

Then you can see a popup notification in the other user and when you click on that it will be redirected to the odoo instance
-
Push Notification From ChatBox in Odoo provide instant alerts to users when they receive new messages within the platform
-
With Push Notification From ChatBox, users can respond promptly to important messages,improving communication efficiency.
Initial Commit for Push Notification From ChatBox
Related Products
Our Services

Odoo Customization

Odoo Implementation

Odoo Support

Hire Odoo Developer

Odoo Integration

Odoo Migration

Odoo Consultancy

Odoo Implementation

Odoo Licensing Consultancy
Our Industries

Trading
Easily procure and sell your products

POS
Easy configuration and convivial experience

Education
A platform for educational management

Manufacturing
Plan, track and schedule your operations

E-commerce & Website
Mobile friendly, awe-inspiring product pages

Service Management
Keep track of services and invoice

Restaurant
Run your bar or restaurant methodically

Hotel Management
An all-inclusive hotel management application
Support
Got questions or need help? Get in touch.
Say hi to us on WhatsApp!
Please log in to comment on this module
Report comment
Any abuse of this reporting system will be penalizedNot working on Odoo 17
I have set up everything exactly like instructed, and when I click the test button it says everything is good. But when I try to send a notification from Firebase, I don't receive it. If I go to Analytics it says 0 users.
I got this error when I tried activating the module
Invalid Operation
Close
Unable to install module "mail_push_notification" because an external dependency is not met: Python library not installed: firebase_admin
Re: I got this error when I tried activating the module
It seems that the Python package 'firebase_admin' is not currently installed. To use the module, you would need to install this package. You can use the following command to install the package
Command: pip install firebase-admin
FirebaseError: Messaging: This browser doesn't support the API's required to use the firebase SDK. (messaging/unsupported-browser).
I use iOS with browser Safari/Chorm and i get this error "FirebaseError: Messaging: This browser doesn't support the API's required to use the firebase SDK. (messaging/unsupported-browser)."
in Controller /firebase-messaging-sw.js, i use:
in manifest file, i use:
i use
Re: FirebaseError: Messaging: This browser doesn't support the API's required to use the firebase SDK. (messaging/unsupported-browser).
As of now, Firebase Cloud Messaging does not support web push notifications on Safari on iOS. Unfortunately, Safari on iOS does not support the APIs required by Firebase for web push notifications. You may consider using one of the supported browsers for your notifications.
UncaughtPromiseError > FirebaseError
Uncaught Promise > Messaging: This browser doesn't support the API's required to use the firebase SDK. (messaging/unsupported-browser).
FirebaseError: Messaging: This browser doesn't support the API's required to use the firebase SDK. (messaging/unsupported-browser).
u@https://www.gstatic.com/firebasejs/8.4.3/firebase-messaging.js:1:3087
@https://www.gstatic.com/firebasejs/8.4.3/firebase-messaging.js:1:3548
@https://www.gstatic.com/firebasejs/8.4.3/firebase-messaging.js:1:40708
@https://www.gstatic.com/firebasejs/8.4.3/firebase-app.js:1:9683
@https://www.gstatic.com/firebasejs/8.4.3/firebase-app.js:1:7298
@[native code]
@https://4488-2402-800-6131-ba0-91d0-e859-ccb3-dae.ngrok-free.app/web/assets/bdf58c9/web.assets_web.min.js:15738:697
promiseReactionJob@[native code]
Re:
Hello, can you please provide more information about the browser you are using and when the issue occurred?
You can send an email to odoo@cybrosys.com