I have a workaround for the meantime :)
I’m using a variable, named currentlyPlaying, it starts as “false”(1) at the start of the game then I make it true(2) when the video plays and finally at the adView event I make it false again(3,4). So at the adView event I check to see wether a video is playing. Simple and it works, I’m hoping for a proper fix as you guys.
local currentlyPlaying = false --1
function vungleListener( event )
print("event.type: ", event.type)
print("currentlyPlaying: ", tostring(currentlyPlaying))
if ( event.type == “adStart” and event.isError ) then
currentlyPlaying = false
elseif ( event.type == “adStart” and not event.isError ) then
currentlyPlaying = true --2
end
if ( event.type == “adView” and event.isCompletedView and currentlyPlaying == true) then – CHECK currentlyPlaying
– REWARD
currentlyPlaying = false --3
elseif ( event.type == “adView” and event.isCompletedView == false and currentlyPlaying == true) then – CHECK currentlyPlaying
– NO REWARD
currentlyPlaying = false --4
end
end