Install SDK
Last updated
Last updated
This guide provides a comprehensive walkthrough for integrating the MyChips SDK into your Android application, enabling the display of an engaging offerwall.
Ensure a React native project is already set up correctly.
The official documentation for Set Up Your Environment:
If you're using a version prior to React Native 0.74, here are the suggested steps to set up the project:
Modify the boost.podspec
file located in the directory:
Ensure that the Boost URL and SHA256 code are valid. If they are not, update the spec.source
in the boost.podspec
file.
For example, if you're using version 0.68, the correct spec.source
is as follows:
3.1 Adding the SDK
If you're using a version prior to React Native 0.74, you need to modify the mychips-react-sdk.podspec
file located in the mychips-react-sdk
library.
Navigate to line 14 and remove the variable min_ios_version_supported
.
Replace it with the minimal iOS version supported, specified as a hardcoded numeric value.
For example, if the minimal iOS version supported is 15, replace the variable with the hardcoded value 15.0
.
After making the necessary changes, run the command in the ios folder:
3.2 Adding the SDK Dependency to App-Level
Be sure to add this dependencies via yarn or npm
3.3 Configuring the Android Manifest
In your AndroidManifest.xml
, add the following:
Add Permission for Internet Access:
In your main activity’s onCreate
method, import and initialize the SDK:
Replace "
HERE YOUR USER ID"
with your actual user ID variable or value.
If you do not provide a specific user ID, one will be automatically generated.
Replace "
Google Advertising ID"
with your actual Google Advertising ID variable or value.
Replace ‘AD_UNIT_ID’ with your actual Ad unit ID.
Create a new page and navigate to it
Style
Obtain your API key and User ID from
Improve the reward tracking by passing the advertinsing id.
Your Ad unit ID can be found at