Pre-submission Checklist
Description
We are receiving error reports like the one below.
So far we have only seen reports coming from Samsung devices running android 15.
Reproduction Steps
Unfortunately we have not figured out how to reproduce the issue that is getting reported
Software and Device Information
Please complete the following information.
- Device: SM-901U, SM-908U, SM-906U
- OS: Android 15
- React version: 19.0.0
- React Native version: 0.79.5
- Node version: v20.11.0
- npm or yarn version: yarn 4.9.2
- expo 53
Additional Context
So far we only have the crash reports, but if we can reproduce the issue we will update here.
Looking at all the crash reports this happens immediately when the app is foregrounded. It looks like the app has always been started before and hasn't happened on a fresh launch. Sometimes the app is in the background and crashes when it is opened, but in at least one case the app was open and the screen turned off and then when the user turned the screen back on and the app foreground was triggered (presumably because it was what was on the screen/active when the device went to sleep) it had this crash
twilio-voice-react-native: v1.6.0
android.app.BackgroundServiceStartNotAllowedException: Not allowed to start service Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.move.realtorpro.android/com.twiliovoicereactnative.VoiceService bnds=[788,1362][1037,1647] }: app is in background uid UidRecord{e466fce u0a144 CAC bg:+1m11s337ms idle change:cached|procstate procs:0 seq(3067792,3067787)} caps=-------
at android.app.ContextImpl.startServiceCommon(ContextImpl.java:2049)
at android.app.ContextImpl.startService(ContextImpl.java:1994)
at android.content.ContextWrapper.startService(ContextWrapper.java:844)
at com.twiliovoicereactnative.VoiceActivityProxy.handleIntent(VoiceActivityProxy.java:84)
at com.twiliovoicereactnative.VoiceActivityProxy.onNewIntent(VoiceActivityProxy.java:54)
at com.twiliovoicereactnative.ExpoActivityLifecycleListeners.onNewIntent(ExpoActivityLifecycleListeners.java:43)
at expo.modules.ReactActivityDelegateWrapper.onNewIntent(ReactActivityDelegateWrapper.kt:291)
at com.facebook.react.ReactActivity.onNewIntent(ReactActivity.java:111)
at android.app.Activity.onNewIntent(Activity.java:2495)
at android.app.Activity.performNewIntent(Activity.java:9390)
at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1646)
at android.app.Instrumentation.internalCallActivityOnNewIntent(Instrumentation.java:1667)
at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1655)
at android.app.ActivityThread.deliverNewIntents(ActivityThread.java:4761)
at android.app.ActivityThread.handleNewIntent(ActivityThread.java:4771)
at android.app.servertransaction.NewIntentItem.execute(NewIntentItem.java:58)
at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:60)
at android.app.servertransaction.TransactionExecutor.executeNonLifecycleItem(TransactionExecutor.java:174)
at android.app.servertransaction.TransactionExecutor.executeTransactionItems(TransactionExecutor.java:109)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:81)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2895)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loopOnce(Looper.java:257)
at android.os.Looper.loop(Looper.java:342)
at android.app.ActivityThread.main(ActivityThread.java:9634)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:619)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:929)
Pre-submission Checklist
or sensitive account information (API keys, credentials, etc.) when reporting this issue.
Description
We are receiving error reports like the one below.
So far we have only seen reports coming from Samsung devices running android 15.
Reproduction Steps
Unfortunately we have not figured out how to reproduce the issue that is getting reported
Software and Device Information
Please complete the following information.
Additional Context
So far we only have the crash reports, but if we can reproduce the issue we will update here.
Looking at all the crash reports this happens immediately when the app is foregrounded. It looks like the app has always been started before and hasn't happened on a fresh launch. Sometimes the app is in the background and crashes when it is opened, but in at least one case the app was open and the screen turned off and then when the user turned the screen back on and the app foreground was triggered (presumably because it was what was on the screen/active when the device went to sleep) it had this crash
twilio-voice-react-native: v1.6.0