communication-ui-library-android icon indicating copy to clipboard operation
communication-ui-library-android copied to clipboard

Call composite closes but call is still ongoing

Open cheymonty opened this issue 1 year ago • 0 comments

Describe the bug I am using this library inside React Native, and am seeing an issue with the CallComposite.dismiss() function. I have a push notification that, when received, calls dismiss() but when the app is in the background and moved to foreground by pressing the notification, the composite is dismissed, but the android os still says the call is active. I believe this is due to having two activities open, but was wondering if there could be someway to completely kill the call. I did some digging and found CallingAction.CallEndRequested() in the exit() function. Maybe a boolean to pass that kills the call? I can work on the fix if there is some guidance on the best course of action.

To Reproduce Steps to reproduce the behavior:

  1. With two activities open, and acs being the one on top, make the launch() call from the bottom activity and add a timer that x seconds after launching the composite, dismiss() is called
  2. Send app to background (not killed)
  3. Open app: The composite will close but the os will show that the call is still ongoing
  4. This bug is [always] reproducible.

Expected behavior A clear and concise description of what you expected to happen. The composite is closed and the os does not say the call is ongoing

Screenshots os

AzureCommunicationUILibrary (please complete the following information):

  • Version [1.4.0]

Smartphone (please complete the following information):

  • Device: [Pixel 4a]
  • API: [33]

cheymonty avatar May 14 '24 23:05 cheymonty