Hi Naomi,
Hard to say what is causing the freezing. The listener part not getting events is for sure something in your code. I just tried this:
local ads = require( "ads" )
local function adListener(event)
print("event.response = " .. tostring(event.response))
print("event.provider = " .. tostring(event.provider))
print("event.isError = " .. tostring(event.isError))
end
ads.init( "iads", "com.test.test", adListener )
ads.init( "inneractive", "com.test.test", adListener )
ads:setCurrentProvider("inneractive")
ads.show( "banner", { x=0, y=0, interval=60 } )
local function switchAds()
ads.hide()
ads:setCurrentProvider("iads")
ads.show( "banner", { x=0, y=0 } )
end
timer.performWithDelay( 5000, switchAds )
as a small testbed, and it works perfectly.
As for the freezing part, i just moved from a screen to another while displaying a fullscreen inneractive ad, and that works. I am thinking maybe deallocating some variables that you should not. I would need to know exactly what you’re doing (like i change from main to level1 while maintaining the adview on the screen) and what are you using (storyboard, director, custom code) at least to know where to start thinking at.
Alex. [import]uid: 196533 topic_id: 34226 reply_id: 144994[/import]