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

[PBE 5272] Stop foreground service when uninstalling StreamVideo instance #1148

Merged
merged 2 commits into from
Jul 23, 2024

Conversation

liviu-timar
Copy link
Member

@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
6 checks passed
@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.

2 participants