cometchat / chat-sdk-android

Text Chat SDK for Android
https://www.cometchat.com
22 stars 12 forks source link

calls not working on Android 10 (version 2.0.6) #31

Closed Andro-Samurai closed 3 years ago

Andro-Samurai commented 4 years ago

calls keep disconnecting only on Android 10 only

works fine on iOS & Android 5.0.2 & Android 8.0 & Android 9.0 Screenshot_20200707-204420

OmarMahmoud120 commented 4 years ago

same here on android 10 the log E/JitsiMeetSDK(11993): [features/base/lib-jitsi-meet] Failed to load config from https://rtc-eu.cometchat.io/config.js?room=15942020605de9f837c9968c6a7fd51c1e729234170597e185 Error(TypeError){"message":"Network request failed"} its seems that config timeout in2.5 seconds. Any chance the server is somehow taking longer to respond? check this issue

adityagokula2210 commented 4 years ago

Hello @Andro-Samurai We are checking this at our end. We will get back to you at the earliest.

Thanks

Andro-Samurai commented 4 years ago

Hello @Andro-Samurai Can you please confirm the version of the Android SDK you are using.

Android SDK 2.0.6 also had the same problem on 2.0.3

adityagokula2210 commented 4 years ago

@Andro-Samurai Can you please share the logs with me so that I can investigate this better.

Thanks

adityagokula2210 commented 4 years ago

@Andro-Samurai Also, it would be great if you could check with some other device and confirm if this is happening in all the android 10 devices. I just tested on android 10 and everything seems to be working as expected.

Thanks

Andro-Samurai commented 4 years ago

@adityagokula2210 same problem on: Samsung S10+ Nokia 7 Plus

and on emulator (Pixel 3 )

Andro-Samurai commented 4 years ago

@adityagokula2210

