I’m setting up Chartboost in a new app and I am getting an error when setting autoCacheAds=true. If I set it to false and handle caching myself the error goes away.
Corona Version: 2017.3061
Plugin has been purchased
Init Code:
-- Initialise ChartBoost chartboost.init( chartboostAdListener, { appId=AD\_IDS.chartboost.APP\_ID, appSig=AD\_IDS.chartboost.APP\_SIG, autoCacheAds = true} )
Adb Logs:
05-02 11:35:18.244: V/Corona(828): \> Class.forName: plugin.chartboost.LuaLoader 05-02 11:35:18.244: V/Corona(828): \< Class.forName: plugin.chartboost.LuaLoader 05-02 11:35:18.244: V/Corona(828): Loading via reflection: plugin.chartboost.LuaLoader 05-02 11:35:18.384: I/Corona(828): plugin.chartboost: 2.0.2 (SDK 6.6.3) 05-02 11:35:18.404: W/System.err(828): java.lang.Exception: Chartboost Weak Activity reference is null 05-02 11:35:18.404: W/System.err(828): at com.chartboost.sdk.b.b(SourceFile:143) 05-02 11:35:18.404: W/System.err(828): at com.chartboost.sdk.b.a(SourceFile:127) 05-02 11:35:18.404: W/System.err(828): at com.chartboost.sdk.Chartboost.setShouldPrefetchVideoContent(SourceFile:836) 05-02 11:35:18.404: W/System.err(828): at plugin.chartboost.LuaLoader$Init$1.run(LuaLoader.java:528)