Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
WelcomeOnBoardCom opened this issue Dec 19, 2023 · 1 comment

Comments

@WelcomeOnBoardCom
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant