From d05ab1ed671d509facb846cd80d9046744d3fedf Mon Sep 17 00:00:00 2001 From: yogevbd Date: Wed, 30 Jan 2019 11:49:44 +0200 Subject: [PATCH] Initialize FirebaseApp - #285 --- .../wix/reactnativenotifications/RNNotificationsModule.java | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/android/src/main/java/com/wix/reactnativenotifications/RNNotificationsModule.java b/android/src/main/java/com/wix/reactnativenotifications/RNNotificationsModule.java index 8a85a6b..3662ab8 100644 --- a/android/src/main/java/com/wix/reactnativenotifications/RNNotificationsModule.java +++ b/android/src/main/java/com/wix/reactnativenotifications/RNNotificationsModule.java @@ -25,6 +25,8 @@ import com.wix.reactnativenotifications.core.notificationdrawer.IPushNotificatio import com.wix.reactnativenotifications.core.notificationdrawer.PushNotificationsDrawer; import com.wix.reactnativenotifications.gcm.FcmInstanceIdRefreshHandlerService; +import com.google.firebase.FirebaseApp; + import static com.wix.reactnativenotifications.Defs.LOGTAG; public class RNNotificationsModule extends ReactContextBaseJavaModule implements AppLifecycleFacade.AppVisibilityListener, Application.ActivityLifecycleCallbacks { @@ -32,6 +34,7 @@ public class RNNotificationsModule extends ReactContextBaseJavaModule implements public RNNotificationsModule(Application application, ReactApplicationContext reactContext) { super(reactContext); + FirebaseApp.initializeApp(reactContext.getApplicationContext()); if (AppLifecycleFacadeHolder.get() instanceof ReactAppLifecycleFacade) { ((ReactAppLifecycleFacade) AppLifecycleFacadeHolder.get()).init(reactContext); } diff --git a/package.json b/package.json index d71084e..1f26a59 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-notifications", - "version": "1.2.1", + "version": "1.2.2", "description": "Advanced Push Notifications (Silent, interactive notifications) for iOS & Android", "author": "Lidan Hifi ", "license": "MIT", -- 2.26.2