App Next Use Reward Function

Hello everyone,

i would like to know, how check if the user have seen the reward ad, so that way i can send it to game over scene or to the game scene?

I’m using AppNext.

Regards, 

Miguel Lima

@Miguel,

Hi.  Start here: https://docs.coronalabs.com/plugin/appnext/index.html

If you dig around long enough, you’ll find various listener definitions:

local function adListener( event ) print( "Received " .. event.event .. " for " .. event.adKey .. " with message: " .. event.message ) end

, and you’ll locate the events list:

https://docs.coronalabs.com/plugin/appnext/event/adEvent/event.html

The one you want in this case is:

  • “videoEnded” (fullscreen and rewarded ads only)

@roaminggamer 

i have found that my problem is that i don’t know how to use it:

for example:

if(event.type == “videoEnded”)

   then 

         --Do something

   end

or

if(event.event == “videoEnded”)

  then

    --do something

  end

I would move away from using Appnext. They are not updating their SDK for corona and will stop serving ads at the end of the month.

@Miguel,

Hi.  Start here: https://docs.coronalabs.com/plugin/appnext/index.html

If you dig around long enough, you’ll find various listener definitions:

local function adListener( event ) print( "Received " .. event.event .. " for " .. event.adKey .. " with message: " .. event.message ) end

, and you’ll locate the events list:

https://docs.coronalabs.com/plugin/appnext/event/adEvent/event.html

The one you want in this case is:

  • “videoEnded” (fullscreen and rewarded ads only)

@roaminggamer 

i have found that my problem is that i don’t know how to use it:

for example:

if(event.type == “videoEnded”)

   then 

         --Do something

   end

or

if(event.event == “videoEnded”)

  then

    --do something

  end

I would move away from using Appnext. They are not updating their SDK for corona and will stop serving ads at the end of the month.