Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call is finished after reconnecting to WiFi network on client app #1172

Open
Miara opened this issue Sep 2, 2024 · 4 comments
Open

Call is finished after reconnecting to WiFi network on client app #1172

Miara opened this issue Sep 2, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@Miara
Copy link

Miara commented Sep 2, 2024

Describe the bug
Something is broken with reconnecting a network during call (when network is disabled and enabled).

❗️It doesn't happen in your demo-app , but it happens in my app, although I used as simple as possible code from your SDK
❗️It happens only on WiFi! But it doesn't happen with reconnecting to mobile network.

I prepared extremely simple calling activity, using only your SDK's code:

{
@OptIn(StreamCallActivityDelicateApi::class)
class CallActivity : ComposeStreamCallActivity() {

    override val uiDelegate: StreamActivityUiDelegate<StreamCallActivity> = StreamCallActivityComposeDelegate()
    override val configuration: StreamCallActivityConfiguration =
        StreamCallActivityConfiguration(closeScreenOnCallEnded = false)
}
}

Declaration in AndroidManifest:

<activity  
  android:name=".CallActivity"  
  android:supportsPictureInPicture="true"  
  android:showOnLockScreen="true"  
  android:showWhenLocked="true"  
  android:launchMode="singleTop"  
  android:exported="false">  
 <intent-filter android:priority="1">  
 <action android:name="io.getstream.video.android.action.INCOMING_CALL" />  
 <action android:name="io.getstream.video.android.action.NOTIFICATION" />  
 <action android:name="io.getstream.video.android.action.LIVE_CALL" />  
 <action android:name="io.getstream.video.android.action.ONGOING_CALL" />  
 <action android:name="io.getstream.video.android.action.ACCEPT_CALL" />  
 <action android:name="io.getstream.video.android.action.OUTGOING_CALL" />  
 </intent-filter></activity>

And call initialization. NOTE that when the type is "default". - then bug appears as well

startActivity(StreamCallActivity.callIntent(  
        action = NotificationHandler.ACTION_OUTGOING_CALL,  
  context = this,  
  cid = StreamCallId(if(isVideo) "video" else "audio", UUID.randomUUID().toString()),  
  members = listOf(userId),  
  clazz = CallActivity::class.java,  
))

What's weird, is that when I use same code as above in your repository instead of your CallActivity in demo-app - reconnecting works properly. It doesn't finish call nor activity.

But with the same code in my app - the call is finished. Im wondering what's going on - is that some remote config for your API Key in your repository?

I noticed that other settings declared in GetStream dashboard don't work well. For example, I have such definition for video call: speaker on by default camera on by default microphone on by default but afterwards, none of these settings is enabled when actual call is started. Microphone is off, speaker is off and camera is off.

I'm not sure if this is not separate bug, but maybe it is related to reconnecting issue due to some reconnecting timeout policies?

SDK version

  • 10.0.13

To Reproduce
Steps to reproduce the behavior:

  1. Start call
  2. Disconnect and connect to WiFi network
  3. Call is finished..

Expected behavior
After reconnecting WiFi network, call is still continued

Device:

  • Vendor and model: Samsung Galaxy Note 10+

  • Android version: 12

  • Vendor and model: Samsung A7

  • Android version: 10

@Miara Miara added the bug Something isn't working label Sep 2, 2024
@liviu-timar
Copy link
Member

Hi @Miara, we'll look into it as soon as possible, we'll keep you updated.

@swift-io-tech
Copy link

Any update on this? seems like a major bug, can re-produce this 100%

@aleksandar-apostolov
Copy link
Collaborator

aleksandar-apostolov commented Sep 18, 2024

This is actually a UI issue within the ComposeStreamCallActivity or rather its parent. We are going to do a release next week with a fix.

@Miara
Copy link
Author

Miara commented Oct 22, 2024

@aleksandar-apostolov any update on that one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants