Issue
The app is crashing on the incoming call with Not posted. CallStyle notifications must be for a foreground service or user initated job or use a fullScreenIntent. exception.
Pre-submission Checklist
Description
We are using expo for react native development. We are using this fork for the Expo integration. While we have problems with running own implementation or using the proposed fork. We can do outgoing calls, and they work well. We are using the expo-notifications package, and we actually receive our regular push messages. But on incoming call the app crashes with the next stack traces. My first assumption was that it's a problem with expo-notifications but in the stack trace there is com.twiliovoicereactnative.VoiceService mentioned.
I am testing on an Android 15 real device with allowed microphone permissions..
Your app just crashed. See the error below.
java.lang.IllegalArgumentException: 0|com.app.calls|459425685|null|10593 Not posted. CallStyle notifications must be for a foreground service or user initated job or use a fullScreenIntent.
android.os.Parcel.createExceptionOrNull(Parcel.java:3260)
android.os.Parcel.createException(Parcel.java:3240)
android.os.Parcel.readException(Parcel.java:3223)
android.os.Parcel.readException(Parcel.java:3165)
android.app.INotificationManager$Stub$Proxy.enqueueNotificationWithTag(INotificationManager.java:3318)
android.app.NotificationManager.notifyAsUser(NotificationManager.java:770)
android.app.NotificationManager.notify(NotificationManager.java:706)
android.app.NotificationManager.notify(NotificationManager.java:682)
com.twiliovoicereactnative.VoiceService.createOrReplaceNotification(VoiceService.java:353)
com.twiliovoicereactnative.VoiceService.incomingCall(VoiceService.java:191)
com.twiliovoicereactnative.VoiceService.-$$Nest$mincomingCall(Unknown Source:0)
com.twiliovoicereactnative.VoiceService$VoiceServiceAPI.incomingCall(VoiceService.java:76)
com.twiliovoicereactnative.VoiceFirebaseMessagingService$MessageHandler.onCallInvite(VoiceFirebaseMessagingService.java:34)
com.twilio.voice.CallInviteProxy.lambda$onCallInvite$0$com-twilio-voice-CallInviteProxy(CallInviteProxy.java:94)
com.twilio.voice.CallInviteProxy$$ExternalSyntheticLambda2.run(D8$$SyntheticClass:0)
android.os.Handler.handleCallback(Handler.java:959)
android.os.Handler.dispatchMessage(Handler.java:100)
android.os.Looper.loopOnce(Looper.java:249)
android.os.Looper.loop(Looper.java:337)
android.app.ActivityThread.main(ActivityThread.java:9410)
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:614)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1005)
Caused by android.os.RemoteException: Remote stack trace:
at com.android.server.notification.NotificationManagerService.checkDisqualifyingFeatures(NotificationManagerService.java:8286)
at com.android.server.notification.NotificationManagerService.enqueueNotificationInternal(NotificationManagerService.java:7699)
at com.android.server.notification.NotificationManagerService.enqueueNotificationInternal(NotificationManagerService.java:7496)
at com.android.server.notification.NotificationManagerService.enqueueNotificationInternal(NotificationManagerService.java:7486)
at com.android.server.notification.NotificationManagerService$12.enqueueNotificationWithTag(NotificationManagerService.java:3833)
Reproduction Steps
- Open the app to ensure that Twilio SDK initiated
- Make a call to the app
- App is crashing
- See error
Expected Behavior
Call intent should appear
Actual Behavior
App is crashing
Reproduction Frequency
Every time
Screenshots
Software and Device Information
Please complete the following information.
- Device: Xiomi 15t Pro
- OS: Android 15
- React version: 19.0.0
- React Native version: 0.79.5
- Node version: 20
- npm or yarn version:10.8.2
Issue
The app is crashing on the incoming call with
Not posted. CallStyle notifications must be for a foreground service or user initated job or use a fullScreenIntent.exception.Pre-submission Checklist
or sensitive account information (API keys, credentials, etc.) when reporting this issue.
Description
We are using expo for react native development. We are using this fork for the Expo integration. While we have problems with running own implementation or using the proposed fork. We can do outgoing calls, and they work well. We are using the
expo-notificationspackage, and we actually receive our regular push messages. But on incoming call the app crashes with the next stack traces. My first assumption was that it's a problem withexpo-notificationsbut in the stack trace there iscom.twiliovoicereactnative.VoiceServicementioned.I am testing on an Android 15 real device with allowed microphone permissions..
Reproduction Steps
Expected Behavior
Call intent should appear
Actual Behavior
App is crashing
Reproduction Frequency
Every time
Screenshots
Software and Device Information
Please complete the following information.