# OneSignal push notifications

<mark style="color:purple;">**`Note: This API is now used for admin / restaurant both. admin can send message to their subscribers/restaurants & restaurant can send notification to their subscribers.`**</mark>\
&#x20;<mark style="color:purple;">**`After it works perfectly will add it for restaurant and for the customers -`**</mark>**` `**<mark style="color:red;">**`now available`**</mark><mark style="color:purple;">**`.`**</mark>

For the setup guide you can follow one signal official [video tutorial](https://www.youtube.com/watch?v=lNv_3qq1sKs) or our step by step explanation.

Visit the [OneSignal official website](https://onesignal.com/).

Click on the **NEW APP/WEBSITE** button.

![](/files/iEtuuDerJiNtPWfDpyA3)

Now enter your app name and select **Web Push**.

![](/files/ul98l4tlK9w3JaNeDeaP)

Next enter your **Site name**, **Site URL** and **upload or enter the default icon UR**L.

![](/files/owBSPnqP9moO49w4yNSb)

.

{% hint style="info" %} <mark style="color:red;">Enable My site is not fully HTTPS</mark>
{% endhint %}

<figure><img src="/files/0MtG9azIUVS2fllOkKxc" alt=""><figcaption><p>Choose a unique label</p></figcaption></figure>

Now after you finish with the Site Setup next step is Permission Prompt Setup.

Slide Prompt is added by default and you need to click on it for changing the configuration.

More information you will find on the video documentation about this part.

Next click on **ADD A PROMPT**.

![](/files/ZkkGGG0Vtasjexzf7YmK)

Next step is configuration on Welcome Notification.

Here you can change the **TITLE**, **MESSAGE** and **LINK**.

![](/files/8JVP86RaDUG1BEJSsoKw)

After you finish with this click on the **Save** button and then **Finish**.

Now after you app is active you will need to get the credentials created in this app.

You will find this credentials in the **Keys & IDs** page.

![Done](/files/vaTdlFan8QtHfmdgArWE)

**Now Login as restaurant > settings  > one Signal configuration**

<figure><img src="/files/VqVnwHNduODY20fSOOHj" alt=""><figcaption><p>add your credentials</p></figcaption></figure>

Now you are able to send customize message from here

![](/files/eEg3vZYvqtCgJDca3XNs)

Here Custom link: If you want to redirect your client in your external site/link


---

# 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://phplime-envato.gitbook.io/qrexorder/configuration/onesignal-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.
