CoronaProvider.ads.vungle.isAdAvailable()

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

  1. CoronaProvider.ads.vungle.isAdAvailable()

  2. ads.vungle.isAdAvailable()

3) vungle.isAdAvailable()

  1. ads.isAdAvailable()

 

Here is my code: it always says ads are available, even when they are not

 local function listener( event )

   

        

    if CoronaProvider.ads.vungle.isAdAvailable() then

            statusText.text = “ADS are available”

            statusText:setTextColor (113, 255, 103 )

            else

            statusText.text = “ADS are NOT available”

            statusText:setTextColor ( 255, 49, 95 )

    end

end

timer.performWithDelay( 1000, listener,0 )

it stinks because it works so nicely on iOS I would love to be able to use this on android

Thank you for any help on this issue 

Oh Btw ads.isAdAvailable() is the one that worked for me on iOS

Just to confirm that ads.isAdAvailable() is working fine on both iOS and Android build for me.  (I finally got around to testing both.)

Naomi

I can’t seem to get ads.isAdAvailable() to work on even iOS. I stripped out my code so it just inits vungle and then checks this, but it still doesn’t work.

I get a Runtime error “attempt to call field isAdAvailable() (a nil value)”. What daily build are you all using? Im on 1157.

@naveen_pcs, I was able to use CoronaProvider.ads.vungle.isAdAvailable() for Android device with Daily Build 1179.  And ads.isAdAvailable() worked for me on both iOS and Android devices.

Naomi

@navveen_pcs 

You have to build for the device or Xcode simulator to test the ads. you will get that error in the corona simulator

Awesome, this worked! Thanks!

The both are not working for me, I use Android, can somebody help me please?

Are your ads showing?

Did you build it on the device? they will not show in the simulator.

The ads will show without doing this check.

I never really got it to work on Android the way it does on iOs. as a boolean that returns true or false.

The both are not working for me, I use Android, can somebody help me please?

Are your ads showing?

Did you build it on the device? they will not show in the simulator.

The ads will show without doing this check.

I never really got it to work on Android the way it does on iOs. as a boolean that returns true or false.