3.3 OneSignal Setup

3.1.1 Android Setup for Onesignal

  1. Create your Onesignal account from here or use your existing Onesignal account and create an app.

  1. Enter your app name select Google Android FCM and click on Next.

  1. For the next step, you need to download your Firebase Admin SDK from your Firebase project. Follow this (2 & 3) to download the file and upload the JSON file here.

  1. In the next step, select Flutter as your target SDK.

  1. Click Save and Done to complete the Android setup.

3.1.2 iOS Setup for Onesignal

  1. From 3.2, you will get your key (.p8 file) from your Apple developer account. For more details, you can check this out.

  2. From Onesignal > Your app > Settings > Platforms, Select Apple iOS.

  1. Now, upload your key, Key ID, Team ID, and iOS package name.

  1. Select Flutter as Your SDK if you get any sdk steps after this.

  2. Save and activate this configuration.

3.1.3 WordPress Setup for Onesignal

  1. From your WordPress Dashboard > Onesignal Push > Configuration, Add your Onesignal App ID, and Rest API key.

You can get both the Onesignal App ID and Rest API key from your Onesignal Account > Your app > Settings > Keys & IDs.

  1. Enable Send notifications additionally to iOS & Android Platforms.

  2. Save the configurations.

After this setup, you will get an option in your editor to send notifications on post updates.

3.1.4 Update OneSignal App ID in the code

From Onesignal > Your app > Settings > Keys & IDs, You will get your Onesignal App ID. Copy this and update the ID in the lib/config/config.dart file.

Last updated