Skip to content

Conversation

@liviu-timar
Copy link
Contributor

@liviu-timar liviu-timar commented Jul 23, 2024

🎯 Goal

Calling StreamVideo.removeClient() doesn’t end up calling maybeStopForegroundService(), so any ongoing call notification will still show after removeClient()

Ideally all calls are explicitly left first, but it would be nice if removeClient() was a reliable way to fully nuke everything Stream Video related.

🎫 JIRA Issue

https://stream-io.atlassian.net/browse/PBE-5272

🛠 Implementation details

  • Called leave instead of cleanup for active call in StreamVideoImpl#cleanup.
  • leave will eventually stop the foreground service.
  • Added safeCall to Call#leave().

🎉 GIF

@liviu-timar liviu-timar requested a review from a team as a code owner July 23, 2024 11:04
@liviu-timar liviu-timar changed the title [PBE 5272] stop call service at remove client [PBE 5272] Stop foreground service when removing client Jul 23, 2024
@liviu-timar liviu-timar changed the title [PBE 5272] Stop foreground service when removing client [PBE 5272] Stop foreground service when uninstalling StreamVideo instance Jul 23, 2024
Copy link
Contributor

@kanat kanat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kanat kanat merged commit 69aa83f into develop Jul 23, 2024
@kanat kanat deleted the PBE-5272-stop-CallService-at-removeClient branch July 23, 2024 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants