Integrating OneSignal lets you send emails and SMS (text messages) to your users. This can help you get more engagement, make more sales, and keep users coming back. After you set up OneSignal, you'll be able to easily add users to or remove them from OneSignal's subscription list.

Before you begin, make sure the project is on Blaze plan on Firebase.

Here's a detailed, step-by-step guide to help you integrate OneSignal:

  1. If you haven't already, create an account on OneSignal.

  2. To get started, you need an app created on OneSignal. You can create one from the dashboard.

  3. After creating your app, activate the services you need, like SMS and Email. Go to your app settings by clicking App > Settings > Platforms and then select Activate for the services you want to use.

    1. If you're planning to use SMS, you'll need a Twilio account and then follow the steps from the official SMS Quickstart documentation.

    2. For sending emails, configure your settings as per the guidelines provided in the OneSignal documentation.

  4. To enable OneSignal in FlutterFlow:

    1. Navigate to Settings and Integrations > Integrations > OneSignal.

    2. Switch on the Enable OneSignal toggle.

    3. Gather your credentials:

      1. App ID: Find this in your OneSignal dashboard under Settings > Keys & IDs > OneSignal App ID.

      2. API Key: Located in the same section as the App ID, under Rest API Key.

      3. User Key: Go to your user profile icon, then Account & API Keys > User Auth Key.

    4. Click Deploy.

  1. Now, at appropriate event in your app, you can add an action that adds the user to the OneSignal's subscription.

  2. To test SMS functionality, follow the continuation of the instructions in the SMS documentation.

  3. To try out sending Emails, continue with instructions from here.

Published Date: November 29, 2023

Last updated