diff --git a/android/src/main/java/com/wix/reactnativenotifications/core/notification/PushNotification.java b/android/src/main/java/com/wix/reactnativenotifications/core/notification/PushNotification.java index 3ea5eb3d0527f734ffb89969939dacc210883794..356faed292d0cfed8b8d74d4d40231034744d261 100644 --- a/android/src/main/java/com/wix/reactnativenotifications/core/notification/PushNotification.java +++ b/android/src/main/java/com/wix/reactnativenotifications/core/notification/PushNotification.java @@ -92,7 +92,6 @@ public class PushNotification implements IPushNotification { protected void digestNotification() { if (!mAppLifecycleFacade.isReactInitialized()) { setAsInitialNotification(); - launchOrResumeApp(); return; } @@ -122,10 +121,6 @@ public class PushNotification implements IPushNotification { protected void dispatchUponVisibility() { mAppLifecycleFacade.addVisibilityListener(getIntermediateAppVisibilityListener()); - - // Make the app visible so that we'll dispatch the notification opening when visibility changes to 'true' (see - // above listener registration). - launchOrResumeApp(); } protected AppVisibilityListener getIntermediateAppVisibilityListener() { @@ -197,9 +192,4 @@ public class PushNotification implements IPushNotification { private void notifyOpenedToJS() { mJsIOHelper.sendEventToJS(NOTIFICATION_OPENED_EVENT_NAME, mNotificationProps.asBundle(), mAppLifecycleFacade.getRunningReactContext()); } - - protected void launchOrResumeApp() { - final Intent intent = mAppLaunchHelper.getLaunchIntent(mContext); - mContext.startActivity(intent); - } } diff --git a/package.json b/package.json index 14ea3bcc50cdd0099872411f2d3699f74aa89df1..6fb9d9014dae600c1b2473b27914621abbe1982e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-notifications", - "version": "1.2.4", + "version": "1.2.5", "description": "Advanced Push Notifications (Silent, interactive notifications) for iOS & Android", "author": "Lidan Hifi ", "license": "MIT",