Skip to content

Commit

Permalink
Merge branch 'main' into fix/reusable-call
Browse files Browse the repository at this point in the history
  • Loading branch information
myandrienko authored Jul 24, 2024
2 parents 4959fdc + f4967a8 commit 32449d4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
7 changes: 7 additions & 0 deletions packages/react-native-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stream-io/video-react-native-sdk",
"version": "0.9.2",
"version": "0.9.3",
"packageManager": "[email protected]",
"main": "dist/commonjs/index.js",
"module": "dist/module/index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const useAndroidKeepCallAliveEffect = () => {
const callingState = useCallCallingState();

useEffect((): (() => void) | undefined => {
if (!isAndroid7OrBelow || !activeCallCid) {
if (Platform.OS === 'ios' || !activeCallCid) {
return;
}

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sample-apps/react-native/dogfood/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 32449d4

Please sign in to comment.