OneSignal Configuration

Estimated reading: 2 minutes 302 views

Create a OneSignal Account

One Signal is used for send the push notification into mobile or web. for more detail about OneSignal Documentation.

if you have own OneSignal then login and create project. if you does not then register account and create project

Follow below steps

 

  1. Click in to New App/Website button.
  2. Enter the App/website name in AppName Field.
  3. Select one platform configure, for Example(iOS,Android,Web push).
  4. After Select Any One platform to configure. we can get Firebase Server Key and Firebase Sender Id. If you can select iOS platform then you can required the production Push Certificate.(.p12 Certificate) and then get Firebase server Key. Then Click on Save Button.
  5. After get Firebase Server key and Sender ID. Goto the firebase app and in left
    side you see Project overview and settings click on it and select Project Settings. and In Setting. select Cloud messaging. and Enter Server Key and Sender ID and at the end Click into Save Button.

Configure OneSignal on App

We have already added code for SDK and other configuration for oneSignal push notification. Then open Constant.dart file under lib/utils/ folder and change your ONESIGNAL_ID app ID.
 
const ONESIGNAL_ID = 'fa9c7844-6454-4cf6-b2cc-0b921d85c947';
 
For Android and iOS:-

Follow instruction for OneSignal Configure Here.

Leave a Comment

Share this Doc

OneSignal Configuration

Or copy link

CONTENTS