I am trying to show an interstitial ad but my app get locked… Here’s my code
local tapfortap = require "plugin.tapfortap" tapfortap.initialize("85aa58c7a870570ab870f60d48935aef") storyboard = require("storyboard") local preload = storyboard.newScene() function preload:createScene( event ) -- Prepare an interstitial for the first call to showInterstitial() tapfortap.prepareInterstitial() end function goto() --REST OF CODE end function preload:enterScene( event ) -- Later show an App Wall tapfortap.showInterstitial() timer.performWithDelay(5000, goto, 1) end preload:addEventListener( "createScene" ) preload:addEventListener( "enterScene" ) return preload
As you see in my createScene I prepare the Ad and then in enterScene I try to show it, but it fails… My app keep open but do nothing!! Please help!