Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit d39c5ce

Browse files
added onCloseAd parameter to preloadinterstitial #1020 (docs)
1 parent b8d530e commit d39c5ce

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[Firebase iOS SDK Changelog](https://firebase.google.com/support/release-notes/ios)
44
[Firebase Android SDK Changelog](https://firebase.google.com/support/release-notes/android)
55

6-
## 7.4.0 (2018, November ??)
6+
## 7.4.0 (2018, November 9)
77
[Fixes & Enhancements](https://github.com/EddyVerbruggen/nativescript-plugin-firebase/milestone/81?closed=1)
88

99

demo-push/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010
},
1111
"dependencies": {
12-
"nativescript-plugin-firebase": "file:../publish/package/nativescript-plugin-firebase-7.3.1.tgz",
12+
"nativescript-plugin-firebase": "file:../publish/package/nativescript-plugin-firebase-7.4.0.tgz",
1313
"nativescript-theme-core": "^1.0.4",
1414
"nativescript-unit-test-runner": "^0.3.4",
1515
"tns-core-modules": "~4.2.0"

docs/ADMOB.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ This is a fullscreen ad, so you can earn extra credit on the eternal ladder of a
9595

9696
Note that an interstitial is supposed to be hidden by clicking the close button, so there's no function to do it programmatically.
9797

98+
If you want to get notified when an interstitial is closed, provide an `onAdClosed` callback as shown below.
99+
98100
There's two ways how you can use this function:
99101

100102
* **RECOMMENDED**: without arguments, and after the Promise of `preloadInterstitial` resolves. This will show the interstitial immediately.
@@ -108,7 +110,8 @@ There's two ways how you can use this function:
108110
iosTestDeviceIds: [ // Android automatically adds the connected device as test device with testing:true, iOS does not
109111
"45d77bf513dfabc2949ba053da83c0c7b7e87715", // Eddy's iPhone 6s
110112
"fee4cf319a242eab4701543e4c16db89c722731f" // Eddy's iPad Pro
111-
]
113+
],
114+
onAdClosed: () => console.log("Interstitial closed")
112115
}).then(
113116
function () {
114117
console.log("AdMob interstitial preloaded, you can now call 'showInterstitial' at any time to show it without delay.");

0 commit comments

Comments
 (0)