In this section you will learn how to configure push notifications for your PowerToys instance.
The enable push notification service you will need to create an account on http://onesignal.com
After the account create, please login to your account and create an app on the dashboard page ( Figure 1 )
After the app creation is finished with success you will need to configure your application.
In select one platform please select Website Push and press the next button ( Figure 2 )
At Select one platform to configure please select the Google Chrome & Mozilla Firefox platform and press the next button ( Figure 3 )
In the next step you will need to configure your application url and default icon.
For site url please add your plesk host url with http:// or https:// ( if supports https ) example: http://myhosting.com
In Default notification icon url add your plesk host url and add the next url after it: :8443/modules/power-toys/images/base-notify-icon.png
Please check the My site is not fully HTTPS (only if your plesk hosting does not have a valid https support ) checkbox and add a custom subdomain name and press next ( Figure 4 )
For sdk please select Website Push and press next and in the next step just press X and confirm to continue latter ( Figure 5 )
Now go to App settings menu item and in this page to tab Keys & IDs
Add your OneSignal App Id, Rest Api key and the subdomain name to the PowerToys push notification configuration
For subdomain name add just the name without http and without .os.tc
See the figure bellow
After all the configuration steps you will need to create a segment in the one signal application, to create a segment please follow the steps written bellow
- Now go to segments, and create a new segment
- For segment name please write Admin and press create
- After the segment is done go to the segment with Admin name and press the ADD IF button
- There you will need to select the User Tag and set the key to role and for value set admin and press save