Saturday, December 26, 2015

Heyzap for applovin integration

In applovin integration heyzap, the sdk key that we have to set is deleted by heyzap. This makes us cannot show the ads.

When we import the applovin-unitypackage, we place the android.manifest at Plugin/Android directory. However, heyzap needs us to replace the android.manifest afterward and it will replace the android.manifest that we've set before. Therefore, we have to manually change the android manifest so our app can use applovin.

Here is the things that we need to add to android.manifest:
<activity android:name="com.applovin.adview.AppLovinInterstitialActivity" />
<activity android:name="com.applovin.adview.AppLovinConfirmationActivity" />


<meta-data android:name="applovin.sdk.key" android:value="YOUR_SDKKEY_HERE" />
    <meta-data android:name="applovin.sdk.verbose_logging" android:value="false" />


<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  <uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>