Hi Rob (and Trung);
I’m sorry that I am late to this thread.
I am busy doing an app update today and I am discovering the reason that Trung has the Chartboost+hasUserConsent problem.
Our apps use Chartboost on 3 platforms: Apple, Google Play and Amazon.
This is what I have found:
a ) On Apple devices, you can pass in the new “hasUserConsent” parameter when you init the plugin. Everything seems fine and ads display as anticipated.
b ) On Amazon and Google Android builds, the chartboost.init call fails completely when you include a “hasUserConsent” parameter in the init. This is the error printed out in the console:
V/Corona (10673): Loading via reflection: plugin.chartboost.LuaLoader
I/Corona (10673): ERROR: chartboost.init(listener, options), Invalid option ‘hasUserConsent’
Of course I am not altering my init code at all between platforms. It is:
chartBoost.init(adMgr.chartBoostListener, {appId = adMgr.cbID, appSig = adMgr.cbSig, hasUserConsent = true})
And my build.settings file includes the plugin normally:
[“plugin.chartboost”] =
{
publisherId = “com.coronalabs”,
supportedPlatforms = { [“android-kindle”] = true, android=true, iphone=true }
},
I am building with Corona version 3335.
The steps-to-reproduce should be really simple.
-
Build a simple APK and include the Chartboost plugin.
-
Add a line of code (and a bare bones listener) to init the plugin and you should see the resulting ERROR message.
And, of course, if it won’t “init”, it won’t load or show ads.
Steve