# OneSignal Set Up

### Overview

Push Notifications are an incredibly powerful feature. When selected, we integrate OneSignal's Push SDK into your app to support the full range of what you might want to do with push notifications.

OneSignal offers a feature-rich, enterprise-class push notification service with a very good free tier offering. Learn more at [OneSignal.com](https://onesignal.com/).

* Send push notifications to individual devices, groups of devices, or all devices at once
* Send via the OneSignal.com dashboard, or programmatically through their API
* Optionally specify a targetUrl to open within your app when the notification is clicked
* Support for custom notification sounds, badging, collapsing notifications, and more

### **Setting up your OneSignal Account**

WebToNative leverages OneSignal's push notification service to power push notifications within your WebToNative app. OneSignal offers their feature-rich, enterprise-class service with a very good free tier offering. To get started, please create an account at [OneSignal.com](https://onesignal.com/).

### **Configure OneSignal**

{% tabs %}
{% tab title="Android" %}
OneSignal sends push notifications through Google's Firebase Cloud Messaging (FCM) service. For this to work, you will need to tell OneSignal your Google Project Number, and Firebase Server API Key. A complete guide for this is available on OneSignal's website at <https://documentation.onesignal.com/docs/generate-a-google-server-api-key>.

Once you have a Google developer account set up, you may generate your Project Number and FCM Server API Key directly at <https://developers.google.com/mobile/add?platform=android&cntapi=gcm>.

{% endtab %}

{% tab title="Ios" %}

OneSignal sends push notifications through Apple's APNS service. For this to work, you will need to upload to OneSignal your Apple Push Notification certificates that you generate through [developer.apple.com](https://developer.apple.com). A complete guide for this is available on OneSignal's website at <https://documentation.onesignal.com/docs/generate-an-ios-push-certificate>.
{% endtab %}
{% endtabs %}

{% hint style="warning" %}
**WebToNative** apps use the OneSignal SDKs for iOS and Android. We integrate these for you. Using OneSignal's Web SDK in your WebToNative apps to send native push notifications will not work.&#x20;
{% endhint %}

### **Configure your WebToNative App**

WebToNative requires just your OneSignal App Id in order to configure OneSignal to work within your app. You will find this on your OneSignal Dashboard under App Settings --> Keys & IDs.

###

###


---

# 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/plugin/one-signal.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.
