Ir al contenido
Menú
Se marcó esta pregunta
4 Respuestas
795 Vistas

I'm currently trying to configure push notifications. I've successfully enabled Firebase, but I can't find any section within Odoo where I can enter the key pairs generated from Firebase (e.g., the server key or VAPID key). Could anyone assist me with this?

Avatar
Descartar
Autor Mejor respuesta

Thank you for your response. However, the installation has already been completed, but I don't see inmy database you're referring to.


Avatar
Descartar
Mejor respuesta

You'll need to install the Social Marketing app (social).

You can then find the option to connect you Firebase account under
Settings -> Website -> Email & Marketing --> Use your own Firebase account

Avatar
Descartar
Mejor respuesta

Hello There,

Based on your question, you're trying to set up Firebase Cloud Messaging (FCM) for Odoo push notifications but can't find where to input the Firebase credentials. Here's how to properly configure this in Odoo:

Where to Enter Firebase Keys in Odoo

For Odoo Online (SaaS)
  1. Go to Settings → General Settings → Discuss
  2. Scroll to the Mobile App section
  3. Enter your Firebase credentials in these fields:
    • Firebase Project ID
    • Firebase Web API Key
    • Firebase App ID
    • Firebase Messaging Sender ID
    • Firebase VAPID Key
For On-Premise/Enterprise
  1. Navigate to Settings → Technical → Parameters → System Parameters
  2. Create/update these parameters:
    mail_mobile_firebase_web_api_key = YOUR_API_KEY
    mail_mobile_firebase_project_id = YOUR_PROJECT_ID
    mail_mobile_firebase_messaging_sender_id = YOUR_SENDER_ID
    mail_mobile_firebase_app_id = YOUR_APP_ID
    mail_mobile_firebase_vapid_key = YOUR_VAPID_KEY

Step-by-Step Setup

  1. Get Your Firebase Credentials:
    • Go to Firebase Console
    • Select your project → Project settings → General
    • Under "Your apps", find the web app configuration
  2. Configure Odoo:
    • Paste the values from Firebase into the corresponding Odoo fields
    • Save the settings
  3. Enable Service Worker (For Web Push):
    • Go to Settings → General Settings → Discuss
    • Enable "Web Push Notifications"
    • Set notification timeout (default 7 days recommended)
  4. Test the Configuration:
    • Send a test notification from Discuss app
    • Check browser console for errors (F12 → Console)

Common Issues and Solutions

  1. "Not registered on FCM" error:
    • Ensure your Odoo server URL is whitelisted in Firebase Console:
      Authentication → Settings → Authorized domains
  2. Notifications not showing on mobile:
    • Verify you've uploaded the Firebase config files:
      • google-services.json (Android)
      • GoogleService-Info.plist (iOS)
  3. VAPID Key Not Working:
    • Generate new keys if needed:
      openssl ecparam -genkey -name prime256v1 -out private_key.pem
      openssl ec -in private_key.pem -pubout -outform DER|tail -c 65|base64|tr -d '=' |tr '/+' '_-'

Additional Requirements

  • Odoo must be served over HTTPS
  • For iOS: Additional Apple Developer configuration needed for APNs

Enterprise version required for full mobile app functionality

🚀 Did This Solve Your Problem?

If this answer helped you save time, money, or frustration, consider:

✅ Upvoting (👍) to help others find it faster

✅ Marking as "Best Answer" if it resolved your issue

Your feedback keeps the Odoo community strong! 💪

(Need further customization? Drop a comment—I’m happy to refine the solution!)

Avatar
Descartar
Autor

Again i don't find any option in my odoo instance. I am a paid user btw, what you suggested here.

Here's how to resolve this:

Why You're Not Seeing Firebase Options
Module Requirement:

The full push notification functionality requires the "web_push" module

This is automatically included in Odoo Enterprise but needs to be enabled

Possible Causes:

The module isn't installed

Your Odoo version may have a different configuration path

Your user permissions may restrict access

Solution Steps
1. Verify Module Installation
Go to Apps → Update Apps List

Search for "web_push" or "Push Notifications"

If found but not installed, click "Install"

2. Alternative Access Path
Try accessing through:

Settings → Technical → Parameters → System Parameters

Look for these keys (create if missing):

web_push_vapid_private_key

web_push_vapid_public_key

3. For Odoo Enterprise Users
As a paying customer:

Contact Odoo Support directly through:

Your Odoo.com dashboard → Support

Or via the Help menu in your Odoo instance

Request them to:

Verify your push notification configuration

Ensure all required modules are properly enabled

Publicaciones relacionadas Respuestas Vistas Actividad
0
jul 25
59
2
jul 25
737
1
jul 25
177
0
jul 25
129
5
jul 25
4006