2020-07-08 14:03:34.733 13724-13724/com.app.dakhterapp E/CallMeta: Call{sessionId=‘1594206205a3f5aba3998db11501e308f47e686839724f7158’, callStatus=‘ongoing’, action=‘ongoing’, rawData=‘{“action”:“ongoing”,“entities”:{“by”:{“entity”:{“uid”:“user_42”,“name”:“Test3 test test”,“status”:“available”,“role”:“default”,“lastActiveAt”:1594203716},“entityType”:“user”},“for”:{“entity”:{“uid”:“doctor_1",“name”:“Hanan M”,“avatar”:“http:\/\/_OURURL\/docpic\/hananM.png”,“status”:“available”,“role”:“default”,“lastActiveAt”:1594204256},“entityType”:“user”},“on”:{“entity”:{“sessionid”:“1594206205a3f5aba3998db11501e308f47e686839724f7158”,“sender”:“doctor_1”,“receiverType”:“user”,“receiver”:“user_42”,“status”:“ongoing”,“type”:“video”,“data”:{“entities”:{“sender”:{“entity”:{“uid”:“doctor_1”,“name”:“Hanan M”,“role”:“default”,“avatar”:“http:\/\/_OURURL\/docpic\/hananM.png”,“status”:“available”,“lastActiveAt”:1594204256},“entityType”:“user”},“receiver”:{“entity”:{“uid”:“user_42",“name”:“Test3 test test”,“role”:“default”,“status”:“available”,“lastActiveAt”:1594203716},“entityType”:“user”}}},“initiatedAt”:1594206205,“startedAt”:1594206214,“wsChannel”:{“identity”:“[204546db1e57db4]1594206205a3f5aba3998db11501e308f47e686839724f7158",“secret”:“8cf60679dc2099756394b77171065cd9dc3c7ac5",“service”:“204546db1e57db4.call”},“joinedAt”:1594206214},“entityType”:“call”}}}’, initiatedAt=1594206205, joinedAt=1594206214, callInitiator=User{uid=‘doctor_1’, name=‘Hanan M’, avatar=‘http://_OUR_URL_/docpic/hananM.png’, link=‘null’, role=‘default’, metadata=null, status=‘online’, statusMessage=‘null’, lastActiveAt=1594204256, hasBlockedMe=false, blockedByMe=false}, callReceiver=User{uid=‘user_42’, name=‘Test3 test test’, avatar=‘null’, link=‘null’, role=‘default’, metadata=null, status=‘online’, statusMessage=‘null’, lastActiveAt=1594203716, hasBlockedMe=false, blockedByMe=false}, id=555, muid=‘null’, sender=User{uid=‘user_42’, name=‘Test3 test test’, avatar=‘null’, link=‘null’, role=‘default’, metadata=null, status=‘online’, statusMessage=‘null’, lastActiveAt=1594203716, hasBlockedMe=false, blockedByMe=false}, receiverUid=‘doctor_1’, type=‘video’, receiverType=‘user’, category=‘call’, sentAt=1594206214, deliveredAt=0, readAt=0, metadata=null, readByMeAt=0, deliveredToMeAt=0, deletedAt=0, editedAt=0, deletedBy=‘null’, editedBy=‘null’, updatedAt=1594206214} 2020-07-08 14:03:35.017 13724-13724/com.app.dakhterapp D/ReactNative: ReactInstanceManager.createReactContextInBackground() 2020-07-08 14:03:35.018 13724-13724/com.app.dakhterapp D/ReactNative: ReactInstanceManager.attachRootViewToInstance() 2020-07-08 14:03:35.058 13724-14284/com.app.dakhterapp I/JitsiMeetSDK: [features/base/storage] redux state rehydrated as { ‘features/blur’: { blurEnabled: false }, ‘features/base/known-domains’: [ ‘alpha.jitsi.net’, ‘beta.meet.jit.si’, ‘meet.jit.si’, ‘8x8.vc’ ], ‘features/base/settings’: { avatarID: ‘435597e8f313536f77998969369cff93’, displayName: ‘Test3 test test’, localFlipX: true, startAudioOnly: false, startWithAudioMuted: false, startWithVideoMuted: false }, ‘features/dropbox’: {}, ‘features/video-layout’: { tileViewEnabled: false }, ‘features/calendar-sync’: {}, ‘features/recent-list’: [], ‘features/welcome’: {} } 2020-07-08 14:03:35.090 13724-14296/com.app.dakhterapp I/JitsiMeetSDK: AudioMode Update audio route for mode: 0 2020-07-08 14:03:35.090 13724-14296/com.app.dakhterapp I/JitsiMeetSDK: AudioMode Updating audio device list 2020-07-08 14:03:35.092 13724-14284/com.app.dakhterapp I/JitsiMeetSDK: [features/base/net-info] Network changed {“isOnline”:true,“details”:{“isConnectionExpensive”:false},“networkType”:“wifi”} 2020-07-08 14:03:35.099 13724-14284/com.app.dakhterapp D/JitsiMeetSDK: [features/base/lastn] There is no active conference, not updating last N 2020-07-08 14:03:35.099 13724-14284/com.app.dakhterapp I/JitsiMeetSDK: [features/base/connection] No connection found while disconnecting. 2020-07-08 14:03:35.210 13724-13724/com.app.dakhterapp E/onUserJoined:: doctor_1 2020-07-08 14:03:35.568 13724-14284/com.app.dakhterapp E/JitsiMeetSDK: [features/base/lib-jitsi-meet] Failed to load config from https://rtc-eu.cometchat.io/config.js?room=1594206205a3f5aba3998db11501e308f47e686839724f7158 Error(TypeError){“message”:“Network request failed”} 2020-07-08 14:03:35.586 13724-14284/com.app.dakhterapp I/JitsiMeetSDK: [features/overlay] The conference will be reloaded after 25 seconds. 2020-07-08 14:03:35.586 13724-14284/com.app.dakhterapp D/JitsiMeetSDK: ExternalAPI Sending event: CONFERENCE_TERMINATED with data: { NativeMap: {“url”:“https://rtc-eu.cometchat.io/1594206205a3f5aba3998db11501e308f47e686839724f7158#config.startAudioOnly=false&config.startWithVideoMuted=false&config.startWithAudioMuted=false”,“error”:“TypeError: Network request failed”} } 2020-07-08 14:03:35.681 13724-13742/com.app.dakhterapp W/System: A resource failed to call close. 2020-07-08 14:03:35.683 13724-13742/com.app.dakhterapp I/chatty: uid=10172(com.app.dakhterapp) FinalizerDaemon identical 11 lines 2020-07-08 14:03:35.683 13724-13742/com.app.dakhterapp W/System: A resource failed to call close. 2020-07-08 14:03:35.684 13724-13742/com.app.dakhterapp W/System: A resource failed to call close. 2020-07-08 14:03:35.697 13724-13742/com.app.dakhterapp I/chatty: uid=10172(com.app.dakhterapp) FinalizerDaemon identical 16 lines 2020-07-08 14:03:35.697 13724-13742/com.app.dakhterapp W/System: A resource failed to call close. 2020-07-08 14:04:01.906 13724-14284/com.app.dakhterapp I/JitsiMeetSDK: [features/app] Reloading the conference using URL: undefined 2020-07-08 14:04:01.922 13724-14284/com.app.dakhterapp I/JitsiMeetSDK: [features/base/connection] No connection found while disconnecting. 2020-07-08 14:04:01.931 13724-14284/com.app.dakhterapp I/JitsiMeetSDK: [modules/RTC/ScreenObtainer.js] Screen sharing not supported by the current browser: react-native 2020-07-08 14:04:01.937 13724-14284/com.app.dakhterapp I/JitsiMeetSDK: [modules/RTC/ScreenObtainer.js] Desktop sharing disabled 2020-07-08 14:04:01.938 13724-14284/com.app.dakhterapp I/JitsiMeetSDK: [features/base/media] Start muted: 2020-07-08 14:04:01.938 13724-14284/com.app.dakhterapp I/JitsiMeetSDK: [features/base/media] Start audio only set to false 2020-07-08 14:04:01.960 13724-14284/com.app.dakhterapp D/JitsiMeetSDK: [features/analytics] Loaded 1 analytics handlers 2020-07-08 14:04:01.965 13724-14284/com.app.dakhterapp W/JitsiMeetSDK: [features/calendar-sync] Calendar access not granted. 2020-07-08 14:04:01.966 13724-14284/com.app.dakhterapp D/JitsiMeetSDK: [modules/RTC/RTCUtils.js] Available devices: [ { kind: ‘videoinput’, label: ‘0’, groupId: ‘’, deviceId: ‘0’, facing: ‘environment’ }, { kind: ‘videoinput’, label: ‘1’, groupId: ‘’, deviceId: ‘1’, facing: ‘front’ }, { kind: ‘audioinput’, label: ‘Audio’, groupId: ‘’, deviceId: ‘audio-1’ } ]

adityagokula2210 commented 4 years ago

Thanks for the information @Andro-Samurai . I will get back to you at the earliest.

Thanks

Andro-Samurai commented 4 years ago

@adityagokula2210 any update on this? or at least a walk around to make Android 10 work!!

Andro-Samurai commented 4 years ago

UPDATE: version 2.0.7 does not work on ANdroid 10 too!!

adityagokula2210 commented 4 years ago

Hello @Andro-Samurai Can you please provide me with the project-level, app-level gradle files, and also the gradle.properties file for your project so that I can have a look. This seems to be a problem with the R8 code shrinker which has been incorporated with the latest versions of android studio and gradle plugin.

Thanks

Andro-Samurai commented 4 years ago

Hello @adityagokula2210 here you go.

By the way, when we removed the firebase firestore library from our app, comet chat worked correctly. but we can not remove firestore because our app is built on it

regards,

gradles.zip

OmarMahmoud120 commented 4 years ago

api 'com.google.firebase:firebase-firestore:21.3.0' implementation 'com.google.firebase:firebase-common:19.3.0' implementation 'androidx.annotation:annotation:1.1.0'

Andro-Samurai commented 4 years ago

the issue is still happening on version v2.1.0 comet chat does not work with firebase firestore on Android 10

proveshapyne commented 3 years ago

Hello @Andro-Samurai,

I am closing out this ticket as we have reached out to you over email. We can stay connected there. For further technical help, please feel free to write to help@cometchat.com.

Regards, Provesha

abdallahwaseem commented 1 year ago

Hello, did you find a solution for this issue?