0

I'm using inmobi unity plugin for ad but facing one problem after show "Interstitial" by using function InMobiAndroid.showInterstitial() I'm not able to close it I press so many times on close button but ad not close what to do?

if((string.Compare(InMobiAndroid.getInterstitialState(), "Ready") == 0 || string.Compare(InMobiAndroid.getInterstitialState(),"READY") == 0)&& !loadAd)
{
    InMobiAndroid.showInterstitial();
    loadAd = true;
}
4

1 回答 1

1

更新 Android 清单文件

添加

 <meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="true" />

在里面

<activity android:name="com.unity3d.player.UnityPlayerActivity" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">

于 2014-04-15T10:53:34.673 回答