sunnycupertino / cordova-plugin-admob-simple

Cordova plugin allowing Admob interstitials and banner ads.
MIT License
164 stars 150 forks source link

Application Error: connection to the server was unsuccessful #53

Open rohidas21 opened 4 years ago

rohidas21 commented 4 years ago

Hello Sunnycupertino,

I'm trying to use your plugin in my android app. Fortunately ads are loading. But in few android devices app doesn't start again when i relaunch it after quit. App shows blank grey screen for few seconds and gives this error: "Application Error: connection to the server was unsuccessful. (file ///android_asset/www/index.html)". is included in the config.xml file.

Note: this problem will not occur in the following cases:

  1. When Ad Mob disabled (app launch either with online or offline connection)
  2. Offline app launch (either with this plugin included or without)

would you please help me?

bug report: 10-05 17:46:54.117 10741 10741 E AndroidRuntime: ** 10-05 17:46:54.117 10741 10741 E AndroidRuntime: The Google Mobile Ads SDK was initialized incorrectly. AdMob publishers 10-05 17:46:54.117 10741 10741 E AndroidRuntime: should follow the instructions here: 10-05 17:46:54.117 10741 10741 E AndroidRuntime: https://googlemobileadssdk.page.link/admob-android-update-manifest 10-05 17:46:54.117 10741 10741 E AndroidRuntime: to add a valid App ID inside the AndroidManifest. 10-05 17:46:54.117 10741 10741 E AndroidRuntime: Google Ad Manager publishers should follow instructions here: 10-05 17:46:54.117 10741 10741 E AndroidRuntime: https://googlemobileadssdk.page.link/ad-manager-android-update-manifest. 10-05 17:46:54.117 10741 10741 E AndroidRuntime: ** 10-05 17:46:54.117 10741 10741 E AndroidRuntime: 10-05 17:46:54.117 10741 10741 E AndroidRuntime: 10-05 17:46:54.117 10741 10741 E AndroidRuntime: at com.google.android.gms.internal.ads.zzxi.attachInfo(com.google.android.gms:play-services-ads-lite@@18.2.0:27) 10-05 17:46:54.117 10741 10741 E AndroidRuntime: at com.google.android.gms.ads.MobileAdsInitProvider.attachInfo(com.google.android.gms:play-services-ads-lite@@18.2.0:3) 10-05 17:46:54.117 10741 10741 E AndroidRuntime: at android.app.ActivityThread.installProvider(ActivityThread.java:6447) 10-05 17:46:54.117 10741 10741 E AndroidRuntime: ... 10 more --------- beginning of main 10-05 18:32:31.908 20825 20825 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<< 10-05 18:32:32.053 20825 20825 D AndroidRuntime: Calling main entry com.android.commands.input.Input 10-05 18:32:32.073 20825 20825 D AndroidRuntime: Shutting down VM 10-05 18:34:02.676 21425 21425 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<< 10-05 18:34:02.818 21425 21425 D AndroidRuntime: Calling main entry com.android.commands.input.Input 10-05 18:34:02.837 21425 21425 D AndroidRuntime: Shutting down VM