Android关闭按钮上的Chartboost

Byp*_*ypp 1 mobile plugins android unity-game-engine chartboost

目前正在使用Unity3D并正在集成Chartboost插件来展示广告.在Android设备上(在三星平板电脑和点火设备上测试),广告显示,但我似乎无法使用X按钮关闭它(右上角的关闭按钮).我已按照统一集成指南中的步骤操作:https://help.chartboost.com/documentation/unity

有谁知道如何处理这个问题?

Byp*_*ypp 5

很快就找到了答案.

我忘了在AndroidManifest.xml中添加以下行:

<meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="true" />
Run Code Online (Sandbox Code Playgroud)

实际上,我有它,但我忘了在包含以下intent过滤器的活动中设置它:

<intent-filter> <action android:name="android.intent.action.MAIN" /> </intent-filter>
Run Code Online (Sandbox Code Playgroud)

干杯!