# OneSignal Push Notification

## **OneSignal Configuration Guide**

This guide will help you configure OneSignal and obtain the necessary credentials (API Key and App ID) for integrating OneSignal push notifications into your Bubble.io plugin.

***

### **Step 1: Create a OneSignal Account**

1. Visit [OneSignal's website](https://onesignal.com/) and create an account if you don’t already have one.
2. Log in to your OneSignal dashboard.

***

### **Step 2: Create a New App**

1. In the OneSignal dashboard, click on the **New App/Website** button.
2. Enter a name for your app and click **Next**.

***

### **Step 3: Configure the App**

1. **Select Platform**:
   * Choose the platform(s) you want to configure (e.g., Web, iOS, Android).
   * Follow the provided steps for each platform. For the Bubble plugin, you can select "Web Push" as a start.
2. **Complete Platform Setup**:
   * Configure the platform settings (e.g., site URL for Web Push).

***

### **Step 4: Get the App ID**

1. After completing the platform setup, navigate to the **Settings > Keys & IDs** section in the OneSignal dashboard.
2. Copy the **App ID**. You'll need it for integration.

***

### **Step 5: Obtain the REST API Key**

1. In the same **Settings > Keys & IDs** section, locate the **API Key** (REST API Key).
2. Copy the **API Key**. Keep it secure, as it is required for making API requests.

***

### **Integration in Bubble Plugin**

Use the following details to configure push notifications in your Bubble plugin:

* **App ID**: The App ID from OneSignal.
* **API Key**: The REST API Key for authentication.

#### &#x20;**Add API Key to Plugin Settings**

1. In the Bubble editor, navigate to the **Plugin Settings** of the installed plugin.
2. Locate the fields for:
   * **OneSignal API Key**: Paste the REST API Key here.

***


---

# 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.webtonative.com/website-plugins/bubble.io/onesignal-push-notification.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.
