I have place this code
level1.lua
[lua]
local chartboost = require( “plugin.chartboost” );
if chartboost.hasCachedInterstitial() then
chartboost.show(“interstitial”)
local myText = display.newText( “cache”, math.random(20,100), math.random(200,300), native.systemFont, 16 )
myText:setFillColor( 1, 0, 0 )
else
local myText1 = display.newText( “nocache”, math.random(20,100), math.random(200,300), native.systemFont, 16 )
myText1:setFillColor( 1, 0, 0 )
--group:insert( myText1 )
chartboost.init(
{
licenseKey = “jjjjjjjjjjjjjjjjjjjjjjj”,
testMode = true,
appID = yourAppID,
appSignature = yourAppSignature,
listener = chartBoostListener ,
}
);
end
[/lua]
I see the test interstitial in the device , but What happened if the add is not cached, it calls again?
I put the init code in the main.lua .
I don’t know if the code when the add is not cached is right.