react-native-callkeep icon indicating copy to clipboard operation
react-native-callkeep copied to clipboard

The answerCall and rejectedCall event listeners are automatically triggered as soon as incoming call received on Android

Open khushal87 opened this issue 3 years ago • 2 comments

Bug report

  • [ ] I've checked the example to reproduce the issue.

  • Reproduced on:

  • [x] Android

  • [ ] iOS

Description

When I get an incoming call, my event listeners for answerCall, endCall are automatically triggered on Android. This doesn't happen on iOS. What should be the reason for this?

Steps to Reproduce

  • Trigger a call from a device.
  • Receive an incoming call notification on android.
  • The addEventListener for answerCall and endCall is automatically triggered. Basically for me the rejectedCall is triggered and thereby the call instance is dropped from the caller's end.

Versions

- Callkeep:^4.3.3
- React Native:0.70.4
- iOS:16.0
- Android: 9
- Phone model: Redmi Y2 

Logs

Paste here

khushal87 avatar Nov 10 '22 07:11 khushal87

Did you solved this? Happens when app is in the background (Not killed) and call displayIncomingCall. It triggers endCall listener immediately.

bsor-dev avatar Nov 20 '22 14:11 bsor-dev

Hi @bsor-dev ! I have the same issue, when the app in in the Background and I call displayIncomingCall, endCall event is triggered immediately, I have some LogCat logs showing this:

