SlideShare a Scribd company logo
1 of 11
Download to read offline
Push Notifications for Magento 2 © Meetanshi
Push Notifications for Magento 2
User Guide
Table of Content
1. Extension Installation Guide
2. Firebase API Registration
3. Configuration
4. Manage Push Notifications
5. Give Push Notification Consent from Frontend
6. Manage Subscribers
7. Push Notifications to Subscribers
Push Notifications for Magento 2 © Meetanshi
1. Extension Installation
• For Magento Marketplace Customers
o Find the Composer name and version of the extension in the extension’s composer.json file.
o Login to your SSH and run:
▪ composer require meetanshi/magento2-push-notifications
o Enter your authentication keys. Your public key is your username; your private key is your
password.
o Wait for Composer to finish updating your project dependencies and make sure there aren’t
any errors.
o To verify that the extension installed properly, run the command:
▪ php bin/magento module:status Meetanshi_PushNotification
o By default, the extension is probably disabled.
o Enable the extension and clear static view files:
▪ php bin/magento module:enable Meetanshi_PushNotification --clear-static-content
▪ php bin/magento setup:upgrade
▪ For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
▪ For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f
▪ php bin/magento cache:flush
• For Meetanshi Customers
o Extract the zip folder and upload our extension to the root of your Magento 2 directory via FTP.
o Login to your SSH and run below commands step by step:
▪ php bin/magento setup:upgrade
▪ For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
▪ For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f
▪ php bin/magento cache:flush
Note: Immediately after installing the extension, paste API Key, auth domain, database URL, project ID,
storage bucket, sender ID, app ID and measurement ID to firebase-messaging-sw.js file and upload it to
the Magento root folder to make the extension work.
Push Notifications for Magento 2 © Meetanshi
2. Firebase API Registration
The extension uses Firebase API to send push notifications.
• To get the Firebase API details, go to https://console.firebase.google.com/ and click on “Create a
Project”.
Push Notifications for Magento 2 © Meetanshi
• Enter the project name, accept the Firebase terms and click Continue.
• Enable or disable Google Analytics for the project and click Continue.
Push Notifications for Magento 2 © Meetanshi
• Once the settings are done, you can see the message, “Your New Project is Ready”. Click
“Continue” to view the project details.
• Click on the gear icon and move to the “Project Settings”.
Push Notifications for Magento 2 © Meetanshi
• In the “General” tab, under the “Your Apps”, click </> to create a new web app.
• Add the app nickname and click “Register App”.
Push Notifications for Magento 2 © Meetanshi
• On registering the app, you can see various web app details. Copy web API key, auth domain,
database URL, project ID, sender ID, app ID, and paste it in the Magento 2 push notifications
extension configuration under the respective fields. Click “Continue to Console”.
• From the console, move to “Cloud Messaging” tab and find the server key, copy it and paste the
same in the Magento 2 push notifications extension configuration under the respective field.
Push Notifications for Magento 2 © Meetanshi
3. Configuration
For configuring the extension, login to Magento 2, move to Stores → Configuration → Meetanshi >
Push Notifications where you can find various settings to enable the extension.
• Push Notifications: Enable the Push Notifications extension from here.
• Web API Key: Enter the web API key you got while registration with the Firebase API.
• FCM Auth Domain: Enter the Auth domain you got while registration with the Firebase API.
• FCM Database URL: Enter the database URL you got while registration with the Firebase API.
• FCM Project ID: Enter the project ID you got while registration with the Firebase API.
• Messaging Sender ID: Enter the messaging sender ID you got while registration with the Firebase
API.
• FCM App ID: Enter the App ID you got while registration with the Firebase API.
• Server Key: Enter the server key you got while registration with the Firebase API.
4. Manage Push Notifications
The admin can manage and add push notification templates from a separate grid at Push
Notifications > Manage Push Notifications. Here, all the already added push notification templates
seen enlisted.
Push Notifications for Magento 2 © Meetanshi
• Add New Push Notification
Click “Add New Notification” button to add new notification template. Add the details and
click to save the notification template.
o Status: Enable the push notification template from here.
o Title: Enter the title of the new push notification to show in the notification dialog.
o Description: Enter the description of the push notification to show in the notification
dialog.
o Redirect URL: Enter URL where you want users to get redirected on click of the notification
dialog.
o Logo: Upload the brand logo to show in the notification dialog.
o Tags: Enter the tags to identify and filter the push notifications.
Push Notifications for Magento 2 © Meetanshi
5. Give Push Notification Consent from Frontend
Once the extension is enabled, whenever the users visit the website, push notification dialog will
open up and ask them to allow or block notifications. The users have to click the “Allow” button to
receive web push notifications from the website.
Push Notifications for Magento 2 © Meetanshi
6. Manage Subscribers
Immediately after the users have subscribed to receive the push notifications, a backend grid at Push
Notifications > Manage Subscribers list them with the details like name of the subscribers, browser
from which they have subscribed, and time and date of the subscription.
The admin can multi select subscribers, select the mass action “Send Notification” and select one of
the notification templates to send push notifications to the selected subscribers. The admin can also
delete the subscriber from here.
7. Push Notifications to Subscribers
Once the admin sends push notification to the subscribers, they immediately receive the push
notification having the details like title, description, logo and redirect URL. Users can click the
notification to get redirected to the URL specified from the backend.

