Commit d05ab1ed authored by yogevbd's avatar yogevbd

Initialize FirebaseApp - #285

parent 6023c7b7
......@@ -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);
}
......
{
"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 <lidan.hifi@gmail.com>",
"license": "MIT",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment