# Push Notifications

This is a premium feature available with [WP Mobile Pack PRO](https://wpmobilepack.com/pricing.html). In order for you to take advantage of push notifications using [WP Mobile Pack PRO](/wp-mobile-pack-free/push-notifications.md), you will first have to download and install the OneSignal WordPress plugin from the [WordPress Plugin Repository](https://wordpress.org/plugins/onesignal-free-web-push-notifications/).

![](/files/-LFSGCTM3E1JX2-MxN9T)To be able to use the OneSignal plugin, you first have to create an account at [OneSignal.com](https://onesignal.com/).

![](/files/-LFSGCTOYjYxOvdgzDgt)

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 `Setup` tab and configure a OneSignal app associated with your WordPress install.&#x20;

   ![](/files/-LFSGCTRGwgBVmcHPdrl)
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.\
   ![](/files/-LFSGCTTHeD9LeQT4MqK)
3. If your site is on https check the "*Use my own manifest.json*" in the OneSignal plugin `Configuration` tab and fill in the "*Custom manifest.json URL*" field with the URL found in the WP Mobile Pack PRO`Push Notifications` tab.

   ![](/files/-LFSGCTiLh65JheS6iwE)
4. Activate the "*Automatically prompt new site visitors to subscribe to push notifications*" option in the OneSignal plugin `Configuration` tab.

   ![](/files/-LFSGCTn13Lo7UtJZuQ1)

Now you can use the OneSignal dashboard to start monitoring your users and send them push notifications.

## Sending Push Notifications To Your Mobile Users

Notifications can be sent via your [OneSignal.com](https://onesignal.com/) dashboard on the `New Message` page.

![](/files/-LFSGCTqFyRVTqm6pIPg)

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 URL`option and type in the link. Be sure to include the full URL including`http://`or`https://`. This will open an external link when the notification is tapped.

![](/files/-LFSGCTtRPDknv7eDVEj)

Clicking the `Schedule` item lets you select among different notification delivery scheduling options:

![](/files/-LFSGCU4zI-SwFmGwR8X)

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.

![](/files/-LFSGCU6_45ngiHrkYtZ) ![](/files/-LFSGCU81YmSSl4SkStS)

## User Segments

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.

The Segments page of your dashboard on [OneSignal.com](https://onesignal.com/) is where you can view an overview of your segments and add / edit / delete segments:

![](/files/-LFSGCUAjKET7FExiSOQ)

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:

![](/files/-LFSGCUChVwnbqbke4ni)

## Troubleshooting – Common Problems

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 protocol**

   Make 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wpmobilepack.com/wp-mobile-pack-free/push-notifications.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