More Related Content

Similar to Magento 2 Push Notifications

Remotetestingfeature v1.1
Remotetestingfeature v1.1Remotetestingfeature v1.1
Remotetestingfeature v1.1Arunkumar H
 
Setting up BuzzCity Account - Server Side API
Setting up BuzzCity Account - Server Side APISetting up BuzzCity Account - Server Side API
Setting up BuzzCity Account - Server Side APIBuzzCity-2015
 
Magento 2 affiliate pro extension
Magento 2 affiliate pro extensionMagento 2 affiliate pro extension
Magento 2 affiliate pro extensionLeBuiChiMai
 
Magento 2 Zoho CRM Integration
Magento 2 Zoho CRM IntegrationMagento 2 Zoho CRM Integration
Magento 2 Zoho CRM IntegrationMeetanshi
 
Magento 2 M-Pesa Payment
Magento 2 M-Pesa PaymentMagento 2 M-Pesa Payment
Magento 2 M-Pesa PaymentMeetanshi
 
Magento 2 Maintenance Page
Magento 2 Maintenance PageMagento 2 Maintenance Page
Magento 2 Maintenance PageMeetanshi
 
Magento 2 QuickBooks Online Integration
Magento 2 QuickBooks Online IntegrationMagento 2 QuickBooks Online Integration
Magento 2 QuickBooks Online IntegrationMeetanshi
 
Magento Mobile App Builder, Mobile App For Magento Ecommerce Store - AppJetty
Magento Mobile App Builder, Mobile App For Magento Ecommerce Store - AppJettyMagento Mobile App Builder, Mobile App For Magento Ecommerce Store - AppJetty
Magento Mobile App Builder, Mobile App For Magento Ecommerce Store - AppJettyAppJetty
 
How to migrate data from Marketpress to Magento by LitExtension
How to migrate data from Marketpress to Magento by LitExtensionHow to migrate data from Marketpress to Magento by LitExtension
How to migrate data from Marketpress to Magento by LitExtensionLitExtension
 
Magento 2 Review Reminder Extension By ITORIS INC
Magento 2 Review Reminder Extension By ITORIS INCMagento 2 Review Reminder Extension By ITORIS INC
Magento 2 Review Reminder Extension By ITORIS INCItexus LLC
 
Setting up BuzzCity account - App Developer
Setting up BuzzCity account - App DeveloperSetting up BuzzCity account - App Developer
Setting up BuzzCity account - App DeveloperBuzzCity-2015
 
shopify to magento 2 migration.pdf
shopify to magento 2 migration.pdfshopify to magento 2 migration.pdf
shopify to magento 2 migration.pdfSafcodes LLC
 
Prisync & Magento - Installation Guide
Prisync & Magento - Installation GuidePrisync & Magento - Installation Guide
Prisync & Magento - Installation GuidePrisyncCom
 
Feedback Pro Extension - User Guide
Feedback Pro Extension - User GuideFeedback Pro Extension - User Guide
Feedback Pro Extension - User GuideBiztech Store
 
