react-native-notifications
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
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
It works fine on "react-native-notifications": "4.3.1"
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
The issue has been closed for inactivity.