revmob.lua:284: attempt to compare number with nil

Hey,

any idea why I get this error?

Corona Simulator[2337:114433] Runtime error

Game/scripts/revmob.lua:284: attempt to compare number with nil

stack traceback:

 Game/scripts/revmob.lua:284: in function ‘payload’

 Game/scripts/revmob.lua:296: in function ‘payloadAsJsonString’

 Game/scripts/revmob.lua:402: in function ‘c’

 Game/scripts/revmob.lua:436: in function ‘r’

 Game/scripts/revmob.lua:502: in function ‘fetchBanner’

 Game/scripts/revmob.lua:1032: in function ‘load’

 Game/scripts/revmob.lua:1233: in function ‘createBanner’

 Game/scripts/adNetworks.lua:114: in function ‘l’

 Game/scripts/revmob.lua:479: in function </Game/scripts/revmob.lua:472>

 

This is my listener , line 114 is the line with the RevMob.createFullscreen()

[lua]

    local revmobListener = function(event)

        local eventType = event.type;

        local adType = event.ad;

        print("Event: " … event.type)

        if (eventType == “adReceived”) then

        elseif (eventType == “adClicked”) then

     

        elseif (eventType == “adClosed”) then

        elseif (eventType == “adNotReceived”) then

        elseif (eventType == “sessionIsStarted”) then

            revmobFullScreen = RevMob.createFullscreen()  --this is line 114

        elseif (eventType == “sessionNotStarted”) then

        end

    end

[/lua]

 

Even if i try revmobFullScreen = RevMob.createFullscreen(revmobListener) it also gives the same error.

Any help?

Roy.

Slightly delayed response but I had the joy of working with RevMob again today, I found this error something to do with the location listener if you have it set.

Slightly delayed response but I had the joy of working with RevMob again today, I found this error something to do with the location listener if you have it set.

I had the same issue. Just don’t add location info and it works. I think once you give it the location it expects all the other “optional values”. I tried giving the other optional values the value of “NA” but couldn’t figure out what valid birthday to give it.

I had the same issue. Just don’t add location info and it works. I think once you give it the location it expects all the other “optional values”. I tried giving the other optional values the value of “NA” but couldn’t figure out what valid birthday to give it.