But it does show on applovin dashboard page, so the ad shows correctly.
Do you think i should add that?
Hi;
I’m just suggesting that you get some visual confirmation in real time that it is an actual rewarded video that is firing (the modals will do that).
Also, why don’t you add this code to the very beginning of the listener and that way you will see each phase as it occurs on your device:
native.showAlert(“Got HERE”, "This is the listener event phase: " … event.phase , {“OK”})
Of course, you do have to wait until the very end of a rewarded video to get the “validationSucceeded” phase, right?
Steve
Didn’t think about that.
But if i had the alarm at the beginning of the listener it will go on as i start the app also, right?
Okay, now it is getting a little weird.
I did what you said and in the alarm i get “loaded” then “displayed” then “playbackbegan” then “plaubackended” and the last one is “validationsuceeded”.
But still nothing of what i write in the listener gets executed.
Hi;
Put it wherever you think is appropriate to capture the important info. I’d put it at the beginning so I could get an alert at each stage of the sequence – even the “init” and the “loaded”.
One last thing. You don’t have an “else” at the end of your conditional statements. What if the “phase” is one that you are not covering in all of the “elseif” conditionals – that phase would pass silently and you would never know it happened.
Steve
That may happen, yes, but the only phase i am interested in is “validationsucceeded” so i don’t need to cover all the other possible options.
But as i said the alarm goes on and tells me the validationsucceeded phase but still nothing happens.
Hi;
I’ve never worked with the Toast plugin.
If you are triggering Toast when you get “validationsucceeded”, are you certain that the Toast plugin is up and running properly??
and if you are getting the “validationsucceeded” phase properly, then there is nothing wrong with Applovin – it is working correctly.
Steve
Now i tried to replace the alarm with a toast and it doesn’t show up.
But the fact is still that the alarm said “phase: validationsucceeded” but the block code of the if statement didn’t work at all.
What could be the problem here?
It works now, i am an idiot.
First of all i had declared the toast plugin before the listener.
And second of all i forgot i renamed a variable in the app so when i executed the function there was the wrong name and it didn’t work. Now it works just fine thanks for the help