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 KOKA Books 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=
- PUSHER_APP_KEY=
- PUSHER_APP_SECRET=
- 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 KOKA Books POS.