You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got some user Feedback, that my capacitor app crashes after login and users can't get logged in. I am sending the ID and email of a user to OneSignal after they have logged in.
Tested with:
Umidigi One, Android 8.1
Samsung Galaxy S52, Android 13
Steps to reproduce?
I am using the Capacitor In-App-Browser to perform an Open ID Login Flow. It seems like the In-App-Browser stops the process of the app. After the Browser was opened, the app gets moved to the background and crashes.
I am using Capacitor 5.4.1!
Edit: I see this error everey time I click the home button which moves the app to the background.
What did you expect to happen?
The app should not crash 👀
OneSignal Cordova SDK version
5.0.0
Which platform(s) are affected?
iOS
Android
Relevant log output
FATAL EXCEPTION: main
Process: com.myapp.app, PID: 13658
java.lang.RuntimeException: Unable to stop activity {com.myapp.app/com.myapp.app.MainActivity}: java.lang.NullPointerException
at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:4062)
at android.app.ActivityThread.handleStopActivity(ActivityThread.java:4111)
at android.app.ActivityThread.-wrap24(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1646)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6523)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:865)
Caused by: java.lang.NullPointerException
at com.onesignal.session.internal.session.impl.SessionService.getScheduleBackgroundRunIn(SessionService.kt:44)
at com.onesignal.core.internal.background.impl.BackgroundManager.scheduleBackground(BackgroundManager.kt:96)
at com.onesignal.core.internal.background.impl.BackgroundManager.onUnfocused(BackgroundManager.kt:88)
at com.onesignal.core.internal.application.impl.ApplicationService$handleLostFocus$1.invoke(ApplicationService.kt:325)
at com.onesignal.core.internal.application.impl.ApplicationService$handleLostFocus$1.invoke(ApplicationService.kt:325)
at com.onesignal.common.events.EventProducer.fire(EventProducer.kt:44)
at com.onesignal.core.internal.application.impl.ApplicationService.handleLostFocus(ApplicationService.kt:325)
at com.onesignal.core.internal.application.impl.ApplicationService.onActivityStopped(ApplicationService.kt:184)
at android.app.Application.dispatchActivityStopped(Application.java:234)
at android.app.Activity.onStop(Activity.java:1862)
at androidx.fragment.app.FragmentActivity.onStop(FragmentActivity.java:369)
at androidx.appcompat.app.AppCompatActivity.onStop(AppCompatActivity.java:257)
at com.getcapacitor.BridgeActivity.onStop(BridgeActivity.java:98)
at android.app.Instrumentation.callActivityOnStop(Instrumentation.java:1375)
at android.app.Activity.performStop(Activity.java:7205)
at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:4059)
at android.app.ActivityThread.handleStopActivity(ActivityThread.java:4111)
at android.app.ActivityThread.-wrap24(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1646)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6523)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:865)
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
mariusbolik
changed the title
[Bug]: FATAL EXCEPTION on phones with custom android version
[Bug]: FATAL EXCEPTION at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:4062)
Sep 27, 2023
mariusbolik
changed the title
[Bug]: FATAL EXCEPTION at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:4062)
[Bug]: App crashes when moved to Background (FATAL EXCEPTION)
Sep 28, 2023
What happened?
Hello,
I got some user Feedback, that my capacitor app crashes after login and users can't get logged in. I am sending the ID and email of a user to OneSignal after they have logged in.
Tested with:
Steps to reproduce?
I am using the Capacitor In-App-Browser to perform an Open ID Login Flow. It seems like the In-App-Browser stops the process of the app. After the Browser was opened, the app gets moved to the background and crashes.
I am using Capacitor 5.4.1!
Edit: I see this error everey time I click the home button which moves the app to the background.
What did you expect to happen?
The app should not crash 👀
OneSignal Cordova SDK version
5.0.0
Which platform(s) are affected?
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: