Import the Android SDK file into your project. Depending on the game engine, ensure it is loaded correctly.
Manifest Modification:
Make sure you have the following permissions inside the manifest file:
<uses-permission android:name="android.permission.INTERNET" />
<queries>
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:scheme="https" />
</intent>
</queries>
Next, add support for the following activities:
<activity
android:name="com.appcharge.core.CheckoutActivity"
android:configChanges="orientation|screenSize"
android:screenOrientation="unspecified"
android:exported="true"
tools:ignore="DiscouragedApi">
<!-- Custom scheme -->
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="acnative-identifier"/>
<data android:host="action"/>
<data android:scheme="https"/>
</intent-filter>
</activity>
Note that the intent-filter includes a scheme acnative-identifier
. Change the identifier to your game name (lowercase, no spaces). This change will be relevant when setting up your configuration model in Step 02 of the integration.