$ 38.44
Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 168 |
Technical Name |
pits_fcm_notifications |
License | OPL-1 |
Website | https://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 :-
Expected Results
- Success
- Failure
- Unauthorised
When inspecting the logs you can see the status as
And in the target device the notitification will be generated
For incorrect Server Key the status will be
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
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
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
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.
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
Report comment
Any abuse of this reporting system will be penalizedThere are no ratings yet!
can also be used for mobile
Notification also arrives on the android mobile