react-native-webrtc / react-native-callkeep

iOS CallKit framework and Android ConnectionService for React Native
ISC License
925 stars 445 forks source link

Receiving: UnsupportedOperationException: System does not support feature android.software.telecom error on android #815

Open awlui opened 3 weeks ago

awlui commented 3 weeks ago

Bug report

Description

Hey team! One of our customers is reporting that the app crashes immediately when booting our app. It looks like this is the error that they are running into. I guess their device doesn't have telephony support? It looks like a tablet so I guess that lines up. There are no workarounds, correct? Other than declaring no support for devices with no telephony support

Steps to Reproduce

Can't open the app on android tablet

Versions

- Callkeep: 4.3.8
- React Native:0.71.19
- iOS:
- Android: 14
- Phone model: Lenovo TB132FU

Logs

Exception java.lang.UnsupportedOperationException: System does not support feature android.software.telecom
  at android.os.Parcel.createExceptionOrNull (Parcel.java:3023)
  at android.os.Parcel.createException (Parcel.java:2995)
  at android.os.Parcel.readException (Parcel.java:2978)
  at android.os.Parcel.readException (Parcel.java:2920)
  at com.android.internal.telecom.ITelecomService$Stub$Proxy.registerPhoneAccount (ITelecomService.java:1738)
  at android.telecom.TelecomManager.registerPhoneAccount (TelecomManager.java:1503)
  at io.wazo.callkeep.RNCallKeepModule.registerPhoneAccount (RNCallKeepModule.java:979)
  at io.wazo.callkeep.RNCallKeepModule.registerPhoneAccount (RNCallKeepModule.java:286)
  at io.wazo.callkeep.RNCallKeepModule.setup (RNCallKeepModule.java:263)
  at java.lang.reflect.Method.invoke
  at com.facebook.react.bridge.JavaMethodWrapper.invoke (JavaMethodWrapper.java:372)
  at com.facebook.react.bridge.JavaModuleWrapper.invoke (JavaModuleWrapper.java:188)
  at com.facebook.jni.NativeRunnable.run
  at android.os.Handler.handleCallback (Handler.java:942)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage (MessageQueueThreadHandler.java:27)
  at android.os.Looper.loopOnce (Looper.java:201)
  at android.os.Looper.loop (Looper.java:288)
  at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run (MessageQueueThreadImpl.java:228)
  at java.lang.Thread.run (Thread.java:1012)
Caused by android.os.RemoteException: Remote stack trace:
  at com.android.server.telecom.TelecomServiceImpl.enforceTelecomFeature (TelecomServiceImpl.java:2449)
  at com.android.server.telecom.TelecomServiceImpl.enforcePhoneAccountModificationForPackage (TelecomServiceImpl.java:2409)
  at com.android.server.telecom.TelecomServiceImpl.-$$Nest$menforcePhoneAccountModificationForPackage
  at com.android.server.telecom.TelecomServiceImpl$1.registerPhoneAccount (TelecomServiceImpl.java:564)
  at com.android.internal.telecom.ITelecomService$Stub.onTransact (ITelecomService.java:857)