PITS Firebase Cloud Message Notifications

by
Odoo

38.44

v 13.0 Third Party 24
Live Preview
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 168
Technical Name pits_fcm_notifications
LicenseOPL-1
Websitehttps://www.pitsolutions.ch
Versions 16.0 11.0 12.0 10.0 15.0 13.0 14.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 168
Technical Name pits_fcm_notifications
LicenseOPL-1
Websitehttps://www.pitsolutions.ch
Versions 16.0 11.0 12.0 10.0 15.0 13.0 14.0

FCM Notifications

Firebase Cloud Messaging, formerly known as Google Cloud Messaging, is a cross-platform cloud solution for messages and notifications for Android, iOS, and Web applications, which currently can be used at no cost. The service is provided by Firebase, a subsidiary of Google. It will give you the luxury to inform your user in real time about the new email, task, activity or any other data to get notified. It works on the principle of down streaming messages from FCM servers to user's app and upstream messages from user's apps to FCM servers.

PIT Solutions is a global IT services company with their Head Quarters in Switzerland. They focus on offering high end ecommerce solutions to their clients. For more details, please check PIT Solutions

Please note that the extension is priced at 50 EUR. If you need setup and integration done by PIT Solutions, there is an additional one time fee of 50 EUR.

Contact us for Odoo support, query, customization, implementation, Version Migration, etc.

  • Website Contact : https://www.pitsolutions.ch/en/contact/
  • Write us Mail: kontakt@pitsolutions.ch

Product Description

FCM Notifications from PIT Solutions can be used to send Push Notifications to the registered iOS, Andriod, Web(Javascript), C++ and Unity applications with the help of Firebase Cloud Messaging. This module works with an external python library "pyfcm".

Usage

After installing the module you can generate FCM Notifications based on Partners as follows

Partners.generate_fcm_notification(message_title='message_title', message_body='message_body')

Where "Partners" is a record set of model res.partner

Please note that FCM Notifications will be generated only if valid Registration Tokens are defined under each Partner.

For example :-

Sample Request

Expected Results

  1. Success
  2. When inspecting the logs you can see the status as

    Success

    And in the target device the notitification will be generated

    Message
  3. Failure
  4. Failure
  5. Unauthorised
  6. For incorrect Server Key the status will be

    Unauthorised

Installation Instructions

For this module you need to install pyfcm.
Open the terminal and run: sudo pip3 install pyfcm

Firebase Configuration

Before starting, please go through Firebase Cloud Messaging

If you are already having Project and App then click here

If you are not having Project and App, please go to the Firebase Console

  • Step 1 : Create a Project.
  • Step 2 : Add an App.

Then go to App Setting --> Cloud Messaging

Copy the Server Key

Firebase

Device Registration Token can be generated based on your end point technology (Web, Android, iOS, etc.). The method is different for different technologies. For more details, please go through Firebase Cloud Messaging. You can find the documentation for different technologies separately.

Odoo backend configuration

Go to Settings --> General Setting --> FCM Notifications

Enter the Server Key here

General Settings

By clicking the "FCM Testing" link you will redirect to a quick testing form.

Please note that this will work only if you configured registration token against the curresponding partner as explained in the next step

FCM Testing

Device Registration Tokens

Enter the Device Registration Tokens against each Partner.

Go to Partner --> FCM Device Tokens

Enter the Device Registration Token. You can enter tokens of multiple devices.

Device Tokens
Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
There are no ratings yet!
can also be used for mobile
by
Diego Terrazas
on 10/13/20, 4:35 PM


Notification also arrives on the android mobile