Supersonic isLoaded is always false

I have integrated Supersonic into our app to show rewarded videos. 

I configured a test device in their dashboard and am trying to see videos with it, yet I always get “false” for:

supersonic.isLoaded("rewardedVideo")

Even after I see an event with the phase “loaded” and type “rewardedVideo”, it still says false. 

When I tried to show the video regardless of whether it says there is one loaded or not, I do manage to see a test video. 

So it seems it tells me “false” regardless of thee actual state. 

Have you tried checking it with an actual ad?  Not a test ad?

Hey Stanga.

I’ll check this out on my end and report back.
Thanks

After you go live in supersonic, you can configure a test device, which will only get test ads while everyone else gets live ads. 

The live ads seem to work fine, so this is just for test devices that get test ads. 

Thanks :slight_smile:

Your response has me confused :slight_smile:

Is isLoaded() working correctly for you now?

Thanks

Sorry for the confusion, I was just answering JonPM’s question…

When the app is configured to get live ads, the isLoaded() function seems to work with regular ads (on non-test devices), but for test devices it always says false, even though there is always a test ad available. 

So there is a problem there. 

I checked again, and you can disregard my previous comments - 

the isLoaded() function always returns false for rewarded videos - whether on a test device or not. 

I see I get the loaded callback, yet the isLoaded() still returns false. 

Can you please check if something there is off?

Thanks

Is there anything new with this issue?

I see this happening all the time with our app:

  1. after a successful initialization I call the load() function to load rewarded videos

  2. I get the callback with phase=“loaded”, type=“rewardedVideo”, isError="false,

  3. when I call isLoaded() I get a false answer. 

Maybe it’s because the isLoaded() is called a few minutes after the “loaded” callback? 

Is the video cleared after a certain period of time?

I can think of no other reason why this keeps happening…

Please help me sort this out, I feel like I’m missing a really good monetization platform. 

Hello Stanga.

I have tried to reproduce this, with no success.

isLoaded returned true when a video was loaded every time for me. I even tried waiting a few minutes to check (using isLoaded()) as you stated that you thought that might be an issue, but it returned the correct result for me.

If you have a simple, small, reproducible test case (i can use my own ids) I would be happy to see if I could reproduce it at my end.

Thanks

Good day everyone,

I have a similar problem.

When using test ads it is working fine (mostly, more on this later) but when using real ads I see the following behavior:

Trying to load an ad --> event.phase=noFill

Trying to load an ad again --> event.phase=loaded

supersonic.isLoaded always returns false

It seems like after a noFill event, isLoaded always returns false.

I have another problem, sometimes whan the ad is about to show (testads) the screen just turns black and the app gets unresponsive. Anybody already experienced this?

Best,

Felix

Update:

I tried to show a video after recieving the event.phase=loaded event and nothing happened, so I assume that the isLoaded function returns false correctly but the loaded event.phase is dispatched wrong.

Any chance of somebody looking into this?

ps. What might be a good retry rate after a noFill event?

pps. I actually got the rewarded video to show up some few times in the beginning, but now I only recieve noFill events, and a wrong “loaded” phase…

Best,

Felix

Felix, I will take another look at this. My last investigation into this didn’t uncover any problems at plugin level, so this *could* be an issue with the Supersonic SDK.

I will take another look to confirm either way, and if it is a Supersonic SDK issue, I will contact their developers to get it looked into.

Thanks

Danny, great, thanks a lot!

Hey Felix.

I took another look at the plugin code to ensure that the issues you raised were not caused by an error in the code.

The code is definitely correct, as it uses Supersonic api calls to determine if an ad is available via isLoaded() and also uses a Supersonic callback method to determine if an ad was loaded or if there was no fill.

So with this information gathered, i’ll forward it onto the Supersonic team for investigation at their end.

Hei Danny,

thanks for looking into this.

I decided against the supersonic plugin, as I am hoping to resolve the revmob problems, and at least for android its working fine.

But it will probably be helpfull for others.

Best,

Felix

Sorry to hear that Felix.

Regardless, I’ll get back to you here once we figure out the problem with Supersonic.

Thanks for your patience.

The Supersonic plugin has just been updated and should resolve the issue with isLoaded().

The plugin update will be live within the next 2 hours from the time of this post.

Thank you

I haven’t seen any difference with the issue I described. 

I still get callbacks with phase=“loaded”, yet the isLoaded() always returns false.

Hey Stanga.

Do you have a test case which I can use to reproduce this issue?

If so, would you please submit it to our bug tracker so I can track the issue? https://developer.coronalabs.com/content/bug-submission

Thank you

Have you tried checking it with an actual ad?  Not a test ad?