This website is only available for Desktop users.

Flutter SDK Setup

Instructions for adding the ProfitDiv Flutter SDK to your Flutter app for iOS and Android

General Integration Overview

To monetize your push notifications, you need to:

  1. Integrate the OneSignal SDK into your project.
  2. Replace the ONESIGNAL_APP_ID in the SDK configuration with the ad-unit ID provided by our platform.

Ad-Unit ID Configuration

You will receive an ad-unit ID when creating placements on our platform. Use this ID in place of the ONESIGNAL_APP_ID in the integration steps.

Flutter SDK Integration

  1. Refer to OneSignal's Integration Guide

  2. Update Configuration

    • Once you have integrated the OneSignal SDK into your Flutter app, locate the code where the OneSignal App ID is set.
    • Replace the default App ID with the Ad Unit code provided by our platform.
  3. Testing

    • Run your app on a physical device to make sure it builds correctly. If you used the provided code, then the requestPermission method, should prompt you to subscribe to push notifications.
  4. Congratulations! 🎉

    • You’ve successfully integrated the OneSignal SDK with your app and configured it with your Ad Unit code. You're all set to start monetizing your push notifications!