Skip to content

Fix 'stopForegroundService' method - #742

Merged
sboily merged 1 commit into
react-native-webrtc:masterfrom
avorra:fix-stopfg
Sep 14, 2026
Merged

sboily merged 1 commit into
react-native-webrtc:masterfrom
avorra:fix-stopfg

Conversation

@ramijarrar

Copy link
Copy Markdown
Contributor

Fixes incorrect use of Service.stopForeground.

@sboily sboily left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Reviewed at 3e8d55b. This correctly replaces the invalid notification-behavior flag with STOP_FOREGROUND_REMOVE and is compatible with #875 and #876. We reproduced the notification cleanup defect and validated the equivalent fix in our React Native 0.87.1 host app on Samsung SM-S921W (API 36) and Pixel Tablet (API 37).

Two pre-existing issues remain for follow-up: guard stopForeground(int) on API 23 with stopForeground(true), and stop the foreground service only after the last connection ends. This PR introduces neither issue; our mobile integration already handles both.

@sboily
sboily merged commit 71f80cb into react-native-webrtc:master Sep 14, 2026
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