diff --git a/packages/react-native-sdk/CHANGELOG.md b/packages/react-native-sdk/CHANGELOG.md index 72474e2b5..604c137ff 100644 --- a/packages/react-native-sdk/CHANGELOG.md +++ b/packages/react-native-sdk/CHANGELOG.md @@ -2,6 +2,13 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). +### [0.9.3](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-native-sdk-0.9.2...@stream-io/video-react-native-sdk-0.9.3) (2024-07-24) + + +### Bug Fixes + +* incoming call notifications not removed on call.leave on android 8 and above ([4000f8a](https://github.com/GetStream/stream-video-js/commit/4000f8a06299fc056b135992eba5d745c9202289)) + ### [0.9.2](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-native-sdk-0.9.1...@stream-io/video-react-native-sdk-0.9.2) (2024-07-12) ### Dependency Updates diff --git a/packages/react-native-sdk/package.json b/packages/react-native-sdk/package.json index ea0dfd00d..854826496 100644 --- a/packages/react-native-sdk/package.json +++ b/packages/react-native-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@stream-io/video-react-native-sdk", - "version": "0.9.2", + "version": "0.9.3", "packageManager": "yarn@3.2.4", "main": "dist/commonjs/index.js", "module": "dist/module/index.js", diff --git a/packages/react-native-sdk/src/hooks/useAndroidKeepCallAliveEffect.ts b/packages/react-native-sdk/src/hooks/useAndroidKeepCallAliveEffect.ts index 725fc4f33..dd985eac7 100644 --- a/packages/react-native-sdk/src/hooks/useAndroidKeepCallAliveEffect.ts +++ b/packages/react-native-sdk/src/hooks/useAndroidKeepCallAliveEffect.ts @@ -74,7 +74,7 @@ export const useAndroidKeepCallAliveEffect = () => { const callingState = useCallCallingState(); useEffect((): (() => void) | undefined => { - if (!isAndroid7OrBelow || !activeCallCid) { + if (Platform.OS === 'ios' || !activeCallCid) { return; } @@ -90,7 +90,9 @@ export const useAndroidKeepCallAliveEffect = () => { ); if (activeCallNotification) { // this means that we have a incoming call notification shown as foreground service and we must stop it - notifee.stopForegroundService(); + if (isAndroid7OrBelow) { + notifee.stopForegroundService(); + } notifee.cancelDisplayedNotification(activeCallCid); } // request for notification permission and then start the foreground service diff --git a/sample-apps/react-native/dogfood/package.json b/sample-apps/react-native/dogfood/package.json index c256f21f6..caae5ff32 100644 --- a/sample-apps/react-native/dogfood/package.json +++ b/sample-apps/react-native/dogfood/package.json @@ -1,6 +1,6 @@ { "name": "@stream-io/video-react-native-dogfood", - "version": "4.0.2", + "version": "4.0.3", "private": true, "scripts": { "android": "react-native run-android",