I am trying to show fullscreen ad on application start & resume events. It works fine for applicationStart, but no ad shows up for applicationResume.
local function onSystem( event )
require 'revmob'
if event.type == "applicationStart" then
print("applicationStart")
RevMob.showFullscreen({ ["Android"] = revmobAndroidID, ["iPhone OS"] = revmobiOSID })
elseif event.type == "applicationResume" then
print("applicationResume")
RevMob.showFullscreen({ ["Android"] = revmobAndroidID, ["iPhone OS"] = revmobiOSID })
end
end
Runtime:addEventListener( "system", onSystem )
Here is the output on the terminal:
applicationStart
[RevMob] Request url: https://api.bcfads.com/api/v4/mobile\_apps/4f56aa6e3dc441000e005a20/fullscreens/fetch.json
[RevMob] Request body: {"device":{"os\_version":"10.7","country":"US","manufacturer":"Mac OS X","model":"iPhone","identities":{"android\_id":"9774d5f368157442"}}}
[RevMob] Ad received.
WARNING: The store API is not supported on this platform.
[RevMob] Fullscreen Released.
[RevMob] Fullscreen Released.
applicationResume
[RevMob] Request url: https://api.bcfads.com/api/v4/mobile\_apps/4f56aa6e3dc441000e005a20/fullscreens/fetch.json
[RevMob] Request body: {"device":{"os\_version":"10.7","country":"US","manufacturer":"Mac OS X","model":"iPhone","identities":{"android\_id":"9774d5f368157442"}}}
[RevMob] Ad received.
[RevMob] Application resumed.
[RevMob] Fullscreen Released
[import]uid: 19297 topic_id: 25797 reply_id: 115054[/import]