How to Use Firebase to Send Push Notifications to React Native and Node.js Apps
How to Use Firebase to Send Push Notifications to React Native and Node.js AppsHow to Use Firebase to Send Push Notifications to React Native and Node.js Apps
How to Use Firebase to Send Push Notifications to React Native and Node.js Appsvaluebound
 
Magento 2 Refund Request
Magento 2 Refund RequestMagento 2 Refund Request
Magento 2 Refund RequestMeetanshi
 
Language Translator Magento 2 Extension
Language Translator Magento 2 ExtensionLanguage Translator Magento 2 Extension
Language Translator Magento 2 ExtensionBiztech Store
 
Magento 2 Admin Mobile App
Magento 2 Admin Mobile AppMagento 2 Admin Mobile App
Magento 2 Admin Mobile AppAppJetty
 
Hire Magento 2 developer India, Call us for more
Hire Magento 2 developer India, Call us for more Hire Magento 2 developer India, Call us for more
Hire Magento 2 developer India, Call us for more AResourcePool
 

Similar to Magento 2 Push Notifications (20)

Remotetestingfeature v1.1
Remotetestingfeature v1.1Remotetestingfeature v1.1
Remotetestingfeature v1.1
 
Setting up BuzzCity Account - Server Side API
Setting up BuzzCity Account - Server Side APISetting up BuzzCity Account - Server Side API
Setting up BuzzCity Account - Server Side API
 
Magento 2 affiliate pro extension
Magento 2 affiliate pro extensionMagento 2 affiliate pro extension
Magento 2 affiliate pro extension
 
Magento 2 Zoho CRM Integration
Magento 2 Zoho CRM IntegrationMagento 2 Zoho CRM Integration
Magento 2 Zoho CRM Integration
 
Magento 2 M-Pesa Payment
Magento 2 M-Pesa PaymentMagento 2 M-Pesa Payment
Magento 2 M-Pesa Payment
 
Magento 2 Maintenance Page
Magento 2 Maintenance PageMagento 2 Maintenance Page
Magento 2 Maintenance Page
 
Magento 2 QuickBooks Online Integration
Magento 2 QuickBooks Online IntegrationMagento 2 QuickBooks Online Integration
Magento 2 QuickBooks Online Integration
 
Magento Mobile App Builder, Mobile App For Magento Ecommerce Store - AppJetty
Magento Mobile App Builder, Mobile App For Magento Ecommerce Store - AppJettyMagento Mobile App Builder, Mobile App For Magento Ecommerce Store - AppJetty
Magento Mobile App Builder, Mobile App For Magento Ecommerce Store - AppJetty
 
How to migrate data from Marketpress to Magento by LitExtension
How to migrate data from Marketpress to Magento by LitExtensionHow to migrate data from Marketpress to Magento by LitExtension
How to migrate data from Marketpress to Magento by LitExtension
 
Magento 2 Review Reminder Extension By ITORIS INC
Magento 2 Review Reminder Extension By ITORIS INCMagento 2 Review Reminder Extension By ITORIS INC
Magento 2 Review Reminder Extension By ITORIS INC
 
Setting up BuzzCity account - App Developer
Setting up BuzzCity account - App DeveloperSetting up BuzzCity account - App Developer
Setting up BuzzCity account - App Developer
 
shopify to magento 2 migration.pdf
shopify to magento 2 migration.pdfshopify to magento 2 migration.pdf
shopify to magento 2 migration.pdf
 
Prisync & Magento - Installation Guide
Prisync & Magento - Installation GuidePrisync & Magento - Installation Guide
Prisync & Magento - Installation Guide
 
Winter 15 : Salesforce
Winter 15 : SalesforceWinter 15 : Salesforce
Winter 15 : Salesforce
 
Feedback Pro Extension - User Guide
Feedback Pro Extension - User GuideFeedback Pro Extension - User Guide
Feedback Pro Extension - User Guide
 
How to Use Firebase to Send Push Notifications to React Native and Node.js Apps
How to Use Firebase to Send Push Notifications to React Native and Node.js AppsHow to Use Firebase to Send Push Notifications to React Native and Node.js Apps
How to Use Firebase to Send Push Notifications to React Native and Node.js Apps
 
