Android Connection Problem

Hi there! We have a problem with integrating jitsi. We deployed our own server, and when we try to connect to it from IOS everything is ok, but from android we get reconnection every minute or so. What can be the problem? We are trying to connect with sample app, modified it to accept all certificates

Hey @mrmontegro welcome to our community!

We’ll need some logs to know more. Can you get the logcat for the app when the disconnect / reconnet happens?

02-21 16:32:32.433 27424 27472 I JitsiMeetSDK: [features/base/net-info] Network changed {“isOnline”:false,“details”:{“cellularGeneration”:“4g”,“isConnectionExpensive”:true},“networkType”:“cellular”}
02-21 16:32:32.458 27424 27472 I JitsiMeetSDK: [features/base/net-info] Network changed {“isOnline”:false,“details”:{“cellularGeneration”:“4g”,“isConnectionExpensive”:true},“networkType”:“cellular”}
02-21 16:32:32.592 27424 27472 I JitsiMeetSDK: [modules/xmpp/xmpp.js] (TIME) Strophe unknown: 1582295552516
02-21 16:32:32.593 27424 27472 I JitsiMeetSDK: [modules/xmpp/xmpp.js] (TIME) Strophe disconnected: 1582295552517
02-21 16:32:32.593 27424 27472 I JitsiMeetSDK: [modules/xmpp/strophe.ping.js] Ping interval cleared
02-21 16:32:32.598 27424 27472 E JitsiMeetSDK: [modules/xmpp/xmpp.js] XMPP connection dropped!
02-21 16:32:32.599 27424 27472 I JitsiMeetSDK: [modules/statistics/statistics.js] {“type”:“operational”,“action”:“connection.failed”,“attributes”:{“error_type”:“connection.droppedError”,“error_message”:“connection-dropped-error”,“suspend_time”:14,“time_since_last_success”:29843}}
02-21 16:32:32.664 27424 27472 I JitsiMeetSDK: [features/overlay] The conference will be reloaded after 10 seconds.
02-21 16:32:32.871 27424 27472 I JitsiMeetSDK: JitsiMeetOngoingConferenceServiceService stopped
02-21 16:32:32.871 27424 27472 D JitsiMeetSDK: ExternalAPI Sending event: CONFERENCE_TERMINATED with data: { NativeMap: {“url”:“htt ps://jitsi-server/12”,“error”:“connection.droppedError”} }
02-21 16:32:32.873 27424 27472 D JitsiMeetSDK: JitsiConnectionService reportCallFailed 4FA5FAF5-704D-454F-9818-81C692C89FBE
02-21 16:32:32.873 27424 27472 D JitsiMeetSDK: JitsiConnectionService onStateChanged: DISCONNECTED 4FA5FAF5-704D-454F-9818-81C692C89FBE
02-21 16:32:32.986 27424 27472 I JitsiMeetSDK: [modules/rttmonitor/rttmonitor.js] Stopping RttMonitor.
02-21 16:32:32.987 27424 27493 I JitsiMeetSDK: AudioMode Update audio route for mode: 0
02-21 16:32:32.987 27424 27472 I JitsiMeetSDK: [modules/e2eping/e2eping.js] Stopping e2eping
02-21 16:32:32.987 27424 27472 I JitsiMeetSDK: [modules/xmpp/ChatRoom.js] do leave 12@conference.jitsi-server/6a5da128
02-21 16:32:32.999 27424 27493 I JitsiMeetSDK: AudioMode Updating audio device list
02-21 16:32:33.043 27424 27472 D JitsiMeetSDK: [features/base/lastn] There is no active conference, not updating last N
02-21 16:32:33.043 27424 27472 I JitsiMeetSDK: [modules/RTC/TraceablePeerConnection.js] Closing TPC[11,p2p:false]…
02-21 16:32:33.045 27424 27472 I JitsiMeetSDK: [modules/RTC/TraceablePeerConnection.js] Closing TPC[12,p2p:true]…
02-21 16:32:33.049 27424 27472 I JitsiMeetSDK: [features/base/net-info] Network changed {“isOnline”:false,“details”:null,“networkType”:“none”}
02-21 16:32:33.055 27424 27472 E JitsiMeetSDK: [modules/xmpp/strophe.util.js] Strophe: request id 221.1 error 0 happened
02-21 16:32:33.055 27424 27472 W JitsiMeetSDK: [modules/xmpp/strophe.util.js] Strophe: request errored, status: 0, number of errors: 3
02-21 16:32:33.074 27424 27472 E JitsiMeetSDK: [modules/xmpp/strophe.util.js] Strophe: request id 222.1 error 0 happened
02-21 16:32:33.074 27424 27472 W JitsiMeetSDK: [modules/xmpp/strophe.util.js] Strophe: request errored, status: 0, number of errors: 4
02-21 16:32:33.081 27424 27472 E JitsiMeetSDK: [modules/xmpp/strophe.util.js] Strophe: request id 223.2 error 0 happened
02-21 16:32:33.081 27424 27472 W JitsiMeetSDK: [modules/xmpp/strophe.util.js] Strophe: request errored, status: 0, number of errors: 5
02-21 16:32:33.085 27424 27472 I JitsiMeetSDK: [modules/xmpp/xmpp.js] (TIME) Strophe unknown: 1582295553077
02-21 16:32:33.086 27424 27472 I JitsiMeetSDK: [modules/xmpp/xmpp.js] (TIME) Strophe disconnected: 1582295553078
02-21 16:32:33.087 27424 27472 E JitsiMeetSDK: [modules/xmpp/xmpp.js] XMPP connection dropped!

Vladyslav Sosnovskyi, [21.02.20 16:33]

02-21 16:32:33.087 27424 27472 I JitsiMeetSDK: [modules/statistics/statistics.js] {“type”:“operational”,“action”:“connection.failed”,“attributes”:{“error_type”:“connection.droppedError”,“error_message”:“connection-dropped-error”,“suspend_time”:14,“time_since_last_success”:30404}}
02-21 16:32:38.008 27424 27472 D JitsiMeetSDK: [modules/RTC/RTC.js] Removed remote tracks for e844d1f8 count: 0
02-21 16:32:38.041 27424 27472 D JitsiMeetSDK: [JitsiConference.js] P2P? peerCount: 0, hasBotPeer: false => false
02-21 16:32:38.050 27424 27472 I JitsiMeetSDK: [features/base/conference] JitsiConference.leave() rejected with: Error(Error){“message”:“The timeout for the confirmation about leaving the room expired.”,“stack”:“Error: The timeout for the confirmation about leaving the room expired.\n at o (h ttp://localhost:8081/index.android.bundle?platform=android&dev=true&minify=false:218087:86)\n at anonymous (ht tp://localhost:8081/index.android.bundle?platform=android&dev=true&minify=false:218081:27)\n at anonymous (h ttp://localhost:8081/index.android.bundle?platform=android&dev=true&minify=false:98906:19)\n at apply (native)\n at emit (ht tp://localhost:8081/index.android.bundle?platform=android&dev=true&minify=false:5653:42)\n at apply (native)\n at __callFunction (h ttp://localhost:8081/index.android.bundle?platform=android&dev=true&minify=false:5081:49)\n at anonymous (ht tp://localhost:8081/index.android.bundle?platform=android&dev=true&minify=false:4794:31)\n at __guard (htt p://localhost:8081/index.android.bundle?platform=android&dev=true&minify=false:5035:15)\n at callFunctionReturnFlushedQueue (htt p://localhost:8081/index.android.bundle?platform=android&dev=true&minify=false:4793:21)”}
02-21 16:32:41.580 27424 27472 I JitsiMeetSDK: [features/base/net-info] Network changed {“isOnline”:false,“details”:{“cellularGeneration”:“3g”,“isConnectionExpensive”:true},“networkType”:“cellular”}
02-21 16:32:43.191 27424 27472 I JitsiMeetSDK: [features/base/net-info] Network changed {“isOnline”:true,“details”:{“cellularGeneration”:“3g”,“isConnectionExpensive”:true},“networkType”:“cellular”}
02-21 16:32:43.192 27424 27472 I JitsiMeetSDK: [features/base/net-info] Network changed {“isOnline”:true,“details”:{“cellularGeneration”:“4g”,“isConnectionExpensive”:true},“networkType”:“cellular”}[quote=“saghul, post:2, topic:22047, full:true”]

I’ll give you more if you need, but as far as i understood, that’s where the disconnection started, previous logs were usual and occurred even when operation was normal. After logs about isOnline = true the reconnection is done as usual when network is dropped.

Looks like your were on 4G and the connection dropped. That’s whatt the system logs tell us. We do rety, but give up after a few failedd attempts.