flutter-webrtc / callkeep

iOS CallKit and Android ConnectionService for Flutter
MIT License
133 stars 147 forks source link

Resived The Call,but when answer the call, app opens to home screen, not to video call screen #63

Open muhammedrashidm opened 3 years ago

muhammedrashidm commented 3 years ago

W/FlutterJNI( 9878): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: FlutterCallKeep.Event. Response ID: 0

run:

I/flutter ( 9878): backgroundMessage: message => {data: {caller_id: +8618612345678, roomId: M1Eo7b66xdKZ7cd3JjHf, type: VIDEO_CALL, uuid: xxxxx-xxxxx-xxxxx-xxxxx, has_video: true, caller_id_type: number, caller_name: hello}} I/flutter ( 9878): backgroundMessage: displayIncomingCall (+8618612345678) D/RNCK:VoiceConnectionService( 9878): setAvailable: false D/RNCK:VoiceConnectionService( 9878): setAvailable: true D/FLT:CallKeepModule( 9878): displayIncomingCall number: +8618612345678, callerName: hello E/RNCK:VoiceConnectionService( 9878): Constructor D/RNCK:VoiceConnectionService( 9878): setAvailable: false D/RNCK:VoiceConnectionService( 9878): setAvailable: true I/TelecomFramework( 9878): VoiceConnectionService: notifyCreateConnectionComplete TC@16_1: (...->CSW.hCCC)->CS.crCoC->H.CS.crCoC(ctm/cast)@E-E-E-BEY I/TelecomFramework( 9878): VoiceConnectionService: onAudioStateChanged TC@16_1 [AudioState isMuted: false, route: SPEAKER, supportedRouteMask: SPEAKER, activeBluetoothDevice: [null], supportedBluetoothDevices: []]: (...->CSW.hCCC->ICFG.sF->ICFG.sF->ICFG.sF->CILH.sL->CILH.oQC->BCF.gBS->BCF.gBS->ICFG.sF->ICFG.sF->ICFG.sF->ICFG.sF->ICFG.sF->ICFG.sF->ICFG.sF->CARSM.pM_UPDATE_SYSTEM_AUDIO_ROUTE)->CS.cASC->H.CS.cASC(ctm/cast/cast)@E-E-E-BEY I/TelecomFramework( 9878): VoiceConnectionService: onAudioStateChanged TC@16_1 [AudioState isMuted: false, route: SPEAKER, supportedRouteMask: SPEAKER, activeBluetoothDevice: [null], supportedBluetoothDevices: []]: (...->CSW.hCCC->ICFG.sF->ICFG.sF->ICFG.sF->CILH.sL->CILH.oQC->BCF.gBS->BCF.gBS->ICFG.sF->ICFG.sF->ICFG.sF->ICFG.sF->ICFG.sF->ICFG.sF->ICFG.sF->CAMSM.pM_2002->CARSM.pM_SWITCH_FOCUS)->CS.cASC->H.CS.cASC(ctm/cast/cast)@E-E-E-BEY I/TelecomFramework( 9878): VoiceConnectionService: answer TC@16_1: (ICA.aC->CSFM.rF)->CS.an->H.CS.an(cad/cast)@E-BFk D/RNCK:VoiceConnection( 9878): onAnswer called D/RNCK:VoiceConnection( 9878): onAnswer executed W/FlutterJNI( 9878): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: FlutterCallKeep.Event. Response ID: 0 I/chatty ( 9878): uid=10154(com.packageName.me) identical 2 lines W/FlutterJNI( 9878): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: FlutterCallKeep.Event. Response ID: 0 I/flutter ( 9878): [CallKeep] INFO: received event "CallKeepPerformAnswerCallAction" {callUUID: xxxxx-xxxxx-xxxxx-xxxxx} I/flutter ( 9878): THIS IS ROOM ID TxkvHUnr806U7MGXx3XR I/flutter ( 9878): backgroundMessage: CallKeepPerformAnswerCallAction xxxxx-xxxxx-xxxxx-xxxxx I/flutter ( 9878): [CallKeep] INFO: received event "CallKeepDidActivateAudioSession" {} D/FLT:CallKeepModule( 9878): backToForeground, app isOpened ?true I/flutter ( 9878): [CallKeep] INFO: received event "CallKeepPerformAnswerCallAction" {callUUID: xxxxx-xxxxx-xxxxx-xxxxx} D/FLT:CallKeepModule( 9878): endCall called I/flutter ( 9878): THIS IS ROOM ID M1Eo7b66xdKZ7cd3JjHf I/flutter ( 9878): backgroundMessage: CallKeepPerformAnswerCallAction xxxxx-xxxxx-xxxxx-xxxxx D/RNCK:VoiceConnection( 9878): onDisconnect executed D/RNCK:VoiceConnectionService( 9878): deinitConnection:xxxxx-xxxxx-xxxxx-xxxxx D/FLT:CallKeepModule( 9878): endCall executed D/FLT:CallKeepModule( 9878): backToForeground, app isOpened ?true D/FLT:CallKeepModule( 9878): endCall called W/FlutterJNI( 9878): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: FlutterCallKeep.Event. Response ID: 0 I/flutter ( 9878): [CallKeep] INFO: received event "CallKeepPerformEndCallAction" {callUUID: xxxxx-xxxxx-xxxxx-xxxxx} I/flutter ( 9878): backgroundMessage: CallKeepPerformEndCallAction xxxxx-xxxxx-xxxxx-xxxxx W/FlutterJNI( 9878): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: FlutterCallKeep.Event. Response ID: 0 I/flutter ( 9878): [CallKeep] INFO: received event "CallKeepDidActivateAudioSession" {} I/flutter ( 9878): [CallKeep] INFO: received event "CallKeepPerformEndCallAction" {callUUID: xxxxx-xxxxx-xxxxx-xxxxx} I/flutter ( 9878): backgroundMessage: CallKeepPerformEndCallAction xxxxx-xxxxx-xxxxx-xxxxx D/EGL_emulation( 9878): eglCreateContext: 0xe7d87da0: maj 2 min 0 rcv 2 D/EGL_emulation( 9878): eglCreateContext: 0xe7da0a00: maj 2 min 0 rcv 2 D/HostConnection( 9878): HostConnection::get() New Host Connection established 0xe7d8ace0, tid 10767 D/HostConnection( 9878): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_2 D/EGL_emulation( 9878): eglMakeCurrent: 0xe7da0a00: ver 2 0 (tinfo 0xab24a290) (first time) D/HostConnection( 9878): HostConnection::get() New Host Connection established 0xe7d8ee10, tid 10766 D/HostConnection( 9878): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_2 D/EGL_emulation( 9878): eglMakeCurrent: 0xe7d87da0: ver 2 0 (tinfo 0xab27aaf0) (first time) D/EGL_emulation( 9878): eglCreateContext: 0xe7da6110: maj 2 min 0 rcv 2 I/Choreographer( 9878): Skipped 36 frames! The application may be doing too much work on its main thread. D/RNCK:VoiceConnectionService( 9878): setAvailable: false D/RNCK:VoiceConnectionService( 9878): setAvailable: true [GETX] Instance "GetMaterialController" has been created [GETX] Instance "GetMaterialController" has been initialized D/RNCK:VoiceConnectionService( 9878): setAvailable: false D/RNCK:VoiceConnectionService( 9878): setAvailable: true D/RNCK:VoiceConnectionService( 9878): setAvailable: false D/RNCK:VoiceConnectionService( 9878): setAvailable: true D/RNCK:VoiceConnectionService( 9878): setAvailable: false D/RNCK:VoiceConnectionService( 9878): setAvailable: true

ejimenez93 commented 3 years ago

@muhammedrashidm -- did you ever figure out a solution to this?

muhammedrashidm commented 3 years ago

not yet.

muhammedrashidm commented 3 years ago

@muhammedrashidm -- did you ever figure out a solution to this?

not yet

alexzh16 commented 1 year ago

This implementation only on your app side. call kit only has event with answer call, its in your side, what do you won't implement after answer - homescreen or what do you won't.