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:
- Integrate the OneSignal SDK into your project.
- 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
-
Refer to OneSignal's Integration Guide
- Visit OneSignal’s Flutter Integration Documentation for the necessary steps.
-
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.
-
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.
-
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!