I am Adding ads to my free version of out app because we are getting very good downloads on the free version.
When I added the Ads and tested on Android it works flawless… on Andorid devices ( All I have tested ) Galaxy S / Kindle / Etc…
So the listener is fired after 15 seconds and the ad is dismissed and the scene changes to the Lesson screen.
If an error happens then we switch to an internal ad.
But on IOS 5.x and 6.x the timer never fires and the ad stays put. it never switches to the next scene.
Also I added a button to the screen which is never displayed under the ad ( for testing ) which is never displayed on IOS but is on Android…
This leads me to think that the TIMER below is NEVER being fired on IOS - Someone please advice…
[lua]
local ads = require “ads”
local function adListener( event )
if event.isError then
– Failed to receive an ad. – go straight to Internal Ad for App
storyboard.gotoScene( “internalAd”, “fromRight”, 200 ) end, 1);
else
timer.performWithDelay(15000, function() ads.hide(); storyboard.gotoScene( “jamsession”, “fromRight”, 200 ) end, 1); end
end
ads.init( “inneractive”, “myAppId”, adListener )
ads.show( “banner”, { x=0, y=0, interval=60 } )
[/lua]