2023-05-08 15:29:20.622 23406-23480 RNCallKeep              com.my-app                           D  [RNCallKeepModule] getInstance : ok
2023-05-08 15:29:20.622 23406-23480 RNCallKeep              com.my-app                           D  [RNCallKeepModule] constructor
2023-05-08 15:29:20.627 23406-23406 RNCallKeep              com.my-app                           D  [VoiceConnectionService] startObserving, event count: 0
2023-05-08 15:29:20.629 23406-23480 RNCallKeep              com.my-app                           D  [RNCallKeepModule] updating react context
2023-05-08 15:29:20.642 23406-23406 InstallReferrerState    com.my-app                           D  OK
2023-05-08 15:29:20.655 23406-23480 AudioTrack              com.my-app                           I  createTrack_l(2228334): AUDIO_OUTPUT_FLAG_FAST successful; frameCount 960 -> 960
2023-05-08 15:29:20.664 23406-23480 InCallProximityManager  com.my-app                           D  InCallProximityManager
2023-05-08 15:29:20.665 23406-23480 InCallProximityManager  com.my-app                           D  use native screen locker...
2023-05-08 15:29:20.665 23406-23480 InCallManager           com.my-app                           D  InCallManager initialized
2023-05-08 15:29:20.666 23406-23406 AppRTCProximitySensor   com.my-app                           D  AppRTCProximitySensor@[name=main, id=2]
2023-05-08 15:29:20.667 23406-23406 AppRTCBluetoothManager  com.my-app                           D  create@[name=main, id=2]
2023-05-08 15:29:20.667 23406-23406 AppRTCBluetoothManager  com.my-app                           D  ctor
2023-05-08 15:29:20.685 23406-23480 org.webrtc.Logging      com.my-app                           I  NativeLibrary: Loading native library: jingle_peerconnection_so
2023-05-08 15:29:20.685 23406-23480 org.webrtc.Logging      com.my-app                           I  LibraryLoader: Loading library: jingle_peerconnection_so
2023-05-08 15:29:20.689 23406-23480 org.webrtc.Logging      com.my-app                           I  PeerConnectionFactory: PeerConnectionFactory was initialized without an injected Loggable. Any existing Loggable will be deleted.
2023-05-08 15:29:20.691 23406-23480 org.webrtc.Logging      com.my-app                           I  EglBase14Impl: Using OpenGL ES version 2
2023-05-08 15:29:20.700 23406-23480 org.webrtc.Logging      com.my-app                           I  WebRtcAudioManagerExternal: Sample rate is set to 48000 Hz
2023-05-08 15:29:20.700 23406-23480 org.webrtc.Logging      com.my-app                           I  WebRtcAudioManagerExternal: Sample rate is set to 48000 Hz
2023-05-08 15:29:20.700 23406-23480 org.webrtc.Logging      com.my-app                           I  JavaAudioDeviceModule: createAudioDeviceModule
2023-05-08 15:29:20.700 23406-23480 org.webrtc.Logging      com.my-app                           I  JavaAudioDeviceModule: HW NS will be used.
2023-05-08 15:29:20.701 23406-23480 org.webrtc.Logging      com.my-app                           I  JavaAudioDeviceModule: HW AEC will be used.
2023-05-08 15:29:20.702 23406-23480 org.webrtc.Logging      com.my-app                           I  WebRtcAudioEffectsExternal: ctor@[name=create_react_context, id=91267]
2023-05-08 15:29:20.702 23406-23480 org.webrtc.Logging      com.my-app                           I  WebRtcAudioRecordExternal: ctor@[name=create_react_context, id=91267]
2023-05-08 15:29:20.703 23406-23480 org.webrtc.Logging      com.my-app                           I  WebRtcAudioTrackExternal: ctor@[name=create_react_context, id=91267]
2023-05-08 15:29:20.744 23406-23488 org.webrtc.Logging      com.my-app                           I  WebRtcAudioRecordExternal: enableBuiltInAEC(true)
2023-05-08 15:29:20.744 23406-23488 org.webrtc.Logging      com.my-app                           I  WebRtcAudioEffectsExternal: setAEC(true)
2023-05-08 15:29:20.744 23406-23488 org.webrtc.Logging      com.my-app                           I  WebRtcAudioRecordExternal: enableBuiltInNS(true)
2023-05-08 15:29:20.744 23406-23488 org.webrtc.Logging      com.my-app                           I  WebRtcAudioEffectsExternal: setNS(true)
2023-05-08 15:29:20.745 23406-23487 org.webrtc.Logging      com.my-app                           I  PeerConnectionFactory: onNetworkThreadReady
2023-05-08 15:29:20.745 23406-23489 org.webrtc.Logging      com.my-app                           I  PeerConnectionFactory: onSignalingThreadReady
2023-05-08 15:29:20.745 23406-23488 org.webrtc.Logging      com.my-app                           I  PeerConnectionFactory: onWorkerThreadReady
2023-05-08 15:29:20.785 23406-23480 unknown:ReactContext    com.my-app                           W  initializeMessageQueueThreads() is called.
2023-05-08 15:29:20.791 23406-23406 unknown:ReactNative     com.my-app                           W  Packager connection already open, nooping.
2023-05-08 15:29:20.823 23406-23483 KeyStore                com.my-app                           E  generateKeyInternal failed on request -68
2023-05-08 15:29:20.944 23406-23493 unknown:ReactContext    com.my-app                           W  initializeMessageQueueThreads() is called.
2023-05-08 15:29:20.961 23406-23406 InCallManager           com.my-app                           D  onResume()
2023-05-08 15:29:21.032 23406-23503 SQLiteLog               com.my-app                           W  (28) double-quoted string literal: "notification"
2023-05-08 15:29:21.078 23406-23493 flipper                 com.my-app                           I  flipper: FlipperClient::addPlugin Fresco
2023-05-08 15:29:21.426 23406-23493 WebViewFactory          com.my-app                           I  Loading com.google.android.webview version 113.0.5672.77 (code 567207733)
2023-05-08 15:29:22.472 23406-23492 ReactNativeJS           com.my-app                           I  Running "my-app-phone" with {"rootTag":1}
2023-05-08 15:29:23.480 23406-23483 RNKeychainManager       com.my-app                           V  warming up takes: 2808 ms
2023-05-08 15:29:23.527 23406-23493 InCallManager           com.my-app                           D  setForceSpeakerphoneOn() flag: -1
2023-05-08 15:29:23.527 23406-23493 InCallManager           com.my-app                           E  selectAudioDevice() Can not select EARPIECE from available []
2023-05-08 15:29:23.528 23406-23493 AudioManager            com.my-app                           I  In isSpeakerphoneOn(), calling application: com.my-app
2023-05-08 15:29:23.621 23406-23493 RNCallKeep              com.my-app                           D  [RNCallKeepModule] setup : { NativeMap: {"additionalPermissions":[],"alertDescription":"","cancelButton":"","alertTitle":"","foregroundService":{"channelId":"com.my-app","channelName":"MyApp","notificationTitle":"Nouvel appel","notificationIcon":"../assets/icons/icon.png"},"okButton":"","selfManaged":false} }
2023-05-08 15:29:23.621 23406-23493 RNCallKeep              com.my-app                           D  [VoiceConnectionService] setAvailable: false
2023-05-08 15:29:23.621 23406-23493 RNCallKeep              com.my-app                           D  [VoiceConnectionService] setInitialized: true
2023-05-08 15:29:23.621 23406-23493 RNCallKeep              com.my-app                           D  [RNCallKeepModule] setSettings : { NativeMap: {"additionalPermissions":[],"alertDescription":"","cancelButton":"","alertTitle":"","foregroundService":{"channelId":"com.my-app","channelName":"MyApp","notificationTitle":"Nouvel appel","notificationIcon":"../assets/icons/icon.png"},"okButton":"","selfManaged":false} }
2023-05-08 15:29:23.623 23406-23493 RNCallKeep              com.my-app                           D  [RNCallKeepModule] API Version supports self managed, but it is not enabled in setup
2023-05-08 15:29:23.623 23406-23493 RNCallKeep              com.my-app                           D  [RNCallKeepModule] setSettings : { NativeMap: {"additionalPermissions":[],"alertDescription":"","cancelButton":"","alertTitle":"","foregroundService":{"channelId":"com.my-app","channelName":"MyApp","notificationTitle":"Nouvel appel","notificationIcon":"../assets/icons/icon.png"},"okButton":"","selfManaged":false} }
2023-05-08 15:29:23.624 23406-23406 ReactNative             com.my-app                           I  [GESTURE HANDLER] Initialize gesture handler for root view com.facebook.react.ReactRootView{a41c82d V.E...... ......ID 0,0-1080,2168 #1}
2023-05-08 15:29:23.624 23406-23493 RNCallKeep              com.my-app                           D  [RNCallKeepModule] registerPhoneAccount
2023-05-08 15:29:23.641 23406-23493 RNCallKeep              com.my-app                           D  [RNCallKeepModule] registerEvents
2023-05-08 15:29:23.641 23406-23493 RNCallKeep              com.my-app                           D  [RNCallKeepModule] startObserving, event count: 0
2023-05-08 15:29:23.641 23406-23493 RNCallKeep              com.my-app                           D  [RNCallKeepModule] startObserving, event count: 0
2023-05-08 15:29:23.641 23406-23493 RNCallKeep              com.my-app                           D  [VoiceConnectionService] setAvailable: true
2023-05-08 15:29:23.641 23406-23493 RNCallKeep              com.my-app                           D  [VoiceConnectionService] setInitialized: true
2023-05-08 15:29:23.783 23406-23493 RNCallKeep              com.my-app                           D  [VoiceConnectionService] setAvailable: true
2023-05-08 15:29:23.783 23406-23493 RNCallKeep              com.my-app                           D  [VoiceConnectionService] setInitialized: true
2023-05-08 15:29:24.251 23406-23406 Choreographer           com.my-app                           W  Frame time is 0.012544 ms in the future!  Check that graphics HAL is generating vsync timestamps using the correct timebase.
2023-05-08 15:29:24.446 23406-23493 unknown:ReactNative     com.my-app                           W  Attempt to set local data for view with unknown tag: -1
2023-05-08 15:29:24.520 23406-23493 unknown:Vi...rtyUpdater com.my-app                           W  Could not find generated setter for class com.swmansion.rnscreens.ScreensShadowNode
2023-05-08 15:29:24.918 23406-23492 ReactNativeJS           com.my-app                           I  Registration attempt 1 of 50 - trying
2023-05-08 15:29:25.246 23406-23406 Looper                  com.my-app                           W  PerfMonitor doFrame : time=346ms vsyncFrame=0 latency=14ms procState=2 historyMsgCount=5
2023-05-08 15:29:25.296 23406-23406 Looper                  com.my-app                           W  PerfMonitor doFrame : time=49ms vsyncFrame=0 latency=312ms procState=2 historyMsgCount=10 (msgIndex=1 wall=346ms seq=408 running=284ms runnable=15ms late=14ms h=android.view.Choreographer$FrameHandler c=android.view.Choreographer$FrameDisplayEventReceiver)
2023-05-08 15:29:25.536 23406-23492 ReactNativeJS           com.my-app                           I  Registration attempt 1 of 50 - succeeded
2023-05-08 15:29:42.990 23406-23406 InCallManager           com.my-app                           D  onPause()


The app goes to background


2023-05-08 15:29:43.660 23406-23492 ReactNativeJNI          com.my-app                           I  Memory warning (pressure level: TRIM_MEMORY_UI_HIDDEN) received by JS VM, ignoring because it's non-severe
2023-05-08 15:29:47.398 23406-23406 RNFirebaseMsgReceiver   com.my-app                           D  broadcast received for message
2023-05-08 15:29:47.504 23406-23493 RNCallKeep              com.my-app                           D  [RNCallKeepModule] setSettings : { NativeMap: {"additionalPermissions":[],"alertDescription":"","cancelButton":"","alertTitle":"","foregroundService":{"channelId":"com.my-app","channelName":"MyApp","notificationTitle":"Nouvel appel","notificationIcon":"../assets/icons/icon.png"},"okButton":"","selfManaged":false} }
2023-05-08 15:29:47.508 23406-23492 ReactNativeJS           com.my-app                           I  initWebPhone
2023-05-08 15:29:47.508 23406-23493 RNCallKeep              com.my-app                           D  [RNCallKeepModule] registerPhoneAccount
2023-05-08 15:29:47.516 23406-23493 RNCallKeep              com.my-app                           D  [RNCallKeepModule] registerEvents
2023-05-08 15:29:47.517 23406-23493 RNCallKeep              com.my-app                           D  [RNCallKeepModule] startObserving, event count: 0
2023-05-08 15:29:47.517 23406-23493 RNCallKeep              com.my-app                           D  [VoiceConnectionService] setAvailable: true
2023-05-08 15:29:47.517 23406-23493 RNCallKeep              com.my-app                           D  [VoiceConnectionService] setInitialized: true
2023-05-08 15:29:47.529 23406-23493 RNCallKeep              com.my-app                           D  [RNCallKeepModule] backToForeground, app isOpened ?true
2023-05-08 15:29:47.534 23406-23493 Timeline                com.my-app                           I  Timeline: Activity_launch_request time:221123999
2023-05-08 15:29:47.548 23406-23493 RNCallKeep              com.my-app                           D  [RNCallKeepModule] displayIncomingCall, uuid: 3dec5310-6847-123c-5fa7-0ada053723a4, number: [HIDDEN], callerName: 3dec5310-6847-123c-5fa7-0ada053723a4, hasVideo: false
2023-05-08 15:29:47.625 23406-23493 RNCallKeep              com.my-app                           D  [RNCallKeepModule] reportEndCallWithUUID, uuid: 3dec5310-6847-123c-5fa7-0ada053723a4, reason: 2
2023-05-08 15:29:47.628 23406-23406 RNCallKeep              com.my-app                           D  [VoiceConnectionService] Constructor
2023-05-08 15:29:47.640 23406-23493 RNCallKeep              com.my-app                           W  [RNCallKeepModule] reportEndCallWithUUID ignored because no connection found, uuid: 3dec5310-6847-123c-5fa7-0ada053723a4
2023-05-08 15:29:47.672 23406-23406 RNCallKeep              com.my-app                           D  [VoiceConnectionService] onCreateIncomingConnection, name:3dec5310-6847-123c-5fa7-0ada053723a4, numbertel:Number, isForeground: true, isReachable:false, timeout: null
2023-05-08 15:29:47.673 23406-23406 RNCallKeep              com.my-app                           D  [VoiceConnectionService] createConnection, callerNumber:tel:Number
2023-05-08 15:29:47.679 23406-23406 RNCallKeep              com.my-app                           D  [VoiceConnectionService] PhoneAccount is not SELF_MANAGED, so connection won't be either
2023-05-08 15:29:47.679 23406-23406 RNCallKeep              com.my-app                           D  [VoiceConnection] onStateChanged called, state : 0
2023-05-08 15:29:47.680 23406-23406 RNCallKeep              com.my-app                           D  [VoiceConnection] onStateChanged called, state : 2
2023-05-08 15:29:47.680 23406-23406 RNCallKeep              com.my-app                           D  [VoiceConnection] onStateChanged called, state : 1
2023-05-08 15:29:47.680 23406-23406 RNCallKeep              com.my-app                           D  [VoiceConnectionService] startForegroundService
2023-05-08 15:29:47.692 23406-23406 RNCallKeep              com.my-app                           D  [VoiceConnectionService] Starting foreground service
2023-05-08 15:29:47.882 23406-23406 TelecomFramework        com.my-app                           I  VoiceConnectionService: notifyCreateConnectionComplete TC@169_1: (...->CSW.hCCC)->CS.crCoC->H.CS.crCoC(ck/cast)@E-E-E-QDU
2023-05-08 15:29:48.007 23406-23675 InCallManager           com.my-app                           D  startRingtone(): UriType=_BUNDLE_
2023-05-08 15:29:48.035 23406-23675 InCallManager           com.my-app                           D  startRingtone(): ringer is silent. leave without play.
2023-05-08 15:29:48.046 23406-23493 RNCallKeep              com.my-app                           D  [RNCallKeepModule] displayIncomingCall, uuid: 3dec5310-6847-123c-5fa7-0ada053723a4, number: Number, callerName: Number, hasVideo: false
2023-05-08 15:29:48.089 23406-23406 RNCallKeep              com.my-app                           D  [VoiceConnectionService] onCreateIncomingConnection, name:Number, numbertel:Number, isForeground: true, isReachable:false, timeout: null
2023-05-08 15:29:48.089 23406-23406 RNCallKeep              com.my-app                           D  [VoiceConnectionService] createConnection, callerNumber:tel:Number
2023-05-08 15:29:48.093 23406-23406 RNCallKeep              com.my-app                           D  [VoiceConnectionService] PhoneAccount is not SELF_MANAGED, so connection won't be either
2023-05-08 15:29:48.093 23406-23406 RNCallKeep              com.my-app                           D  [VoiceConnection] onStateChanged called, state : 0
2023-05-08 15:29:48.093 23406-23406 RNCallKeep              com.my-app                           D  [VoiceConnection] onStateChanged called, state : 2
2023-05-08 15:29:48.093 23406-23406 RNCallKeep              com.my-app                           D  [VoiceConnection] onStateChanged called, state : 1
2023-05-08 15:29:48.093 23406-23406 RNCallKeep              com.my-app                           D  [VoiceConnectionService] startForegroundService
2023-05-08 15:29:48.095 23406-23406 RNCallKeep              com.my-app                           D  [VoiceConnectionService] Starting foreground service
2023-05-08 15:29:48.176 23406-23406 TelecomFramework        com.my-app                           I  VoiceConnectionService: notifyCreateConnectionComplete TC@170_1: (...->CSW.hCCC)->CS.crCoC->H.CS.crCoC(cast)@E-E-E-QDo
2023-05-08 15:29:49.127 23406-23406 TelecomFramework        com.my-app                           I  VoiceConnectionService: onAudioStateChanged TC@169_1 [AudioState isMuted: false, route: EARPIECE, supportedRouteMask: EARPIECE, SPEAKER, activeBluetoothDevice: [null], supportedBluetoothDevices: []]: (NCSSF.aC->ICFG.sF->ICFG.sF->ICFG.sF->CARSM.pM_UPDATE_SYSTEM_AUDIO_ROUTE)->CS.cASC->H.CS.cASC(cast)@E-QEM
2023-05-08 15:29:49.127 23406-23406 RNCallKeep              com.my-app                           D  [VoiceConnection] onCallAudioStateChanged muted :false
2023-05-08 15:29:49.133 23406-23406 RNCallKeep              com.my-app                           D  [RNCallKeepModule][onReceive] ACTION_DID_CHANGE_AUDIO_ROUTE
2023-05-08 15:29:49.135 23406-23406 RNCallKeep              com.my-app                           V  [RNCallKeepModule] sendEventToJS, eventName: RNCallKeepDidChangeAudioRoute, bound: true, hasListeners: true args : { NativeMap: {"output":"EARPIECE","callUUID":"3dec5310-6847-123c-5fa7-0ada053723a4","handle":"Number"} }
2023-05-08 15:29:49.139 23406-23406 TelecomFramework        com.my-app                           I  VoiceConnectionService: onAudioStateChanged TC@169_1 [AudioState isMuted: false, route: EARPIECE, supportedRouteMask: EARPIECE, SPEAKER, activeBluetoothDevice: [null], supportedBluetoothDevices: []]: (NCSSF.aC->ICFG.sF->ICFG.sF->ICFG.sF->CAMSM.pM_2002->CARSM.pM_SWITCH_FOCUS)->CS.cASC->H.CS.cASC(cast)@E-QEM
2023-05-08 15:29:49.139 23406-23406 RNCallKeep              com.my-app                           D  [VoiceConnection] onCallAudioStateChanged muted :false
2023-05-08 15:29:49.142 23406-23406 RNCallKeep              com.my-app                           D  [RNCallKeepModule][onReceive] ACTION_DID_CHANGE_AUDIO_ROUTE
2023-05-08 15:29:49.143 23406-23406 RNCallKeep              com.my-app                           V  [RNCallKeepModule] sendEventToJS, eventName: RNCallKeepDidChangeAudioRoute, bound: true, hasListeners: true args : { NativeMap: {"output":"EARPIECE","callUUID":"3dec5310-6847-123c-5fa7-0ada053723a4","handle":"Number"} }


The notification is displayed, I don't do anything with it


2023-05-08 15:29:53.191 23406-23406 TelecomFramework        com.my-app                           I  VoiceConnectionService: reject TC@170_1: (...->CSW.hCCC->ICFG.pF)->CS.r->H.CS.r(cast/cast)@E-E-E-QDo
2023-05-08 15:29:53.191 23406-23406 RNCallKeep              com.my-app                           D  [VoiceConnection] onReject() executed
2023-05-08 15:29:53.193 23406-23406 RNCallKeep              com.my-app                           D  [VoiceConnection] onReject executed, rejectReason: 0, replyMessage: null, rejected:false
2023-05-08 15:29:53.193 23406-23406 RNCallKeep              com.my-app                           D  [VoiceConnection] onStateChanged called, state : 6
2023-05-08 15:29:53.195 23406-23406 RNCallKeep              com.my-app                           D  [VoiceConnection] onReject executed
2023-05-08 15:29:53.195 23406-23406 RNCallKeep              com.my-app                           D  [VoiceConnectionService] deinitConnection:3dec5310-6847-123c-5fa7-0ada053723a4
2023-05-08 15:29:53.195 23406-23406 RNCallKeep              com.my-app                           D  [VoiceConnectionService] stopForegroundService
2023-05-08 15:29:53.218 23406-23406 RNCallKeep              com.my-app                           D  [RNCallKeepModule][onReceive] ACTION_END_CALL
2023-05-08 15:29:53.218 23406-23406 RNCallKeep              com.my-app                           V  [RNCallKeepModule] sendEventToJS, eventName: RNCallKeepPerformEndCallAction, bound: true, hasListeners: true args : { NativeMap: {"callUUID":"3dec5310-6847-123c-5fa7-0ada053723a4"} }
2023-05-08 15:29:53.225 23406-23492 ReactNativeJS           com.my-app                           I  onEndCallAction called
2023-05-08 15:29:53.263 23406-23884 InCallWakeLockUtils     com.my-app                           D  releasePartialWakeLock(). sta=false
2023-05-08 15:29:53.539 23406-23493 RNCallKeep              com.my-app                           D  [RNCallKeepModule] endCall called, uuid: 3dec5310-6847-123c-5fa7-0ada053723a4
2023-05-08 15:29:53.554 23406-23493 RNCallKeep              com.my-app                           W  [RNCallKeepModule] endCall ignored because no connection found, uuid: 3dec5310-6847-123c-5fa7-0ada053723a4
2023-05-08 15:29:53.858 23406-23406 Choreographer           com.my-app                           W  Frame time is 0.077153 ms in the future!  Check that graphics HAL is generating vsync timestamps using the correct timebase.


I click on accept incoming call button on the notification


2023-05-08 15:30:03.064 23406-23406 TelecomFramework        com.my-app                           I  VoiceConnectionService: answer TC@169_1: (ICA.aC->CSFM.rF)->CS.an->H.CS.an(cgad/cast)@E-QHM
2023-05-08 15:30:03.064 23406-23406 RNCallKeep              com.my-app                           D  [VoiceConnection] onAnswer(int) executed
2023-05-08 15:30:03.064 23406-23406 RNCallKeep              com.my-app                           D  [VoiceConnection] onAnswer called, videoState: 0, answered: false
2023-05-08 15:30:03.066 23406-23406 RNCallKeep              com.my-app                           D  [VoiceConnection] onAnswer executed
2023-05-08 15:30:03.070 23406-23406 RNCallKeep              com.my-app                           D  [RNCallKeepModule][onReceive] ACTION_ANSWER_CALL
2023-05-08 15:30:03.071 23406-23406 RNCallKeep              com.my-app                           V  [RNCallKeepModule] sendEventToJS, eventName: RNCallKeepPerformAnswerCallAction, bound: true, hasListeners: true args : { NativeMap: {"withVideo":false,"callUUID":"3dec5310-6847-123c-5fa7-0ada053723a4"} }
2023-05-08 15:30:03.072 23406-23406 RNCallKeep              com.my-app                           D  [RNCallKeepModule][onReceive] ACTION_AUDIO_SESSION
2023-05-08 15:30:03.072 23406-23406 RNCallKeep              com.my-app                           V  [RNCallKeepModule] sendEventToJS, eventName: RNCallKeepDidActivateAudioSession, bound: true, hasListeners: true args : null
2023-05-08 15:30:03.082 23406-23493 RNCallKeep              com.my-app                           D  [RNCallKeepModule] backToForeground, app isOpened ?true
2023-05-08 15:30:03.082 23406-23493 Timeline                com.my-app                           I  Timeline: Activity_launch_request time:221139547
2023-05-08 15:30:03.089 23406-23493 RNCallKeep              com.my-app                           D  [RNCallKeepModule] reportEndCallWithUUID, uuid: 3dec5310-6847-123c-5fa7-0ada053723a4, reason: 2
2023-05-08 15:30:03.093 23406-23493 RNCallKeep              com.my-app                           W  [RNCallKeepModule] reportEndCallWithUUID ignored because no connection found, uuid: 3dec5310-6847-123c-5fa7-0ada053723a4
2023-05-08 15:30:03.102 23406-23493 RNCallKeep              com.my-app                           D  [RNCallKeepModule] setCurrentCallActive, uuid: 3dec5310-6847-123c-5fa7-0ada053723a4
2023-05-08 15:30:03.102 23406-23493 RNCallKeep              com.my-app                           W  [RNCallKeepModule] setCurrentCallActive ignored because no connection found, uuid: 3dec5310-6847-123c-5fa7-0ada053723a4
2023-05-08 15:30:03.136 23406-23493 Timeline                com.my-app                           I  Timeline: Activity_launch_request time:221139601
2023-05-08 15:30:03.150 23406-23493 RNCallKeep              com.my-app                           D  [RNCallKeepModule] setCurrentCallActive, uuid: 3dec5310-6847-123c-5fa7-0ada053723a4
2023-05-08 15:30:03.150 23406-23493 RNCallKeep              com.my-app                           W  [RNCallKeepModule] setCurrentCallActive ignored because no connection found, uuid: 3dec5310-6847-123c-5fa7-0ada053723a4
2023-05-08 15:30:03.154 23406-23493 RNCallKeep              com.my-app                           D  [RNCallKeepModule] setCurrentCallActive, uuid: 3dec5310-6847-123c-5fa7-0ada053723a4
2023-05-08 15:30:03.154 23406-23493 RNCallKeep              com.my-app                           W  [RNCallKeepModule] setCurrentCallActive ignored because no connection found, uuid: 3dec5310-6847-123c-5fa7-0ada053723a4
2023-05-08 15:30:03.160 23406-23939 com.oney.W...bRTCModule com.my-app                           D  getUserMedia(audio): { NativeMap: {"echoCancellation":true} }
2023-05-08 15:30:03.184 23406-23939 com.oney.W...bRTCModule com.my-app                           D  MediaStream id: 3a841ab2-1826-46f4-bf5b-a0f951388579
2023-05-08 15:30:03.189 23406-23939 com.oney.W...bRTCModule com.my-app                           D  getUserMedia(audio): { NativeMap: {"echoCancellation":true} }
2023-05-08 15:30:03.195 23406-23939 com.oney.W...bRTCModule com.my-app                           D  MediaStream id: ff8f943d-7879-472d-8583-404f820b00c8


I then get an error as the call was previously ended and I now try to answer it...


2023-05-08 15:30:03.197 23406-23492 ReactNativeJS           com.my-app                           E  Mon May 08 2023 15:30:03 GMT+0200 (CEST) | sip.Invitation | Invalid session state Terminated
2023-05-08 15:30:03.216 23406-23492 ReactNativeJS           com.my-app                           E  { [Error: Invalid session state Terminated]
                                                                                                      line: 264282,
                                                                                                      column: 32,
                                                                                                      sourceURL: 'http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.my-app&modulesOnly=false&runModule=true' }
2023-05-08 15:30:03.276 23406-23492 ReactNativeJS           com.my-app                           E  Mon May 08 2023 15:30:03 GMT+0200 (CEST) | sip.Invitation | Invalid session state Terminated
2023-05-08 15:30:03.279 23406-23492 ReactNativeJS           com.my-app                           E  { [Error: Invalid session state Terminated]
                                                                                                      line: 264282,
                                                                                                      column: 32,
                                                                                                      sourceURL: 'http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.my-app&modulesOnly=false&runModule=true' }
2023-05-08 15:30:04.219 23406-23420 com.my-app              com.my-app                           I  Background concurrent copying GC freed 387799(18MB) AllocSpace objects, 55(1852KB) LOS objects, 49% free, 10MB/20MB, paused 87us total 130.323ms

I reject the incoming call as the notification is stuck and when I click on accept it doesn't do anything anymore

2023-05-08 15:30:05.921 23406-23406 TelecomFramework        com.my-app                           I  VoiceConnectionService: reject TC@169_1: (ICA.rC)->CS.r->H.CS.r(cgad/cast)@E-QHY
2023-05-08 15:30:05.922 23406-23406 RNCallKeep              com.my-app                           D  [VoiceConnection] onReject() executed
2023-05-08 15:30:05.922 23406-23406 RNCallKeep              com.my-app                           D  [VoiceConnection] onReject executed, rejectReason: 0, replyMessage: null, rejected:false
2023-05-08 15:30:05.922 23406-23406 RNCallKeep              com.my-app                           D  [VoiceConnection] onStateChanged called, state : 6
2023-05-08 15:30:05.923 23406-23406 RNCallKeep              com.my-app                           D  [VoiceConnection] onReject executed
2023-05-08 15:30:05.924 23406-23406 RNCallKeep              com.my-app                           D  [VoiceConnectionService] deinitConnection:3dec5310-6847-123c-5fa7-0ada053723a4
2023-05-08 15:30:05.924 23406-23406 RNCallKeep              com.my-app                           D  [VoiceConnectionService] stopForegroundService
2023-05-08 15:30:05.928 23406-23406 RNCallKeep              com.my-app                           D  [RNCallKeepModule][onReceive] ACTION_END_CALL
2023-05-08 15:30:05.928 23406-23406 RNCallKeep              com.my-app                           V  [RNCallKeepModule] sendEventToJS, eventName: RNCallKeepPerformEndCallAction, bound: true, hasListeners: true args : { NativeMap: {"callUUID":"3dec5310-6847-123c-5fa7-0ada053723a4"} }

Did you solve it on your end?

avencat avatar May 08 '23 13:05 avencat