Magento 2 Refund Request
Magento 2 Refund RequestMagento 2 Refund Request
Magento 2 Refund Request
 
Language Translator Magento 2 Extension
Language Translator Magento 2 ExtensionLanguage Translator Magento 2 Extension
Language Translator Magento 2 Extension
 
Magento 2 Admin Mobile App
Magento 2 Admin Mobile AppMagento 2 Admin Mobile App
Magento 2 Admin Mobile App
 
Hire Magento 2 developer India, Call us for more
Hire Magento 2 developer India, Call us for more Hire Magento 2 developer India, Call us for more
Hire Magento 2 developer India, Call us for more
 

More from Meetanshi

cupdf.com_magento-2-mobile-login.pdf
cupdf.com_magento-2-mobile-login.pdfcupdf.com_magento-2-mobile-login.pdf
cupdf.com_magento-2-mobile-login.pdfMeetanshi
 
Magento 2 Infinite Scroll
Magento 2 Infinite Scroll Magento 2 Infinite Scroll
Magento 2 Infinite Scroll Meetanshi
 
Magento 2 Sequel Logistics
Magento 2 Sequel LogisticsMagento 2 Sequel Logistics
Magento 2 Sequel LogisticsMeetanshi
 
Magento 2 CBK T-Pay
Magento 2 CBK T-PayMagento 2 CBK T-Pay
Magento 2 CBK T-PayMeetanshi
 
Magento 2 Size Chart
Magento 2 Size ChartMagento 2 Size Chart
Magento 2 Size ChartMeetanshi
 
Magento 2 Inventory Report
Magento 2 Inventory ReportMagento 2 Inventory Report
Magento 2 Inventory ReportMeetanshi
 
Magento 2 facebook Store Integration
Magento 2 facebook Store IntegrationMagento 2 facebook Store Integration
Magento 2 facebook Store IntegrationMeetanshi
 
Magento Cookie Notice
Magento Cookie NoticeMagento Cookie Notice
Magento Cookie NoticeMeetanshi
 
Magento Order Verification
Magento Order VerificationMagento Order Verification
Magento Order VerificationMeetanshi
 
Magento Facebook Chat
Magento Facebook ChatMagento Facebook Chat
Magento Facebook ChatMeetanshi
 
Magento WhatsApp Notifications
Magento WhatsApp NotificationsMagento WhatsApp Notifications
Magento WhatsApp NotificationsMeetanshi
 
Magento 2 Saved Credit Card
Magento 2 Saved Credit CardMagento 2 Saved Credit Card
Magento 2 Saved Credit CardMeetanshi
 
Magento 2 Rave Payment Gateway
Magento 2 Rave Payment GatewayMagento 2 Rave Payment Gateway
Magento 2 Rave Payment GatewayMeetanshi
 
Magento 2 Email Attachments
Magento 2 Email AttachmentsMagento 2 Email Attachments
Magento 2 Email AttachmentsMeetanshi
 
Magento 2 Call for Price
Magento 2 Call for PriceMagento 2 Call for Price
Magento 2 Call for PriceMeetanshi
 
Magento 2 SMS Notification
Magento 2 SMS NotificationMagento 2 SMS Notification
Magento 2 SMS NotificationMeetanshi
 
Instagram Extension for Magento
Instagram Extension for MagentoInstagram Extension for Magento
Instagram Extension for MagentoMeetanshi
 
Magento 2 Admin Email Notifications
Magento 2 Admin Email NotificationsMagento 2 Admin Email Notifications
Magento 2 Admin Email NotificationsMeetanshi
 
Magento 2 Shipping Rules
Magento 2 Shipping RulesMagento 2 Shipping Rules
Magento 2 Shipping RulesMeetanshi
 
Magento 2 eWay Recurring & Subscriptions
Magento 2 eWay Recurring & SubscriptionsMagento 2 eWay Recurring & Subscriptions
Magento 2 eWay Recurring & SubscriptionsMeetanshi
 

More from Meetanshi (20)

cupdf.com_magento-2-mobile-login.pdf
cupdf.com_magento-2-mobile-login.pdfcupdf.com_magento-2-mobile-login.pdf
cupdf.com_magento-2-mobile-login.pdf
 
