Unity SDK Setup
Instructions for adding the ProfitDiv Unity SDK to your Unity app for iOS, Android, Amazon, and Huawei
General Integration Overview
To monetize your push notifications, you need to:
- Integrate the OneSignal SDK into your project.
- Replace the
ONESIGNAL_APP_IDin 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.
Unity SDK Integration
-
Refer to OneSignal's Integration Guide
- Visit OneSignal’s Unity Integration Documentation for the setup process.
-
Update Configuration
- After integrating the SDK into your Unity project, find the section where the OneSignal App ID is configured.
- Replace the default OneSignal App ID with your Ad Unit code.
-
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!