[PBE 5272] Stop foreground service when uninstalling StreamVideo instance #1148
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🎯 Goal
Calling
StreamVideo.removeClient()
doesn’t end up callingmaybeStopForegroundService()
, 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
leave
instead ofcleanup
for active call inStreamVideoImpl#cleanup
.leave
will eventually stop the foreground service.safeCall
toCall#leave()
.🎉 GIF