GetStream / stream-video-flutter

Flutter Video SDK - Build your own video app experience using Dart, Flutter and the Stream Video Messaging API.
https://getstream.io/video/docs/flutter/
Other
47 stars 23 forks source link

Call Decline Not Working in iOS (Background, Terminated, and Lockscreen) in Version 0.5.5 #782

Open dhara6894 opened 3 weeks ago

dhara6894 commented 3 weeks ago

In stream-video-flutter version 0.5.5, the call decline feature is not working as expected on iOS. While this functionality works correctly on Android, iOS devices do not behave as expected in the following scenarios:

When the app is in the background, When the app is terminated (killed), When the device is locked.

When the receiver declines the call on iOS, the caller still sees "calling" as if the call was not declined. This issue occurs only on iOS, while Android devices handle it properly.

Steps to Reproduce:

  1. Install the app on both iOS and Android devices.
  2. Make a direct call from the Android device (caller).
  3. Try to decline the call on the iOS device (receiver) in the following scenarios:
    • While the app is in the background.
    • When the app has been terminated.
    • When the device is locked.
  4. Notice that, on the iOS device, the call is not properly declined, and the caller still sees the "calling" status even though the call should have been declined.

Expected Behavior:

Actual Behavior:

On iOS, when the receiver declines the call in background, terminated, or lockscreen modes, the caller still sees "calling," indicating the call was not declined properly.

deven98 commented 2 weeks ago

Hi @dhara6894 👋

Thanks for the feedback !

As I mentioned on the other issue, we are currently doing a pretty big rewrite of the package with this PR: #776 After testing it out with the same branch, we could not reproduce this issue. If possible, can you test this out with the PR branch and let us know if this works?

If you do not have time, this branch should be soon merged into main and you can test it out in the next release.

Thanks!