diff --git a/android/src/main/java/com/wix/reactnativenotifications/RNNotificationsModule.java b/android/src/main/java/com/wix/reactnativenotifications/RNNotificationsModule.java index 8a85a6bed6ae6c8c771c35a940026b32f0cae606..3662ab85c8f6a6f12a31ca0eeaaad6a34f0dd3f6 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 d71084ece778d9396e1764baee9769a79193ef89..1f26a596f04ab4d110f4a93a0d40f58912ec4633 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",