• 00Days
  • 00Hours
  • 00Minutes
  • 00Seconds

Browser/Desktop notification using pusher

Browser/Desktop notification using pusher

Browser/Desktop notification using pusher

Browser/Desktop notification using the pusher #

Browser notification helps the user to get notified of any notification quickly.

Requirement: #

Your POS must use https or must have an SSL certificate installed.

Steps to enable it: #

Setup pusher: 

    1. Signup for a pusher account here https://pusher.com/
    2. Login to your pusher account.
    3. Click on “Create new app”
    4. Enter the details:
      Name your app,
      Select a cluster, 
      What’s your front-end tech? will be jQuery
      What’s your back-end tech? will be Laravel.
      Click on “Create my app” and after that, you will find the pusher details as given in the screenshot below\

Setup in Xodox POS:

  1. If you’re using the SaaS-Superadmin module then go to
    Superadmin Settings -> Pusher Settings -> Enter the details:
    PUSHER APP ID, PUSHER APP KEY, PUSHER APP SECRET, PUSHER APP CLUSTER and save it.
  2. If not using SaaS-Superadmin, then login to cpanel/directadmin or FileZilla, open the .env file present in the pos code for editing. Then you will find the pusher related configuration. Enter the below configuration:
    BROADCAST_DRIVER=pusher
    PUSHER_APP_ID=<your pusher app id>
    PUSHER_APP_KEY=<your pusher app key>
    PUSHER_APP_SECRET= <your pusher app secret>
    PUSHER_APP_CLUSTER=<your pusher app cluster>Save the file and the notification will work.

NOTE:

Pusher notifications will not support on IOS devices. You need to disable pusher notifications in IOS for Xodox POS.