Just to be clear as in the docs you can find all 4 syntax:
Which one is right ?
Jump to content
I just tried the iOS version of my app, and CoronaProvider.ads.vungle.isAdAvailable() does not work (resulting in runtime error.) It's been working perfectly fine on Android device though. Ugh, what's going on here. Since I use single code base, this bothers me. Do I need to use different function call for each?
Edit: Hmmm... I just looked at the API doc: http://docs.coronalabs.com/daily/plugin/vungle/isAdAvailable.html
It looks like we are supposed to use ads.isAdAvailable() instead?
But then, why does CoronaProvider.ads.vungle.isAdAvailable() work on Android but not iOS? Rather confusing.
I'd so appreciate it if someone can confirm ads.isAdAvailable works fine with Android version (and I'd update the code to use this function instead of doing if-else statement for each device OS.)
I think the confusion/problems comes from the API doc: http://docs.coronalabs.com/daily/plugin/vungle/isAdAvailable.html
Where the API is entitled as CoronaProvider.ads.vungle.isAdAvailable()
However, Syntax says its: vungle.isAdAvailable()
And then, the example says its: ads.isAdAvailable()
I changed mine to ads.isAdAvailable() for iOS build, and it works there. (I'm not ready to re-set my project for Android version, so I would have to test if ads.isAdAvailable() works there....)
P.S., I added a comment on API page so that Corona Team is aware of this (and hopefully, the API doc page will be updated so that we know exactly what syntax we are expected to use...)
I was using ads.isAdAvailable() and it worked great on iOS but not for Android
I tried all of the following but I cannot get anything to work on Andoid
Here is my code: it always says ads are available, even when they are not
Community Forum Software by IP.Board