Comment on page
Now that you have installed the plugin and have created your OneSignal account, we can begin setting them up so that visitor will receive push notifications from your web app.
- 1.Follow the instructions on the OneSignal plugin
Setuptab and configure a OneSignal app associated with your WordPress install.
- 2.The next step will depend on whether your site is on http or https. If your site is on http, make sure you have set the subdomain correctly and skip to step 4.
- 3.If your site is on https check the "Use my own manifest.json" in the OneSignal plugin
Configurationtab and fill in the "Custom manifest.json URL" field with the URL found in the WP Mobile Pack PRO
- 4.Activate the "Automatically prompt new site visitors to subscribe to push notifications" option in the OneSignal plugin
Now you can use the OneSignal dashboard to start monitoring your users and send them push notifications.
You can send your notification to all users, a particular segment if you have segments setup or just a few users as a test.
To send a link, find the
Launch URLoption and type in the link. Be sure to include the full URL including
https://. This will open an external link when the notification is tapped.
Scheduleitem lets you select among different notification delivery scheduling options:
When your mobile users access your Web App they will be prompted to subscribe to your notifications. Once they subscribe, every time you send out messages to them, they will receive a notification on their mobile device.
Segments allow you to target a subset of your users with notifications. You may create any number of segments. Segments are created by adding filters based on certain data attributes.
When creating segments with multiple filters, the users in that segment are those that pass all the filters. In other words, results are the intersection of all filters combined together. This allows for precise user targeting.
To view the individual users within a segment, use the segments drop-down filter in
All Users. Below is an example of viewing users within the 'Test Users' segment:
- 1.Users aren't prompted for push notifications on your web app that uses
https://You have to make sure that all links to your site redirect to
https://. Otherwise when a user gets to your site without the
https://protocol, OneSignal will not send the prompt.
- 2.Users aren't prompted for push notifications regardles of security protocolMake sure that the "Automatically prompt new site visitors to subscribe to push notifications" option is enabled, else the plugin will not trigger a prompt when new users visit your web app.
- 3.My browser theme color and other manifest options are being ignored by the browser on
https://This usually happens if you are using
https://and don't have the "Use my own manifest.json" option configured correctly. Make sure you enable the option when using
https://and have the correct address in the "Custom manifest.json URL" field.