Magento 2 Infinite Scroll
Magento 2 Infinite Scroll Magento 2 Infinite Scroll
Magento 2 Infinite Scroll
 
Magento 2 Sequel Logistics
Magento 2 Sequel LogisticsMagento 2 Sequel Logistics
Magento 2 Sequel Logistics
 
Magento 2 CBK T-Pay
Magento 2 CBK T-PayMagento 2 CBK T-Pay
Magento 2 CBK T-Pay
 
Magento 2 Size Chart
Magento 2 Size ChartMagento 2 Size Chart
Magento 2 Size Chart
 
Magento 2 Inventory Report
Magento 2 Inventory ReportMagento 2 Inventory Report
Magento 2 Inventory Report
 
Magento 2 facebook Store Integration
Magento 2 facebook Store IntegrationMagento 2 facebook Store Integration
Magento 2 facebook Store Integration
 
Magento Cookie Notice
Magento Cookie NoticeMagento Cookie Notice
Magento Cookie Notice
 
Magento Order Verification
Magento Order VerificationMagento Order Verification
Magento Order Verification
 
Magento Facebook Chat
Magento Facebook ChatMagento Facebook Chat
Magento Facebook Chat
 
Magento WhatsApp Notifications
Magento WhatsApp NotificationsMagento WhatsApp Notifications
Magento WhatsApp Notifications
 
Magento 2 Saved Credit Card
Magento 2 Saved Credit CardMagento 2 Saved Credit Card
Magento 2 Saved Credit Card
 
Magento 2 Rave Payment Gateway
Magento 2 Rave Payment GatewayMagento 2 Rave Payment Gateway
Magento 2 Rave Payment Gateway
 
Magento 2 Email Attachments
Magento 2 Email AttachmentsMagento 2 Email Attachments
Magento 2 Email Attachments
 
Magento 2 Call for Price
Magento 2 Call for PriceMagento 2 Call for Price
Magento 2 Call for Price
 
Magento 2 SMS Notification
Magento 2 SMS NotificationMagento 2 SMS Notification
Magento 2 SMS Notification
 
Instagram Extension for Magento
Instagram Extension for MagentoInstagram Extension for Magento
Instagram Extension for Magento
 
Magento 2 Admin Email Notifications
Magento 2 Admin Email NotificationsMagento 2 Admin Email Notifications
Magento 2 Admin Email Notifications
 
Magento 2 Shipping Rules
Magento 2 Shipping RulesMagento 2 Shipping Rules
Magento 2 Shipping Rules
 
Magento 2 eWay Recurring & Subscriptions
Magento 2 eWay Recurring & SubscriptionsMagento 2 eWay Recurring & Subscriptions
Magento 2 eWay Recurring & Subscriptions
 

Recently uploaded

Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...stazi3110
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEOrtus Solutions, Corp
 
Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyFrank van der Linden
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityNeo4j
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...aditisharan08
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number SystemsJheuzeDellosa
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 

Recently uploaded (20)

Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
 
Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The Ugly
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered Sustainability
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number Systems
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 

