I am using @zoom/react-native-videosdk@^1.13.11 in my React Native app, and it works correctly for the most part. However, I’m encountering an issue when ending a call. After calling the leaveSession method, the session is successfully removed from the ongoing video call, but on iOS, it still shows the call as active on the system call screen and in the top-notch status bar.
Here’s my leaveSession method:
const leaveSession = async () => {
setLoadingMessage(t("CALL.LEAVING"));
callDetector?.dispose();
notifee.cancelAllNotifications();
clearNotifications();
RNCallKeep.endAllCalls();
if (isSharing) {
await shareHelper.stopShare();
}
zoom.leaveSession(false);
setIsInSession(false);
listeners.current.forEach((listener) => listener.remove());
listeners.current = [];
};
Despite calling RNCallKeep.endAllCalls() and zoom.leaveSession(false), the call status persists. Any suggestions on resolving this issue?