# One Signal push notifications

From version 1.3 in the script we enable push notification for web and mobile apps.

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/-M9T_mZx2qt4xAdR0KWi)

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

![](/files/-M9Ta3Kb6GnfFOzjugVB)

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

![](/files/-M9Tacvg5cHGsYs9QKVZ)

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/-M9TbXksLktXUy3JQo7c)

&#x20;Click on the **SUBSCRIPTION BELL** and customize the look in the options under that.

Also you can find more details about it in the video documentation.

![](/files/-M9TcBCF-wsTMWl7tU8S)

Next step is configuration on Welcome Notification.

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

![](/files/-M9Tcwuak4w6GXwta6WZ)

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.

![](/files/-M9TdhaJRsfHHFKIAegw)

After you finish with the setup copy the credentials and add into .env file.

```
ONESIGNAL_APP_ID=
ONESIGNAL_REST_API_KEY=
```


---

# 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://mobidonia.gitbook.io/mresto/define-basics/one-signal-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.
