android crash on notification open
See original GitHub issue07-24 04:22:35.981 21951-21951/com.myapp.mobile.android E/AndroidRuntime:
FATAL EXCEPTION: main
Process: com.myapp.mobile.android, PID: 21951
java.lang.AbstractMethodError: abstract method "void com.facebook.react.bridge.ActivityEventListener.onNewIntent(android.content.Intent)"
at com.facebook.react.bridge.ReactContext.onNewIntent(ReactContext.java:169)
at com.facebook.react.ReactInstanceManagerImpl.onNewIntent(ReactInstanceManagerImpl.java:483)
at com.facebook.react.ReactActivity.onNewIntent(ReactActivity.java:183)
at com.myapp.mobile.android.MainActivity.onNewIntent(MainActivity.java:26)
at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1240)
at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1252)
at android.app.ActivityThread.deliverNewIntents(ActivityThread.java:3425)
at android.app.ActivityThread.performNewIntents(ActivityThread.java:3437)
at android.app.ActivityThread.handleNewIntent(ActivityThread.java:3446)
at android.app.ActivityThread.access$1900(ActivityThread.java:222)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1872)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7229)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
issue is starting in this lines
@Override
public void onNewIntent(Intent intent) {
super.onNewIntent(intent);
((MainApplication) getApplication()).onNewIntent(intent);
}
if I remove super.onNewIntent(intent);
then notification opens without crash, but of course then some other packages doesn’t work anymore (fbsdk for example)
Issue Analytics
- State:
- Created 7 years ago
- Comments:14 (2 by maintainers)
Top Results From Across the Web
Detect and diagnose crashes - Android Developers
The first step to fix a crash is to identify the place where it happens. You can use the stack trace available in...
Read more >Settings keep crashing when I try to open them through my ...
I am trying to create a service in my android app. This service further starts a foreground service. I am ...
Read more >2.8.31 - Crash when opening a push notification and app not ...
I'm seeing a crash on app startup after opening a push notification. It only seems to happen when the app is not running...
Read more >Android 11 and above crashing on notification open · Issue #835
The app crashes while opening the notification and shows the following message java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.
Read more >[Solved] Android app crash when one signal notification sent
It crashes because of the. java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@knowbody, @ivpusic is spot on. In my case it turns out I was using old versions of react-native-image-picker that didn’t implement onNewIntent. I updated (or added the function to the module) and it worked.
Hope that helps !
I had similar issue…problem was not with this package, but with one of other packages I was using…I suggest that you check sources of other native packages you are using, and check if they implement onNewIntent hook