Android SDK Setup
Instructions for adding the ProfitDiv Android Mobile App SDK to your Android or Amazon Kindle Fire Apps using Android Studio.
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.
Android Studio Integration
-
Refer to OneSignal's Integration Guide
- Visit OneSignal’s Android Integration Documentation for detailed setup instructions.
-
Update Configuration
- Once you have integrated the OneSignal SDK into your Android app, locate the code where the OneSignal App ID is set.
- Replace the default OneSignal 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!