@@ -4,7 +4,7 @@ import { ios as iOSUtils } from "tns-core-modules/utils/utils";
44import { getClass } from "tns-core-modules/utils/types" ;
55import { device } from "tns-core-modules/platform" ;
66import { DeviceType } from "tns-core-modules/ui/enums" ;
7- import { firestore } from "./firebase" ;
7+ import { admob , firestore } from "./firebase" ;
88
99firebase . _messagingConnected = null ;
1010firebase . _pendingNotifications = [ ] ;
@@ -16,11 +16,6 @@ firebase._configured = false;
1616
1717// Note that FIRApp.configure must be called only once, but not here (see https://github.com/EddyVerbruggen/nativescript-plugin-firebase/issues/564)
1818
19- /**
20- * Workaround function to call the `dispatch_get_main_queue(...)` for iOS
21- * thanks to Alexander Ziskind found on:
22- * http://nuvious.com/Blog/2016/7/5/calling-dispatch_async-in-nativescript
23- */
2419const invokeOnRunLoop = ( ( ) => {
2520 const runloop = CFRunLoopGetMain ( ) ;
2621 return func => {
@@ -852,7 +847,7 @@ firebase.admob.showBanner = arg => {
852847
853848 view . addSubview ( firebase . admob . adView ) ;
854849
855- // support rotation events
850+ // support rotation events
856851 // tear down first if this had been called already to avoid multiple event bindings
857852 application . off ( application . orientationChangedEvent , firebase . admob . orientationHandler ) ;
858853 application . on ( application . orientationChangedEvent , firebase . admob . orientationHandler ) ;
0 commit comments