@gamebit.labs, I downloaded the code you submitted with your bug report with the hopes of being able to see if I could find the problem. Frankly, this is not a stripped down project. I can’t tell what you’re doing. You have Vungle, RevMob (which we don’t support) and a bunch of other things that will take hours to spend trying to understand how your com.adview.lua module works.
I wrote a very simple interstitial ad displayer using AdMob
local ads = require( "ads" ) local interAppId = "ca-app-pub-0123456789012345/0123456789" local bigButton = display.newRect(display.contentCenterX, display.contentCenterY, display.contentWidth, display.contentHeight) bigButton:setFillColor(1, 0, 0) local function tapListener() print("Tap") return true end bigButton:addEventListener( "tap", tapListener ) local function adMobListener( event ) local height = ads.height() print("Local height: ",tostring( height)) print( "Height in listener: "..ads.height()) end ads.init( "admob", interAppId, adMobListener ) ads:setCurrentProvider( "admob" ) ads.show( "interstitial", { x=0, y=0 } )
It displayed the interstital ad the way I expected it to on Android. I’m trying on iOS.
Rob