react-native-notifications icon indicating copy to clipboard operation
react-native-notifications copied to clipboard

Android 10 and below: NullPointerException: Attempt to invoke virtual method 'int android.content.Intent.getFlags()' on a null object reference

Open WelcomeOnBoardCom opened this issue 1 year ago • 1 comments

We observe this issue only on android 10 and below: NullPointerException: Attempt to invoke virtual method 'int android.content.Intent.getFlags()' on a null object reference

Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'int android.content.Intent.getFlags()' on a null object reference at android.app.ContextImpl.startActivity (ContextImpl.java:861) at android.app.ContextImpl.startActivity (ContextImpl.java:845) at android.content.ContextWrapper.startActivity (ContextWrapper.java:377) at com.wix.reactnativenotifications.core.notification.PushNotification.launchOrResumeApp (PushNotification.java) at com.wix.reactnativenotifications.core.notification.PushNotification.digestNotification (PushNotification.java) at com.wix.reactnativenotifications.core.notification.PushNotification.onOpened (PushNotification.java) at com.wix.reactnativenotifications.RNNotificationsPackage.callOnOpenedIfNeed (RNNotificationsPackage.java) at com.wix.reactnativenotifications.RNNotificationsPackage.onActivityStarted (RNNotificationsPackage.java)

"react-native": "0.72.4", "react-native-notifications": "5.1.0"

android: compileSdkVersion = 33 targetSdkVersion = 33

WelcomeOnBoardCom avatar Dec 19 '23 12:12 WelcomeOnBoardCom

It works fine on "react-native-notifications": "4.3.1"

WelcomeOnBoardCom avatar Jan 12 '24 09:01 WelcomeOnBoardCom

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Jan 31 '25 23:01 stale[bot]

The issue has been closed for inactivity.

stale[bot] avatar Feb 24 '25 23:02 stale[bot]