react-native-admob icon indicating copy to clipboard operation
react-native-admob copied to clipboard

Handling the ad request was unsuccessful due to network connectivity

Open awantengah opened this issue 8 years ago • 6 comments

Hi.. I am new on react native.. When use this library with no connectivity, it show "the ad request was unsuccessful due to network connectivity".. How to handle it? don't show that message again.. thank you.. Sorry, my english not good enough..

awantengah avatar Jun 10 '18 02:06 awantengah

check your internet connection

aligenc avatar Jun 11 '18 07:06 aligenc

Your internet is off when you run command for AdMob testing, that's why this error comes. Be Sure your Internet is a must on while running the command.

Verma-Pooja avatar Jul 15 '18 07:07 Verma-Pooja

@Verma-Pooja and @aligenc in real time, some times user may lost internet connection in mobile... in that cases app should not crash right? but with above error it'll happens... all we need is how to handle this error... any help thank you

Ramaraju1992 avatar Oct 02 '18 11:10 Ramaraju1992

i found fix for this with https://github.com/sbugert/react-native-admob/issues/228#issuecomment-352357150 . just replace console.error(error) with console.log(error).. it'll be fixed... Thank you every one

Ramaraju1992 avatar Oct 02 '18 12:10 Ramaraju1992

Thanks @Ramaraju1992

console.log("Admob Error")

This solved my problem

ankraj077 avatar Dec 12 '18 00:12 ankraj077

I am getting this warning even though the device is connected to the internet. Here are the results from the react-native-net-info library for internet connection

{
  'details': {
      'bssid': '02:00:00:00:00:00',
      'frequency': 2432,
      'ipAddress': '***.***.*.*',
      'isConnectionExpensive': false,
      'strength': 77,
      'subnet': '255.255.255.0'
  },
  'isConnected': true,
  'isInternetReachable': true,
  'isWifiEnabled': true,
  'type': 'wifi'
}

tsdmrfth avatar Mar 14 '21 21:03 tsdmrfth