cordova-plugin-admob-nextgen 1.0.5 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -87,8 +87,10 @@ Add this to your `config.xml` to restore the plugin automatically.
87
87
  </plugin>
88
88
 
89
89
 
90
+ ## Supporting Mediation: **[⚡ admob-mediation-suite ](https://github.com/swaplab-engine/admob-mediation-suite)** (Optional)
91
+
90
92
  ## For Capacitor users
91
- **[⚡ Capacitor Integration: Automated Setup for AdMob Next Gen ](https://github.com/swaplab-engine/cordova-plugin-admob-nextgen/discussions/1)**.
93
+ **[⚡ Capacitor Integration: Automated Setup for AdMob Next Gen ](https://github.com/swaplab-engine/cordova-plugin-admob-nextgen/discussions/3)**.
92
94
 
93
95
  **[⚡ AdMob Next Gen - Starter Templates 🚀 ](https://github.com/swaplab-engine/cordova-plugin-admob-nextgen-template)**.
94
96
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cordova-plugin-admob-nextgen",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Google Mobile Ads Next Gen SDK for Cordova. High performance and modular architecture. ",
5
5
  "cordova": {
6
6
  "id": "cordova-plugin-admob-nextgen",
package/plugin.xml CHANGED
@@ -1,6 +1,6 @@
1
1
  <?xml version='1.0' encoding='utf-8'?>
2
2
  <plugin id="cordova-plugin-admob-nextgen"
3
- version="1.0.5"
3
+ version="1.0.7"
4
4
  xmlns="http://apache.org/cordova/ns/plugins/1.0"
5
5
  xmlns:android="http://schemas.android.com/apk/res/android">
6
6
 
@@ -26,7 +26,6 @@
26
26
 
27
27
  <config-file parent="/*" target="AndroidManifest.xml">
28
28
  <uses-permission android:name="android.permission.INTERNET" />
29
- <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
30
29
  </config-file>
31
30
 
32
31
  <framework src="src/android/hooks/admob-nextgen.gradle" custom="true" type="gradleReference" />
@@ -171,10 +171,6 @@ public class AppOpenAdExecutor {
171
171
  appOpenAd = null;
172
172
  isShowingAd = false;
173
173
  fireEvent("on.appopen.dismissed", null);
174
-
175
- if (currentAdUnitId != null) {
176
- loadAdInternal(currentAdUnitId, null);
177
- }
178
174
  }
179
175
 
180
176
  @Override
@@ -187,10 +183,6 @@ public class AppOpenAdExecutor {
187
183
  errData.put("message", error.getMessage());
188
184
  fireEvent("on.appopen.failed.show", errData);
189
185
  } catch (JSONException e) {}
190
-
191
- if (currentAdUnitId != null) {
192
- loadAdInternal(currentAdUnitId, null);
193
- }
194
186
  }
195
187
 
196
188
  @Override
@@ -146,10 +146,6 @@
146
146
  if (![self isAdAvailable]) {
147
147
  NSString *jsonStr = @"{\"message\":\"Ad not ready or expired\"}";
148
148
  [self.plugin fireEvent:@"document" event:@"on.appopen.failed.show" withData:jsonStr];
149
-
150
- if (self.currentAdUnitId) {
151
- [self loadAdInternal:self.currentAdUnitId command:nil];
152
- }
153
149
  return;
154
150
  }
155
151
 
@@ -191,10 +187,6 @@
191
187
  self.appOpenAd = nil;
192
188
  self.isShowingAd = NO;
193
189
  [self.plugin fireEvent:@"document" event:@"on.appopen.dismissed" withData:nil];
194
-
195
- if (self.currentAdUnitId) {
196
- [self loadAdInternal:self.currentAdUnitId command:nil];
197
- }
198
190
  }
199
191
 
200
192
  - (void)ad:(id<GADFullScreenPresentingAd>)ad didFailToPresentFullScreenContentWithError:(NSError *)error {
@@ -203,10 +195,6 @@
203
195
 
204
196
  NSString *jsonStr = [NSString stringWithFormat:@"{\"code\":%ld, \"message\":\"%@\"}", (long)error.code, error.localizedDescription];
205
197
  [self.plugin fireEvent:@"document" event:@"on.appopen.failed.show" withData:jsonStr];
206
-
207
- if (self.currentAdUnitId) {
208
- [self loadAdInternal:self.currentAdUnitId command:nil];
209
- }
210
198
  }
211
199
 
212
200
  @end