Magento 2 Push Notifications

  • 1. Push Notifications for Magento 2 © Meetanshi Push Notifications for Magento 2 User Guide Table of Content 1. Extension Installation Guide 2. Firebase API Registration 3. Configuration 4. Manage Push Notifications 5. Give Push Notification Consent from Frontend 6. Manage Subscribers 7. Push Notifications to Subscribers
  • 2. Push Notifications for Magento 2 © Meetanshi 1. Extension Installation • For Magento Marketplace Customers o Find the Composer name and version of the extension in the extension’s composer.json file. o Login to your SSH and run: ▪ composer require meetanshi/magento2-push-notifications o Enter your authentication keys. Your public key is your username; your private key is your password. o Wait for Composer to finish updating your project dependencies and make sure there aren’t any errors. o To verify that the extension installed properly, run the command: ▪ php bin/magento module:status Meetanshi_PushNotification o By default, the extension is probably disabled. o Enable the extension and clear static view files: ▪ php bin/magento module:enable Meetanshi_PushNotification --clear-static-content ▪ php bin/magento setup:upgrade ▪ For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy ▪ For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f ▪ php bin/magento cache:flush • For Meetanshi Customers o Extract the zip folder and upload our extension to the root of your Magento 2 directory via FTP. o Login to your SSH and run below commands step by step: ▪ php bin/magento setup:upgrade ▪ For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy ▪ For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f ▪ php bin/magento cache:flush Note: Immediately after installing the extension, paste API Key, auth domain, database URL, project ID, storage bucket, sender ID, app ID and measurement ID to firebase-messaging-sw.js file and upload it to the Magento root folder to make the extension work.
  • 3. Push Notifications for Magento 2 © Meetanshi 2. Firebase API Registration The extension uses Firebase API to send push notifications. • To get the Firebase API details, go to https://console.firebase.google.com/ and click on “Create a Project”.
  • 4. Push Notifications for Magento 2 © Meetanshi • Enter the project name, accept the Firebase terms and click Continue. • Enable or disable Google Analytics for the project and click Continue.
  • 5. Push Notifications for Magento 2 © Meetanshi • Once the settings are done, you can see the message, “Your New Project is Ready”. Click “Continue” to view the project details. • Click on the gear icon and move to the “Project Settings”.
  • 6. Push Notifications for Magento 2 © Meetanshi • In the “General” tab, under the “Your Apps”, click </> to create a new web app. • Add the app nickname and click “Register App”.
  • 7. Push Notifications for Magento 2 © Meetanshi • On registering the app, you can see various web app details. Copy web API key, auth domain, database URL, project ID, sender ID, app ID, and paste it in the Magento 2 push notifications extension configuration under the respective fields. Click “Continue to Console”. • From the console, move to “Cloud Messaging” tab and find the server key, copy it and paste the same in the Magento 2 push notifications extension configuration under the respective field.
  • 8. Push Notifications for Magento 2 © Meetanshi 3. Configuration For configuring the extension, login to Magento 2, move to Stores → Configuration → Meetanshi > Push Notifications where you can find various settings to enable the extension. • Push Notifications: Enable the Push Notifications extension from here. • Web API Key: Enter the web API key you got while registration with the Firebase API. • FCM Auth Domain: Enter the Auth domain you got while registration with the Firebase API. • FCM Database URL: Enter the database URL you got while registration with the Firebase API. • FCM Project ID: Enter the project ID you got while registration with the Firebase API. • Messaging Sender ID: Enter the messaging sender ID you got while registration with the Firebase API. • FCM App ID: Enter the App ID you got while registration with the Firebase API. • Server Key: Enter the server key you got while registration with the Firebase API. 4. Manage Push Notifications The admin can manage and add push notification templates from a separate grid at Push Notifications > Manage Push Notifications. Here, all the already added push notification templates seen enlisted.
  • 9. Push Notifications for Magento 2 © Meetanshi • Add New Push Notification Click “Add New Notification” button to add new notification template. Add the details and click to save the notification template. o Status: Enable the push notification template from here. o Title: Enter the title of the new push notification to show in the notification dialog. o Description: Enter the description of the push notification to show in the notification dialog. o Redirect URL: Enter URL where you want users to get redirected on click of the notification dialog. o Logo: Upload the brand logo to show in the notification dialog. o Tags: Enter the tags to identify and filter the push notifications.
  • 10. Push Notifications for Magento 2 © Meetanshi 5. Give Push Notification Consent from Frontend Once the extension is enabled, whenever the users visit the website, push notification dialog will open up and ask them to allow or block notifications. The users have to click the “Allow” button to receive web push notifications from the website.
  • 11. Push Notifications for Magento 2 © Meetanshi 6. Manage Subscribers Immediately after the users have subscribed to receive the push notifications, a backend grid at Push Notifications > Manage Subscribers list them with the details like name of the subscribers, browser from which they have subscribed, and time and date of the subscription. The admin can multi select subscribers, select the mass action “Send Notification” and select one of the notification templates to send push notifications to the selected subscribers. The admin can also delete the subscriber from here. 7. Push Notifications to Subscribers Once the admin sends push notification to the subscribers, they immediately receive the push notification having the details like title, description, logo and redirect URL. Users can click the notification to get redirected to the URL specified from the backend.