@stream-io/video-react-native-sdk 1.23.0 → 1.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/dist/commonjs/components/Call/CallContent/CallContent.js +2 -2
- package/dist/commonjs/components/Call/CallContent/CallContent.js.map +1 -1
- package/dist/commonjs/components/Call/CallContent/RTCViewPipIOS.js +2 -2
- package/dist/commonjs/components/Call/CallContent/RTCViewPipIOS.js.map +1 -1
- package/dist/commonjs/components/Call/CallContent/RTCViewPipNative.js +3 -3
- package/dist/commonjs/components/Call/CallContent/RTCViewPipNative.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/AcceptCallButton.js +3 -3
- package/dist/commonjs/components/Call/CallControls/AcceptCallButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/HangupCallButton.js +3 -3
- package/dist/commonjs/components/Call/CallControls/HangupCallButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/RejectCallButton.js +2 -2
- package/dist/commonjs/components/Call/CallControls/RejectCallButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js +2 -2
- package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
- package/dist/commonjs/components/Call/Lobby/JoinCallButton.js +2 -2
- package/dist/commonjs/components/Call/Lobby/JoinCallButton.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js +4 -4
- package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js +2 -2
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamPlayer/LivestreamPlayer.js +4 -4
- package/dist/commonjs/components/Livestream/LivestreamPlayer/LivestreamPlayer.js.map +1 -1
- package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLobby.js +2 -2
- package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLobby.js.map +1 -1
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js +2 -2
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js.map +1 -1
- package/dist/commonjs/contexts/internal/ScreenshotIosContext.js +3 -3
- package/dist/commonjs/contexts/internal/ScreenshotIosContext.js.map +1 -1
- package/dist/commonjs/hooks/push/useInitAndroidTokenAndRest.js +1 -1
- package/dist/commonjs/hooks/push/useInitAndroidTokenAndRest.js.map +1 -1
- package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js +2 -2
- package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +1 -1
- package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js +13 -13
- package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
- package/dist/commonjs/hooks/push/useProcessPushCallEffect.js +2 -2
- package/dist/commonjs/hooks/push/useProcessPushCallEffect.js.map +1 -1
- package/dist/commonjs/hooks/push/useProcessPushNonRingingCallEffect.js +1 -1
- package/dist/commonjs/hooks/push/useProcessPushNonRingingCallEffect.js.map +1 -1
- package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js +10 -10
- package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
- package/dist/commonjs/hooks/usePermissionRequest.js +2 -2
- package/dist/commonjs/hooks/usePermissionRequest.js.map +1 -1
- package/dist/commonjs/hooks/useScreenShareButton.js +4 -4
- package/dist/commonjs/hooks/useScreenShareButton.js.map +1 -1
- package/dist/commonjs/hooks/useScreenshot.js +2 -2
- package/dist/commonjs/hooks/useScreenshot.js.map +1 -1
- package/dist/commonjs/modules/call-manager/PrevLibDetection.js +1 -1
- package/dist/commonjs/modules/call-manager/PrevLibDetection.js.map +1 -1
- package/dist/commonjs/providers/BusyTonePlayer.js +6 -6
- package/dist/commonjs/providers/BusyTonePlayer.js.map +1 -1
- package/dist/commonjs/providers/NoiseCancellation/NoiseCancellationProvider.js +2 -2
- package/dist/commonjs/providers/NoiseCancellation/NoiseCancellationProvider.js.map +1 -1
- package/dist/commonjs/providers/StreamCall/AppStateListener.js +7 -7
- package/dist/commonjs/providers/StreamCall/AppStateListener.js.map +1 -1
- package/dist/commonjs/utils/getAndroidDefaultRingtoneUrl.js +3 -3
- package/dist/commonjs/utils/getAndroidDefaultRingtoneUrl.js.map +1 -1
- package/dist/commonjs/utils/push/android.js +30 -30
- package/dist/commonjs/utils/push/android.js.map +1 -1
- package/dist/commonjs/utils/push/internal/ios.js +9 -9
- package/dist/commonjs/utils/push/internal/ios.js.map +1 -1
- package/dist/commonjs/utils/push/internal/utils.js +11 -11
- package/dist/commonjs/utils/push/internal/utils.js.map +1 -1
- package/dist/commonjs/utils/push/ios.js +21 -21
- package/dist/commonjs/utils/push/ios.js.map +1 -1
- package/dist/commonjs/utils/push/libs/expoNotifications.js +1 -1
- package/dist/commonjs/utils/push/libs/expoNotifications.js.map +1 -1
- package/dist/commonjs/utils/push/libs/firebaseMessaging/index.js +3 -3
- package/dist/commonjs/utils/push/libs/firebaseMessaging/index.js.map +1 -1
- package/dist/commonjs/utils/push/libs/notifee/index.js +3 -3
- package/dist/commonjs/utils/push/libs/notifee/index.js.map +1 -1
- package/dist/commonjs/utils/push/setupIosCallKeepEvents.js +7 -7
- package/dist/commonjs/utils/push/setupIosCallKeepEvents.js.map +1 -1
- package/dist/commonjs/utils/push/setupIosVoipPushEvents.js +4 -4
- package/dist/commonjs/utils/push/setupIosVoipPushEvents.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/module/components/Call/CallContent/CallContent.js +3 -3
- package/dist/module/components/Call/CallContent/CallContent.js.map +1 -1
- package/dist/module/components/Call/CallContent/RTCViewPipIOS.js +3 -3
- package/dist/module/components/Call/CallContent/RTCViewPipIOS.js.map +1 -1
- package/dist/module/components/Call/CallContent/RTCViewPipNative.js +3 -3
- package/dist/module/components/Call/CallContent/RTCViewPipNative.js.map +1 -1
- package/dist/module/components/Call/CallControls/AcceptCallButton.js +3 -3
- package/dist/module/components/Call/CallControls/AcceptCallButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/HangupCallButton.js +3 -4
- package/dist/module/components/Call/CallControls/HangupCallButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/RejectCallButton.js +3 -3
- package/dist/module/components/Call/CallControls/RejectCallButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js +3 -3
- package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
- package/dist/module/components/Call/Lobby/JoinCallButton.js +3 -3
- package/dist/module/components/Call/Lobby/JoinCallButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js +5 -5
- package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js +3 -3
- package/dist/module/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamPlayer/LivestreamPlayer.js +5 -5
- package/dist/module/components/Livestream/LivestreamPlayer/LivestreamPlayer.js.map +1 -1
- package/dist/module/components/Livestream/ViewerLivestream/ViewerLobby.js +3 -4
- package/dist/module/components/Livestream/ViewerLivestream/ViewerLobby.js.map +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js +3 -3
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js.map +1 -1
- package/dist/module/contexts/internal/ScreenshotIosContext.js +4 -4
- package/dist/module/contexts/internal/ScreenshotIosContext.js.map +1 -1
- package/dist/module/hooks/push/useInitAndroidTokenAndRest.js +2 -2
- package/dist/module/hooks/push/useInitAndroidTokenAndRest.js.map +1 -1
- package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js +3 -3
- package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +1 -1
- package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js +14 -14
- package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
- package/dist/module/hooks/push/useProcessPushCallEffect.js +3 -3
- package/dist/module/hooks/push/useProcessPushCallEffect.js.map +1 -1
- package/dist/module/hooks/push/useProcessPushNonRingingCallEffect.js +2 -2
- package/dist/module/hooks/push/useProcessPushNonRingingCallEffect.js.map +1 -1
- package/dist/module/hooks/useAndroidKeepCallAliveEffect.js +11 -11
- package/dist/module/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
- package/dist/module/hooks/usePermissionRequest.js +3 -3
- package/dist/module/hooks/usePermissionRequest.js.map +1 -1
- package/dist/module/hooks/useScreenShareButton.js +5 -5
- package/dist/module/hooks/useScreenShareButton.js.map +1 -1
- package/dist/module/hooks/useScreenshot.js +3 -3
- package/dist/module/hooks/useScreenshot.js.map +1 -1
- package/dist/module/modules/call-manager/PrevLibDetection.js +2 -2
- package/dist/module/modules/call-manager/PrevLibDetection.js.map +1 -1
- package/dist/module/providers/BusyTonePlayer.js +7 -7
- package/dist/module/providers/BusyTonePlayer.js.map +1 -1
- package/dist/module/providers/NoiseCancellation/NoiseCancellationProvider.js +3 -3
- package/dist/module/providers/NoiseCancellation/NoiseCancellationProvider.js.map +1 -1
- package/dist/module/providers/StreamCall/AppStateListener.js +8 -8
- package/dist/module/providers/StreamCall/AppStateListener.js.map +1 -1
- package/dist/module/utils/getAndroidDefaultRingtoneUrl.js +3 -3
- package/dist/module/utils/getAndroidDefaultRingtoneUrl.js.map +1 -1
- package/dist/module/utils/push/android.js +31 -31
- package/dist/module/utils/push/android.js.map +1 -1
- package/dist/module/utils/push/internal/ios.js +9 -9
- package/dist/module/utils/push/internal/ios.js.map +1 -1
- package/dist/module/utils/push/internal/utils.js +12 -12
- package/dist/module/utils/push/internal/utils.js.map +1 -1
- package/dist/module/utils/push/ios.js +22 -22
- package/dist/module/utils/push/ios.js.map +1 -1
- package/dist/module/utils/push/libs/expoNotifications.js +2 -2
- package/dist/module/utils/push/libs/expoNotifications.js.map +1 -1
- package/dist/module/utils/push/libs/firebaseMessaging/index.js +3 -3
- package/dist/module/utils/push/libs/firebaseMessaging/index.js.map +1 -1
- package/dist/module/utils/push/libs/notifee/index.js +3 -3
- package/dist/module/utils/push/libs/notifee/index.js.map +1 -1
- package/dist/module/utils/push/setupIosCallKeepEvents.js +8 -8
- package/dist/module/utils/push/setupIosCallKeepEvents.js.map +1 -1
- package/dist/module/utils/push/setupIosVoipPushEvents.js +5 -5
- package/dist/module/utils/push/setupIosVoipPushEvents.js.map +1 -1
- package/dist/module/version.js +1 -1
- package/dist/typescript/components/Call/CallContent/CallContent.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallContent/RTCViewPipIOS.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallContent/RTCViewPipNative.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/AcceptCallButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/HangupCallButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/internal/ReactionsPicker.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/ViewerLivestream/ViewerLobby.d.ts.map +1 -1
- package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.d.ts.map +1 -1
- package/dist/typescript/contexts/internal/ScreenshotIosContext.d.ts.map +1 -1
- package/dist/typescript/hooks/push/useInitAndroidTokenAndRest.d.ts.map +1 -1
- package/dist/typescript/hooks/push/useIosCallkeepWithCallingStateEffect.d.ts.map +1 -1
- package/dist/typescript/hooks/push/useIosVoipPushEventsSetupEffect.d.ts.map +1 -1
- package/dist/typescript/hooks/push/useProcessPushCallEffect.d.ts.map +1 -1
- package/dist/typescript/hooks/push/useProcessPushNonRingingCallEffect.d.ts.map +1 -1
- package/dist/typescript/hooks/useAndroidKeepCallAliveEffect.d.ts.map +1 -1
- package/dist/typescript/hooks/useScreenShareButton.d.ts.map +1 -1
- package/dist/typescript/hooks/useScreenshot.d.ts.map +1 -1
- package/dist/typescript/modules/call-manager/PrevLibDetection.d.ts.map +1 -1
- package/dist/typescript/providers/BusyTonePlayer.d.ts.map +1 -1
- package/dist/typescript/providers/NoiseCancellation/NoiseCancellationProvider.d.ts.map +1 -1
- package/dist/typescript/providers/StreamCall/AppStateListener.d.ts.map +1 -1
- package/dist/typescript/utils/push/android.d.ts.map +1 -1
- package/dist/typescript/utils/push/internal/ios.d.ts.map +1 -1
- package/dist/typescript/utils/push/internal/utils.d.ts.map +1 -1
- package/dist/typescript/utils/push/ios.d.ts.map +1 -1
- package/dist/typescript/utils/push/libs/expoNotifications.d.ts.map +1 -1
- package/dist/typescript/utils/push/libs/firebaseMessaging/index.d.ts.map +1 -1
- package/dist/typescript/utils/push/libs/notifee/index.d.ts.map +1 -1
- package/dist/typescript/utils/push/setupIosCallKeepEvents.d.ts.map +1 -1
- package/dist/typescript/utils/push/setupIosVoipPushEvents.d.ts.map +1 -1
- package/dist/typescript/version.d.ts +1 -1
- package/ios/StreamInCallManager.swift +10 -2
- package/package.json +3 -3
- package/src/components/Call/CallContent/CallContent.tsx +7 -9
- package/src/components/Call/CallContent/RTCViewPipIOS.tsx +7 -9
- package/src/components/Call/CallContent/RTCViewPipNative.tsx +8 -6
- package/src/components/Call/CallControls/AcceptCallButton.tsx +3 -3
- package/src/components/Call/CallControls/HangupCallButton.tsx +3 -4
- package/src/components/Call/CallControls/RejectCallButton.tsx +4 -4
- package/src/components/Call/CallControls/internal/ReactionsPicker.tsx +6 -3
- package/src/components/Call/Lobby/JoinCallButton.tsx +3 -3
- package/src/components/Livestream/LivestreamControls/HostStartStreamButton.tsx +5 -5
- package/src/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.tsx +3 -3
- package/src/components/Livestream/LivestreamPlayer/LivestreamPlayer.tsx +5 -5
- package/src/components/Livestream/ViewerLivestream/ViewerLobby.tsx +3 -4
- package/src/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.tsx +3 -4
- package/src/contexts/internal/ScreenshotIosContext.tsx +12 -14
- package/src/hooks/push/useInitAndroidTokenAndRest.ts +4 -6
- package/src/hooks/push/useIosCallkeepWithCallingStateEffect.ts +9 -3
- package/src/hooks/push/useIosVoipPushEventsSetupEffect.ts +14 -19
- package/src/hooks/push/useProcessPushCallEffect.ts +11 -9
- package/src/hooks/push/useProcessPushNonRingingCallEffect.ts +6 -5
- package/src/hooks/useAndroidKeepCallAliveEffect.ts +17 -14
- package/src/hooks/usePermissionRequest.tsx +3 -3
- package/src/hooks/useScreenShareButton.ts +5 -7
- package/src/hooks/useScreenshot.ts +7 -11
- package/src/modules/call-manager/PrevLibDetection.ts +6 -5
- package/src/providers/BusyTonePlayer.tsx +7 -11
- package/src/providers/NoiseCancellation/NoiseCancellationProvider.tsx +7 -11
- package/src/providers/StreamCall/AppStateListener.tsx +8 -12
- package/src/utils/getAndroidDefaultRingtoneUrl.ts +3 -3
- package/src/utils/push/android.ts +93 -85
- package/src/utils/push/internal/ios.ts +9 -15
- package/src/utils/push/internal/utils.ts +28 -25
- package/src/utils/push/ios.ts +28 -32
- package/src/utils/push/libs/expoNotifications.ts +6 -5
- package/src/utils/push/libs/firebaseMessaging/index.ts +5 -4
- package/src/utils/push/libs/notifee/index.ts +3 -4
- package/src/utils/push/setupIosCallKeepEvents.ts +12 -14
- package/src/utils/push/setupIosVoipPushEvents.ts +7 -9
- package/src/version.ts +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { getLogger } from '@stream-io/video-client';
|
|
2
1
|
import { AppState, NativeModules, Platform } from 'react-native';
|
|
3
2
|
import { getCallKeepLib, getVoipPushNotificationLib } from '../libs';
|
|
4
3
|
import { voipPushNotificationCallCId$ } from './rxSubjects';
|
|
5
4
|
import { pushUnsubscriptionCallbacks } from './constants';
|
|
6
5
|
import { canAddPushWSSubscriptionsRef, shouldCallBeEnded } from './utils';
|
|
6
|
+
import { videoLoggerSystem } from '@stream-io/video-client';
|
|
7
7
|
export const onVoipNotificationReceived = async (notification, pushConfig) => {
|
|
8
8
|
/* --- Example payload ---
|
|
9
9
|
{
|
|
@@ -37,10 +37,10 @@ export const onVoipNotificationReceived = async (notification, pushConfig) => {
|
|
|
37
37
|
if (!call_cid || Platform.OS !== 'ios' || !pushConfig.ios.pushProviderName) {
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
|
-
const logger = getLogger(
|
|
40
|
+
const logger = videoLoggerSystem.getLogger('setupIosVoipPushEvents');
|
|
41
41
|
const client = await pushConfig.createStreamVideoClient();
|
|
42
42
|
if (!client) {
|
|
43
|
-
logger('
|
|
43
|
+
logger.debug('client not found, not processing call.ring voip push notification');
|
|
44
44
|
return;
|
|
45
45
|
}
|
|
46
46
|
const shouldRejectCallWhenBusy = client['rejectCallWhenBusy'] ?? false;
|
|
@@ -53,10 +53,10 @@ export const onVoipNotificationReceived = async (notification, pushConfig) => {
|
|
|
53
53
|
try {
|
|
54
54
|
uuid = await NativeModules?.StreamVideoReactNative?.getIncomingCallUUid(call_cid);
|
|
55
55
|
} catch (error) {
|
|
56
|
-
logger('
|
|
56
|
+
logger.error('Error in getting call uuid from native module', error);
|
|
57
57
|
}
|
|
58
58
|
if (!uuid) {
|
|
59
|
-
logger(
|
|
59
|
+
logger.error(`Not processing call.ring push notification, as no uuid found for call_cid: ${call_cid}`);
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
62
|
const created_by_id = notification?.stream?.created_by_id;
|
|
@@ -68,7 +68,7 @@ export const onVoipNotificationReceived = async (notification, pushConfig) => {
|
|
|
68
68
|
} = shouldCallBeEnded(callFromPush, created_by_id, receiver_id);
|
|
69
69
|
if (mustEndCall) {
|
|
70
70
|
const callkeep = getCallKeepLib();
|
|
71
|
-
logger(
|
|
71
|
+
logger.debug(`callkeep.reportEndCallWithUUID for uuid: ${uuid}, call_cid: ${call_cid}, reason: ${callkeepReason}`);
|
|
72
72
|
callkeep.reportEndCallWithUUID(uuid, callkeepReason);
|
|
73
73
|
const voipPushNotification = getVoipPushNotificationLib();
|
|
74
74
|
voipPushNotification.onVoipNotificationCompleted(uuid);
|
|
@@ -82,13 +82,13 @@ export const onVoipNotificationReceived = async (notification, pushConfig) => {
|
|
|
82
82
|
const unsubscribe = callFromPush.on('all', event => {
|
|
83
83
|
const _canListenToWS = canListenToWS();
|
|
84
84
|
if (!_canListenToWS) {
|
|
85
|
-
logger(
|
|
85
|
+
logger.debug(`unsubscribe due to event callCid: ${call_cid} canListenToWS: ${_canListenToWS}`, event);
|
|
86
86
|
unsubscribe();
|
|
87
87
|
return;
|
|
88
88
|
}
|
|
89
89
|
const _closed = closeCallIfNecessary();
|
|
90
90
|
if (_closed) {
|
|
91
|
-
logger(
|
|
91
|
+
logger.debug(`unsubscribe due to event callCid: ${call_cid} canListenToWS: ${_canListenToWS} shouldCallBeClosed: ${_closed}`, event);
|
|
92
92
|
unsubscribe();
|
|
93
93
|
}
|
|
94
94
|
});
|
|
@@ -97,7 +97,7 @@ export const onVoipNotificationReceived = async (notification, pushConfig) => {
|
|
|
97
97
|
}
|
|
98
98
|
// send the info to this subject, it is listened by callkeep events
|
|
99
99
|
// callkeep events will then accept/reject the call
|
|
100
|
-
logger(
|
|
100
|
+
logger.debug(`call_cid:${call_cid} uuid:${uuid} received and processed from call.ring push notification`);
|
|
101
101
|
voipPushNotificationCallCId$.next(call_cid);
|
|
102
102
|
};
|
|
103
103
|
//# sourceMappingURL=ios.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["AppState","NativeModules","Platform","getCallKeepLib","getVoipPushNotificationLib","voipPushNotificationCallCId$","pushUnsubscriptionCallbacks","canAddPushWSSubscriptionsRef","shouldCallBeEnded","videoLoggerSystem","onVoipNotificationReceived","notification","pushConfig","sender","stream","type","call_cid","OS","ios","pushProviderName","logger","getLogger","client","createStreamVideoClient","debug","shouldRejectCallWhenBusy","StreamVideoReactNative","setShouldRejectCallWhenBusy","callFromPush","onRingingCall","uuid","getIncomingCallUUid","error","created_by_id","receiver_id","closeCallIfNecessary","mustEndCall","callkeepReason","callkeep","reportEndCallWithUUID","voipPushNotification","onVoipNotificationCompleted","closed","canListenToWS","current","currentState","unsubscribe","on","event","_canListenToWS","_closed","get","forEach","cb","set","next"],"sourceRoot":"../../../../../src","sources":["utils/push/internal/ios.ts"],"mappings":"AAAA,SAASA,QAAQ,EAAEC,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAChE,SAASC,cAAc,EAAEC,0BAA0B,QAAQ,SAAS;AACpE,SAASC,4BAA4B,QAAQ,cAAc;AAC3D,SAASC,2BAA2B,QAAQ,aAAa;AACzD,SAASC,4BAA4B,EAAEC,iBAAiB,QAAQ,SAAS;AAEzE,SAASC,iBAAiB,QAAQ,yBAAyB;AAE3D,OAAO,MAAMC,0BAA0B,GAAG,MAAAA,CACxCC,YAAiB,EACjBC,UAAkD,KAC/C;EACH;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAMC,MAAM,GAAGF,YAAY,EAAEG,MAAM,EAAED,MAAM;EAC3C,MAAME,IAAI,GAAGJ,YAAY,EAAEG,MAAM,EAAEC,IAAI;EACvC;EACA,IAAIF,MAAM,KAAK,cAAc,IAAIE,IAAI,KAAK,WAAW,EAAE;IACrD;EACF;EACA,MAAMC,QAAQ,GAAGL,YAAY,EAAEG,MAAM,EAAEE,QAAQ;EAC/C,IAAI,CAACA,QAAQ,IAAId,QAAQ,CAACe,EAAE,KAAK,KAAK,IAAI,CAACL,UAAU,CAACM,GAAG,CAACC,gBAAgB,EAAE;IAC1E;EACF;EACA,MAAMC,MAAM,GAAGX,iBAAiB,CAACY,SAAS,CAAC,wBAAwB,CAAC;EACpE,MAAMC,MAAM,GAAG,MAAMV,UAAU,CAACW,uBAAuB,CA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ACtD,OAAO,IAAI;IACb;IACA,OAAO,KAAK;EACd;EACA,MAAMY,MAAM,GAAGP,oBAAoB,CAAC,CAAC;EACrC,MAAMQ,aAAa,GAAGA,CAAA,KACpBpC,4BAA4B,CAACqC,OAAO,IAAI5C,QAAQ,CAAC6C,YAAY,KAAK,QAAQ;EAC5E,IAAI,CAACH,MAAM,IAAIC,aAAa,CAAC,CAAC,EAAE;IAC9B,MAAMG,WAAW,GAAGlB,YAAY,CAACmB,EAAE,CAAC,KAAK,EAAGC,KAAK,IAAK;MACpD,MAAMC,cAAc,GAAGN,aAAa,CAAC,CAAC;MACtC,IAAI,CAACM,cAAc,EAAE;QACnB7B,MAAM,CAACI,KAAK,CACV,qCAAqCR,QAAQ,mBAAmBiC,cAAc,EAAE,EAChFD,KACF,CAAC;QACDF,WAAW,CAAC,CAAC;QACb;MACF;MACA,MAAMI,OAAO,GAAGf,oBAAoB,CAAC,CAAC;MACtC,IAAIe,OAAO,EAAE;QACX9B,MAAM,CAACI,KAAK,CACV,qCAAqCR,QAAQ,mBAAmBiC,cAAc,wBAAwBC,OAAO,EAAE,EAC/GF,KACF,CAAC;QACDF,WAAW,CAAC,CAAC;MACf;IACF,CAAC,CAAC;IAEFxC,2BAA2B,CAAC6C,GAAG,CAACnC,QAAQ,CAAC,EAAEoC,OAAO,CAAEC,EAAE,IAAKA,EAAE,CAAC,CAAC,CAAC;IAChE/C,2BAA2B,CAACgD,GAAG,CAACtC,QAAQ,EAAE,CAAC8B,WAAW,CAAC,CAAC;EAC1D;EACA;EACA;EACA1B,MAAM,CAACI,KAAK,CACV,YAAYR,QAAQ,SAASc,IAAI,0DACnC,CAAC;EACDzB,4BAA4B,CAACkD,IAAI,CAACvC,QAAQ,CAAC;AAC7C,CAAC","ignoreList":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CallingState,
|
|
1
|
+
import { CallingState, videoLoggerSystem } from '@stream-io/video-client';
|
|
2
2
|
import { onNewCallNotification } from '../../internal/newNotificationCallbacks';
|
|
3
3
|
import { pushUnsubscriptionCallbacks } from './constants';
|
|
4
4
|
/**
|
|
@@ -38,7 +38,7 @@ export const shouldCallBeEnded = (callFromPush, created_by_id, receiver_id) => {
|
|
|
38
38
|
callkeepReason = 4;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
getLogger(
|
|
41
|
+
videoLoggerSystem.getLogger('shouldCallBeEnded').debug(`callCid: ${callFromPush.cid} mustEndCall: ${mustEndCall} callkeepReason: ${callkeepReason}`);
|
|
42
42
|
return {
|
|
43
43
|
mustEndCall,
|
|
44
44
|
callkeepReason
|
|
@@ -57,8 +57,8 @@ export const processCallFromPushInBackground = async (pushConfig, call_cid, acti
|
|
|
57
57
|
return;
|
|
58
58
|
}
|
|
59
59
|
} catch (e) {
|
|
60
|
-
const logger = getLogger(
|
|
61
|
-
logger('
|
|
60
|
+
const logger = videoLoggerSystem.getLogger('processCallFromPushInBackground');
|
|
61
|
+
logger.error('failed to create video client', e);
|
|
62
62
|
return;
|
|
63
63
|
}
|
|
64
64
|
await processCallFromPush(videoClient, call_cid, action, pushConfig);
|
|
@@ -76,8 +76,8 @@ export const processCallFromPush = async (client, call_cid, action, pushConfig)
|
|
|
76
76
|
try {
|
|
77
77
|
callFromPush = await client.onRingingCall(call_cid);
|
|
78
78
|
} catch (e) {
|
|
79
|
-
const logger = getLogger(
|
|
80
|
-
logger('
|
|
79
|
+
const logger = videoLoggerSystem.getLogger('processCallFromPush');
|
|
80
|
+
logger.error('failed to fetch call from push notification', e);
|
|
81
81
|
return;
|
|
82
82
|
}
|
|
83
83
|
// note: when action was pressed or delivered, we dont need to do anything as the only thing is to do is to get the call which adds it to the client
|
|
@@ -86,19 +86,19 @@ export const processCallFromPush = async (client, call_cid, action, pushConfig)
|
|
|
86
86
|
if (pushConfig.publishOptions) {
|
|
87
87
|
callFromPush.updatePublishOptions(pushConfig.publishOptions);
|
|
88
88
|
}
|
|
89
|
-
getLogger(
|
|
89
|
+
videoLoggerSystem.getLogger('processCallFromPush').debug(`joining call from push notification with callCid: ${callFromPush.cid}`);
|
|
90
90
|
await callFromPush.join();
|
|
91
91
|
} else if (action === 'decline') {
|
|
92
92
|
const canReject = callFromPush.state.callingState === CallingState.RINGING;
|
|
93
|
-
getLogger(
|
|
93
|
+
videoLoggerSystem.getLogger('processCallFromPush').debug(`declining call from push notification with callCid: ${callFromPush.cid} reject: ${canReject}`);
|
|
94
94
|
await callFromPush.leave({
|
|
95
95
|
reject: canReject,
|
|
96
96
|
reason: 'decline'
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
99
|
} catch (e) {
|
|
100
|
-
const logger = getLogger(
|
|
101
|
-
logger(
|
|
100
|
+
const logger = videoLoggerSystem.getLogger('processCallFromPush');
|
|
101
|
+
logger.warn(`failed to process ${action} call from push notification`, e);
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
104
|
|
|
@@ -122,8 +122,8 @@ export const processNonIncomingCallFromPush = async (client, call_cid, nonRingin
|
|
|
122
122
|
await callFromPush.get();
|
|
123
123
|
}
|
|
124
124
|
} catch (e) {
|
|
125
|
-
const logger = getLogger(
|
|
126
|
-
logger('
|
|
125
|
+
const logger = videoLoggerSystem.getLogger('processNonIncomingCallFromPush');
|
|
126
|
+
logger.error('failed to fetch call from push notification', e);
|
|
127
127
|
return;
|
|
128
128
|
}
|
|
129
129
|
onNewCallNotification(callFromPush, nonRingingNotificationType);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["CallingState","
|
|
1
|
+
{"version":3,"names":["CallingState","videoLoggerSystem","onNewCallNotification","pushUnsubscriptionCallbacks","shouldCallBeEnded","callFromPush","created_by_id","receiver_id","callSession","state","session","rejected_by","accepted_by","mustEndCall","callkeepReason","getLogger","debug","cid","processCallFromPushInBackground","pushConfig","call_cid","action","videoClient","createStreamVideoClient","e","logger","error","processCallFromPush","client","onRingingCall","publishOptions","updatePublishOptions","join","canReject","callingState","RINGING","leave","reject","reason","warn","processNonIncomingCallFromPush","nonRingingNotificationType","_callFromPush","calls","find","c","callType","callId","split","call","get","clearPushWSEventSubscriptions","unsubscriptionCallbacks","forEach","cb","delete","canAddPushWSSubscriptionsRef","current"],"sourceRoot":"../../../../../src","sources":["utils/push/internal/utils.ts"],"mappings":"AAAA,SAEEA,YAAY,EAEZC,iBAAiB,QACZ,yBAAyB;AAKhC,SAASC,qBAAqB,QAAQ,yCAAyC;AAC/E,SAASC,2BAA2B,QAAQ,aAAa;AAMzD;AACA;AACA;AACA;AACA,OAAO,MAAMC,iBAAiB,GAAGA,CAC/BC,YAAkB,EAClBC,aAAiC,EACjCC,WAA+B,KAC5B;EACH;AACF;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAMC,WAAW,GAAGH,YAAY,CAACI,KAAK,CAACC,OAAO;EAC9C,MAAMC,WAAW,GAAGH,WAAW,EAAEG,WAAW;EAC5C,MAAMC,WAAW,GAAGJ,WAAW,EAAEI,WAAW;EAC5C,IAAIC,WAAW,GAAG,KAAK;EACvB,IAAIC,cAAc,GAAG,CAAC;EACtB,IAAIR,aAAa,IAAIK,WAAW,EAAE;IAChC,IAAIA,WAAW,CAACL,aAAa,CAAC,EAAE;MAC9B;MACAO,WAAW,GAAG,IAAI;MAClBC,cAAc,GAAG,CAAC;IACpB;EACF,CAAC,MAAM,IAAIP,WAAW,IAAII,WAAW,EAAE;IACrC,IAAIA,WAAW,CAACJ,WAAW,CAAC,EAAE;MAC5B;MACAM,WAAW,GAAG,IAAI;MAClBC,cAAc,GAAG,CAAC;IACpB;EACF,CAAC,MAAM,IAAIP,WAAW,IAAIK,WAAW,EAAE;IACrC,IAAIA,WAAW,CAACL,WAAW,CAAC,EAAE;MAC5B;MACAM,WAAW,GAAG,IAAI;MAClBC,cAAc,GAAG,CAAC;IACpB;EACF;EACAb,iBAAiB,CACdc,SAAS,CAAC,mBAAmB,CAAC,CAC9BC,KAAK,CACJ,YAAYX,YAAY,CAACY,GAAG,iBAAiBJ,WAAW,oBAAoBC,cAAc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EACF,CAAC,CAAC,OAAO1B,CAAC,EAAE;IACV,MAAMC,MAAM,GAAGxB,iBAAiB,CAACc,SAAS,CACxC,gCACF,CAAC;IACDU,MAAM,CAACC,KAAK,CAAC,6CAA6C,EAAEF,CAAC,CAAC;IAC9D;EACF;EACAtB,qBAAqB,CAACG,YAAY,EAAEoC,0BAA0B,CAAC;AACjE,CAAC;;AAED;AACA;AACA;AACA;AACA,OAAO,MAAMU,6BAA6B,GAAI/B,QAAgB,IAAK;EACjE,MAAMgC,uBAAuB,GAAGjD,2BAA2B,CAAC+C,GAAG,CAAC9B,QAAQ,CAAC;EACzE,IAAIgC,uBAAuB,EAAE;IAC3BA,uBAAuB,CAACC,OAAO,CAAEC,EAAE,IAAKA,EAAE,CAAC,CAAC,CAAC;IAC7CnD,2BAA2B,CAACoD,MAAM,CAACnC,QAAQ,CAAC;EAC9C;AACF,CAAC;;AAED;AACA;AACA;AACA;AACA,OAAO,MAAMoC,4BAA0D,GAAG;EACxEC,OAAO,EAAE;AACX,CAAC","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Platform } from 'react-native';
|
|
2
2
|
import { pushNonRingingCallData$ } from './internal/rxSubjects';
|
|
3
3
|
import { getExpoNotificationsLib, getNotifeeLibThrowIfNotInstalledForPush, getPushNotificationIosLib } from './libs';
|
|
4
|
-
import {
|
|
4
|
+
import { videoLoggerSystem } from '@stream-io/video-client';
|
|
5
5
|
import { setPushLogoutCallback } from '../internal/pushLogoutCallback';
|
|
6
6
|
import { StreamVideoRN } from '../StreamVideoRN';
|
|
7
7
|
let lastApnToken = {
|
|
@@ -12,8 +12,8 @@ function processNonRingingNotificationStreamPayload(streamPayload) {
|
|
|
12
12
|
if (streamPayload?.sender === 'stream.video' && streamPayload?.type !== 'call.ring') {
|
|
13
13
|
const cid = streamPayload.call_cid;
|
|
14
14
|
const type = streamPayload.type;
|
|
15
|
-
const logger = getLogger(
|
|
16
|
-
logger(
|
|
15
|
+
const logger = videoLoggerSystem.getLogger('processNonRingingNotificationStreamPayload');
|
|
16
|
+
logger.trace(`cid, type - ${cid}, ${type}`);
|
|
17
17
|
pushNonRingingCallData$.next({
|
|
18
18
|
cid,
|
|
19
19
|
type
|
|
@@ -31,8 +31,8 @@ export const oniOSExpoNotificationEvent = event => {
|
|
|
31
31
|
const trigger = event.request.trigger;
|
|
32
32
|
if (trigger && typeof trigger === 'object' && 'type' in trigger && trigger.type === 'push' && trigger.payload?.stream) {
|
|
33
33
|
const streamPayload = trigger.payload.stream;
|
|
34
|
-
const logger = getLogger(
|
|
35
|
-
logger(
|
|
34
|
+
const logger = videoLoggerSystem.getLogger('processNonRingingNotificationStreamPayload');
|
|
35
|
+
logger.trace(`processNonRingingNotificationStreamPayload - ${JSON.stringify(streamPayload)}`);
|
|
36
36
|
processNonRingingNotificationStreamPayload(streamPayload);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -51,8 +51,8 @@ export const oniOSNotifeeEvent = ({
|
|
|
51
51
|
const streamPayload = detail.notification?.data?.stream;
|
|
52
52
|
const result = processNonRingingNotificationStreamPayload(streamPayload);
|
|
53
53
|
if (result) {
|
|
54
|
-
const logger = getLogger(
|
|
55
|
-
logger(
|
|
54
|
+
const logger = videoLoggerSystem.getLogger('oniOSNotifeeEvent');
|
|
55
|
+
logger.debug(`onTapNonRingingCallNotification?.(${result.cid}, ${result.type})`);
|
|
56
56
|
pushConfig.onTapNonRingingCallNotification?.(result.cid, result.type);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -61,22 +61,22 @@ export function onPushNotificationiOSStreamVideoEvent(notification) {
|
|
|
61
61
|
const pushNotificationIosLib = getPushNotificationIosLib();
|
|
62
62
|
const data = notification.getData();
|
|
63
63
|
const streamPayload = data?.stream;
|
|
64
|
-
const logger = getLogger(
|
|
64
|
+
const logger = videoLoggerSystem.getLogger('onPushNotificationiOSStreamVideoEvent');
|
|
65
65
|
if (!streamPayload) {
|
|
66
|
-
logger(
|
|
66
|
+
logger.trace(`skipping process: no stream payload found in notification data - ${JSON.stringify(data)}`);
|
|
67
67
|
return;
|
|
68
68
|
}
|
|
69
69
|
const isClicked = data.userInteraction === 1;
|
|
70
70
|
const pushConfig = StreamVideoRN.getConfig().push;
|
|
71
71
|
if (!isClicked || !pushConfig) {
|
|
72
|
-
logger(
|
|
72
|
+
logger.debug(`notification.finish called and returning - isClicked: ${isClicked}, pushConfig: ${!!pushConfig}`);
|
|
73
73
|
notification.finish(pushNotificationIosLib.FetchResult.NoData);
|
|
74
74
|
return;
|
|
75
75
|
}
|
|
76
76
|
// listen to foreground notifications
|
|
77
77
|
const result = processNonRingingNotificationStreamPayload(streamPayload);
|
|
78
78
|
if (result) {
|
|
79
|
-
logger(
|
|
79
|
+
logger.debug(`onTapNonRingingCallNotification?.(${result.cid}, ${result.type})`);
|
|
80
80
|
pushConfig.onTapNonRingingCallNotification?.(result.cid, result.type);
|
|
81
81
|
}
|
|
82
82
|
notification.finish(pushNotificationIosLib.FetchResult.NoData);
|
|
@@ -87,11 +87,11 @@ export async function initIosNonVoipToken(client, pushConfig, setUnsubscribeList
|
|
|
87
87
|
if (Platform.OS !== 'ios' || !pushConfig.ios.pushProviderName || !pushConfig.onTapNonRingingCallNotification) {
|
|
88
88
|
return;
|
|
89
89
|
}
|
|
90
|
-
const logger = getLogger(
|
|
90
|
+
const logger = videoLoggerSystem.getLogger('initIosNonVoipToken');
|
|
91
91
|
const setDeviceToken = async token => {
|
|
92
92
|
const userId = client.streamClient._user?.id ?? '';
|
|
93
93
|
if (lastApnToken.token === token && lastApnToken.userId === userId) {
|
|
94
|
-
logger('
|
|
94
|
+
logger.debug('Skipped sending device token to stream as it was already sent', token);
|
|
95
95
|
return;
|
|
96
96
|
}
|
|
97
97
|
setPushLogoutCallback(async () => {
|
|
@@ -100,47 +100,47 @@ export async function initIosNonVoipToken(client, pushConfig, setUnsubscribeList
|
|
|
100
100
|
userId: ''
|
|
101
101
|
};
|
|
102
102
|
try {
|
|
103
|
-
logger('
|
|
103
|
+
logger.debug('Remove device token - setPushLogoutCallback', token);
|
|
104
104
|
await client.removeDevice(token);
|
|
105
105
|
} catch (err) {
|
|
106
|
-
logger('
|
|
106
|
+
logger.warn('setPushLogoutCallback - Failed to remove apn token from stream', err);
|
|
107
107
|
}
|
|
108
108
|
});
|
|
109
109
|
const push_provider_name = pushConfig.ios.pushProviderName;
|
|
110
|
-
logger('
|
|
110
|
+
logger.debug('Add device token to stream', token);
|
|
111
111
|
await client.addDevice(token, 'apn', push_provider_name).then(() => {
|
|
112
112
|
lastApnToken = {
|
|
113
113
|
token,
|
|
114
114
|
userId
|
|
115
115
|
};
|
|
116
116
|
}).catch(err => {
|
|
117
|
-
logger('
|
|
117
|
+
logger.warn('Failed to add apn token to stream', err);
|
|
118
118
|
});
|
|
119
119
|
};
|
|
120
120
|
if (pushConfig.isExpo) {
|
|
121
121
|
const expoNotificationsLib = getExpoNotificationsLib();
|
|
122
122
|
if (expoNotificationsLib) {
|
|
123
123
|
expoNotificationsLib.getDevicePushTokenAsync().then(devicePushToken => {
|
|
124
|
-
logger('
|
|
124
|
+
logger.debug('Got device token - expoNotificationsLib.getDevicePushTokenAsync', devicePushToken.data);
|
|
125
125
|
setDeviceToken(devicePushToken.data);
|
|
126
126
|
});
|
|
127
127
|
const subscription = expoNotificationsLib.addPushTokenListener(devicePushToken => {
|
|
128
|
-
logger('
|
|
128
|
+
logger.debug('Got device token - expoNotificationsLib.addPushTokenListener', devicePushToken.data);
|
|
129
129
|
setDeviceToken(devicePushToken.data);
|
|
130
130
|
});
|
|
131
131
|
setUnsubscribeListener(() => {
|
|
132
|
-
logger(
|
|
132
|
+
logger.debug(`removed expo addPushTokenListener`);
|
|
133
133
|
subscription.remove();
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
136
|
} else {
|
|
137
137
|
const pushNotificationIosLib = getPushNotificationIosLib();
|
|
138
138
|
pushNotificationIosLib.addEventListener('register', token => {
|
|
139
|
-
logger(
|
|
139
|
+
logger.debug(`Got device token - pushNotificationIosLib.addEventListener('register')`, token);
|
|
140
140
|
setDeviceToken(token);
|
|
141
141
|
});
|
|
142
142
|
setUnsubscribeListener(() => {
|
|
143
|
-
logger(
|
|
143
|
+
logger.debug(`pushNotificationIosLib.removeEventListener('register')`);
|
|
144
144
|
pushNotificationIosLib.removeEventListener('register');
|
|
145
145
|
});
|
|
146
146
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Platform","pushNonRingingCallData$","getExpoNotificationsLib","getNotifeeLibThrowIfNotInstalledForPush","getPushNotificationIosLib","
|
|
1
|
+
{"version":3,"names":["Platform","pushNonRingingCallData$","getExpoNotificationsLib","getNotifeeLibThrowIfNotInstalledForPush","getPushNotificationIosLib","videoLoggerSystem","setPushLogoutCallback","StreamVideoRN","lastApnToken","token","userId","processNonRingingNotificationStreamPayload","streamPayload","sender","type","cid","call_cid","logger","getLogger","trace","next","undefined","oniOSExpoNotificationEvent","event","pushConfig","getConfig","push","trigger","request","payload","stream","JSON","stringify","oniOSNotifeeEvent","OS","detail","notifeeLib","EventType","PRESS","notification","data","result","debug","onTapNonRingingCallNotification","onPushNotificationiOSStreamVideoEvent","pushNotificationIosLib","getData","isClicked","userInteraction","finish","FetchResult","NoData","initIosNonVoipToken","client","setUnsubscribeListener","ios","pushProviderName","setDeviceToken","streamClient","_user","id","removeDevice","err","warn","push_provider_name","addDevice","then","catch","isExpo","expoNotificationsLib","getDevicePushTokenAsync","devicePushToken","subscription","addPushTokenListener","remove","addEventListener","removeEventListener"],"sourceRoot":"../../../../src","sources":["utils/push/ios.ts"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,cAAc;AAEvC,SAASC,uBAAuB,QAAQ,uBAAuB;AAC/D,SAEEC,uBAAuB,EACvBC,uCAAuC,EACvCC,yBAAyB,QAEpB,QAAQ;AACf,SAA4BC,iBAAiB,QAAQ,yBAAyB;AAC9E,SAASC,qBAAqB,QAAQ,gCAAgC;AAEtE,SAASC,aAAa,Q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MAAM,CAACyB,KAAK,CACV,8DAA8D,EAC9D6B,eAAe,CAAC/B,IAClB,CAAC;QACDiB,cAAc,CAACc,eAAe,CAAC/B,IAAI,CAAC;MACtC,CACF,CAAC;MACDc,sBAAsB,CAAC,MAAM;QAC3BrC,MAAM,CAACyB,KAAK,CAAC,mCAAmC,CAAC;QACjD8B,YAAY,CAACE,MAAM,CAAC,CAAC;MACvB,CAAC,CAAC;IACJ;EACF,CAAC,MAAM;IACL,MAAM7B,sBAAsB,GAAGzC,yBAAyB,CAAC,CAAC;IAC1DyC,sBAAsB,CAAC8B,gBAAgB,CAAC,UAAU,EAAGlE,KAAK,IAAK;MAC7DQ,MAAM,CAACyB,KAAK,CACV,wEAAwE,EACxEjC,KACF,CAAC;MACDgD,cAAc,CAAChD,KAAK,CAAC;IACvB,CAAC,CAAC;IACF6C,sBAAsB,CAAC,MAAM;MAC3BrC,MAAM,CAACyB,KAAK,CAAC,wDAAwD,CAAC;MACtEG,sBAAsB,CAAC+B,mBAAmB,CAAC,UAAU,CAAC;IACxD,CAAC,CAAC;EACJ;AACF","ignoreList":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { videoLoggerSystem } from '@stream-io/video-client';
|
|
2
2
|
let expoNotificationsLib;
|
|
3
3
|
try {
|
|
4
4
|
expoNotificationsLib = require('expo-notifications');
|
|
@@ -11,7 +11,7 @@ export function getExpoNotificationsLib() {
|
|
|
11
11
|
}
|
|
12
12
|
export function getExpoNotificationsLibNoThrow() {
|
|
13
13
|
if (!expoNotificationsLib) {
|
|
14
|
-
getLogger(
|
|
14
|
+
videoLoggerSystem.getLogger('getExpoNotificationsLibNoThrow').debug('expo-notifications library is not installed. It is required for non ringing push notifications and not for ringing');
|
|
15
15
|
}
|
|
16
16
|
return expoNotificationsLib;
|
|
17
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["videoLoggerSystem","expoNotificationsLib","require","getExpoNotificationsLib","Error","getExpoNotificationsLibNoThrow","getLogger","debug"],"sourceRoot":"../../../../../src","sources":["utils/push/libs/expoNotifications.ts"],"mappings":"AACA,SAASA,iBAAiB,QAAQ,yBAAyB;AAM3D,IAAIC,oBAAsD;AAE1D,IAAI;EACFA,oBAAoB,GAAGC,OAAO,CAAC,oBAAoB,CAAC;AACtD,CAAC,CAAC,MAAM,CAAC;AAET,OAAO,SAASC,uBAAuBA,CAAA,EAAG;EACxC,IAAI,CAACF,oBAAoB,EAAE;IACzB,MAAMG,KAAK,CACT,oMACF,CAAC;EACH;EACA,OAAOH,oBAAoB;AAC7B;AAEA,OAAO,SAASI,8BAA8BA,CAAA,EAAG;EAC/C,IAAI,CAACJ,oBAAoB,EAAE;IACzBD,iBAAiB,CACdM,SAAS,CAAC,gCAAgC,CAAC,CAC3CC,KAAK,CACJ,oHACF,CAAC;EACL;EACA,OAAON,oBAAoB;AAC7B","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getLogger } from '@stream-io/video-client';
|
|
2
1
|
import { lib } from './lib';
|
|
2
|
+
import { videoLoggerSystem } from '@stream-io/video-client';
|
|
3
3
|
const INSTALLATION_INSTRUCTION = 'Please see https://rnfirebase.io/messaging/usage#installation for installation instructions';
|
|
4
4
|
export function getFirebaseMessagingLib() {
|
|
5
5
|
if (!lib) {
|
|
@@ -9,8 +9,8 @@ export function getFirebaseMessagingLib() {
|
|
|
9
9
|
}
|
|
10
10
|
export function getFirebaseMessagingLibNoThrow(isExpo) {
|
|
11
11
|
if (!lib) {
|
|
12
|
-
const logger = getLogger(
|
|
13
|
-
logger(
|
|
12
|
+
const logger = videoLoggerSystem.getLogger('getFirebaseMessagingLibNoThrow');
|
|
13
|
+
logger.debug(`${isExpo ? 'In Expo, @react-native-firebase/messaging library is required to receive ringing notifications in app killed state for Android.' : ''}${INSTALLATION_INSTRUCTION}`);
|
|
14
14
|
}
|
|
15
15
|
return lib;
|
|
16
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["lib","videoLoggerSystem","INSTALLATION_INSTRUCTION","getFirebaseMessagingLib","Error","getFirebaseMessagingLibNoThrow","isExpo","logger","getLogger","debug"],"sourceRoot":"../../../../../../src","sources":["utils/push/libs/firebaseMessaging/index.ts"],"mappings":"AAAA,SAASA,GAAG,QAAmB,OAAO;AACtC,SAASC,iBAAiB,QAAQ,yBAAyB;AAK3D,MAAMC,wBAAwB,GAC5B,6FAA6F;AAE/F,OAAO,SAASC,uBAAuBA,CAAA,EAAG;EACxC,IAAI,CAACH,GAAG,EAAE;IACR,MAAMI,KAAK,CACT,qDAAqD,GACnDF,wBACJ,CAAC;EACH;EACA,OAAOF,GAAG;AACZ;AAEA,OAAO,SAASK,8BAA8BA,CAACC,MAAe,EAAE;EAC9D,IAAI,CAACN,GAAG,EAAE;IACR,MAAMO,MAAM,GAAGN,iBAAiB,CAACO,SAAS,CACxC,gCACF,CAAC;IACDD,MAAM,CAACE,KAAK,CACV,GACEH,MAAM,GACF,iIAAiI,GACjI,EAAE,GACLJ,wBAAwB,EAC7B,CAAC;EACH;EACA,OAAOF,GAAG;AACZ","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getLogger } from '@stream-io/video-client';
|
|
2
1
|
import { PermissionsAndroid } from 'react-native';
|
|
3
2
|
import { lib } from './lib';
|
|
3
|
+
import { videoLoggerSystem } from '@stream-io/video-client';
|
|
4
4
|
var AndroidForegroundServiceType = /*#__PURE__*/function (AndroidForegroundServiceType) {
|
|
5
5
|
AndroidForegroundServiceType[AndroidForegroundServiceType["FOREGROUND_SERVICE_TYPE_CAMERA"] = 64] = "FOREGROUND_SERVICE_TYPE_CAMERA";
|
|
6
6
|
AndroidForegroundServiceType[AndroidForegroundServiceType["FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE"] = 16] = "FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE";
|
|
@@ -28,8 +28,8 @@ export function getNotifeeLibThrowIfNotInstalledForPush() {
|
|
|
28
28
|
}
|
|
29
29
|
export function getNotifeeLibNoThrowForKeepCallAlive() {
|
|
30
30
|
if (!lib) {
|
|
31
|
-
const logger = getLogger(
|
|
32
|
-
logger(
|
|
31
|
+
const logger = videoLoggerSystem.getLogger('getNotifeeLibNoThrow');
|
|
32
|
+
logger.info(`${'@notifee/react-native library not installed. It is required to keep call alive in the background for Android. '}${INSTALLATION_INSTRUCTION}`);
|
|
33
33
|
}
|
|
34
34
|
return lib;
|
|
35
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["PermissionsAndroid","lib","videoLoggerSystem","AndroidForegroundServiceType","INSTALLATION_INSTRUCTION","getNotifeeLibThrowIfNotInstalledForPush","Error","getNotifeeLibNoThrowForKeepCallAlive","logger","getLogger","info","getKeepCallAliveForegroundServiceTypes","types","hasCameraPermission","check","PERMISSIONS","CAMERA","push","FOREGROUND_SERVICE_TYPE_CAMERA","hasMicrophonePermission","RECORD_AUDIO","FOREGROUND_SERVICE_TYPE_MICROPHONE","hasConnectionPermission","BLUETOOTH_CONNECT","FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE","length","FOREGROUND_SERVICE_TYPE_DATA_SYNC","getIncomingCallForegroundServiceTypes","FOREGROUND_SERVICE_TYPE_SHORT_SERVICE"],"sourceRoot":"../../../../../../src","sources":["utils/push/libs/notifee/index.ts"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,cAAc;AACjD,SAASC,GAAG,QAAmB,OAAO;AACtC,SAASC,iBAAiB,QAAQ,yBAAyB;AAAC,IAIvDC,4BAA4B,0BAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BA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IAC3BP,KAAK,CAACK,IAAI,CAACd,4BAA4B,CAACkB,kCAAkC,CAAC;EAC7E;EACA,MAAMC,uBAAuB,GAAG,MAAMtB,kBAAkB,CAACc,KAAK,CAC5Dd,kBAAkB,CAACe,WAAW,CAACQ,iBACjC,CAAC;EACD,IAAID,uBAAuB,EAAE;IAC3BV,KAAK,CAACK,IAAI,CACRd,4BAA4B,CAACqB,wCAC/B,CAAC;EACH;EACA,IAAIZ,KAAK,CAACa,MAAM,KAAK,CAAC,EAAE;IACtBb,KAAK,CAACK,IAAI,CAACd,4BAA4B,CAACuB,iCAAiC,CAAC;EAC5E;EACA,OAAOd,KAAK;AACd;AAEA,OAAO,SAASe,qCAAqCA,CAAA,EAAG;EACtD,MAAMf,KAAqC,GAAG,CAC5CT,4BAA4B,CAACyB,qCAAqC,CACnE;EACD,OAAOhB,KAAK;AACd","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { pushAcceptedIncomingCallCId$, voipCallkeepAcceptedCallOnNativeDialerMap$, voipCallkeepCallOnForegroundMap$, voipPushNotificationCallCId$ } from './internal/rxSubjects';
|
|
2
|
-
import {
|
|
2
|
+
import { RxUtils, videoLoggerSystem } from '@stream-io/video-client';
|
|
3
3
|
import { getCallKeepLib, getVoipPushNotificationLib } from './libs';
|
|
4
4
|
import { clearPushWSEventSubscriptions, processCallFromPushInBackground } from './internal/utils';
|
|
5
5
|
import { AppState, NativeModules, Platform } from 'react-native';
|
|
@@ -13,10 +13,10 @@ export function setupIosCallKeepEvents(pushConfig) {
|
|
|
13
13
|
}
|
|
14
14
|
if (!pushConfig.android.incomingCallChannel) {
|
|
15
15
|
// TODO: remove this check and find a better way once we have telecom integration for android
|
|
16
|
-
getLogger(
|
|
16
|
+
videoLoggerSystem.getLogger('setupIosCallKeepEvents').debug('android incomingCallChannel is not defined, so skipping the setupIosCallKeepEvents');
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
|
-
const logger = getLogger(
|
|
19
|
+
const logger = videoLoggerSystem.getLogger('setupIosCallKeepEvents');
|
|
20
20
|
const callkeep = getCallKeepLib();
|
|
21
21
|
async function getCallCid(callUUID) {
|
|
22
22
|
try {
|
|
@@ -25,24 +25,24 @@ export function setupIosCallKeepEvents(pushConfig) {
|
|
|
25
25
|
// update it with this call_cid
|
|
26
26
|
const voipPushNotificationCallCId = RxUtils.getCurrentValue(voipPushNotificationCallCId$);
|
|
27
27
|
if (!voipPushNotificationCallCId) {
|
|
28
|
-
logger(
|
|
28
|
+
logger.debug(`voipPushNotificationCallCId$ is empty, updating it with the call_cid: ${call_cid} for callUUID: ${callUUID}`);
|
|
29
29
|
voipPushNotificationCallCId$.next(call_cid);
|
|
30
30
|
}
|
|
31
31
|
return call_cid;
|
|
32
32
|
} catch {
|
|
33
|
-
logger(
|
|
33
|
+
logger.debug(`Error in getting call cid from native module for callUUID: ${callUUID} - probably the call was already processed, so ignoring this callkeep event`);
|
|
34
34
|
}
|
|
35
35
|
return undefined;
|
|
36
36
|
}
|
|
37
37
|
function answerCall(callUUID) {
|
|
38
38
|
getCallCid(callUUID).then(call_cid => {
|
|
39
|
-
logger(
|
|
39
|
+
logger.debug(`answerCall event with call_cid: ${call_cid}`);
|
|
40
40
|
iosCallkeepAcceptCall(call_cid, callUUID);
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
function endCall(callUUID) {
|
|
44
44
|
getCallCid(callUUID).then(call_cid => {
|
|
45
|
-
logger(
|
|
45
|
+
logger.debug(`endCall event with call_cid: ${call_cid}`);
|
|
46
46
|
iosCallkeepRejectCall(call_cid, callUUID, pushConfig);
|
|
47
47
|
});
|
|
48
48
|
}
|
|
@@ -50,7 +50,7 @@ export function setupIosCallKeepEvents(pushConfig) {
|
|
|
50
50
|
const voipPushNotification = getVoipPushNotificationLib();
|
|
51
51
|
// @ts-expect-error - call_cid is not part of RNCallKeepEventPayload
|
|
52
52
|
const call_cid = payload?.call_cid;
|
|
53
|
-
logger(
|
|
53
|
+
logger.debug(`didDisplayIncomingCall event with callUUID: ${callUUID} call_cid: ${call_cid}`);
|
|
54
54
|
if (call_cid) {
|
|
55
55
|
if (AppState.currentState === 'background') {
|
|
56
56
|
processCallFromPushInBackground(pushConfig, call_cid, 'backgroundDelivered');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["pushAcceptedIncomingCallCId$","voipCallkeepAcceptedCallOnNativeDialerMap$","voipCallkeepCallOnForegroundMap$","voipPushNotificationCallCId$","
|
|
1
|
+
{"version":3,"names":["pushAcceptedIncomingCallCId$","voipCallkeepAcceptedCallOnNativeDialerMap$","voipCallkeepCallOnForegroundMap$","voipPushNotificationCallCId$","RxUtils","videoLoggerSystem","getCallKeepLib","getVoipPushNotificationLib","clearPushWSEventSubscriptions","processCallFromPushInBackground","AppState","NativeModules","Platform","setPushLogoutCallback","setupIosCallKeepEvents","pushConfig","OS","ios","pushProviderName","android","incomingCallChannel","getLogger","debug","logger","callkeep","getCallCid","callUUID","call_cid","StreamVideoReactNative","getIncomingCallCid","voipPushNotificationCallCId","getCurrentValue","next","undefined","answerCall","then","iosCallkeepAcceptCall","endCall","iosCallkeepRejectCall","didDisplayIncomingCall","payload","voipPushNotification","currentState","uuid","cid","onVoipNotificationCompleted","remove","removeAnswerCall","addEventListener","removeEndCall","removeDisplayIncomingCall","removeDidLoadWithEvents","events","Array","isArray","length","forEach","event","name","data","callUUIDFromCallkeep","shouldProcessCallFromCallkeep","removeIncomingCall"],"sourceRoot":"../../../../src","sources":["utils/push/setupIosCallKeepEvents.ts"],"mappings":"AAAA,SACEA,4BAA4B,EAC5BC,0CAA0C,EAC1CC,gCAAgC,EAChCC,4BAA4B,QACvB,uBAAuB;AAC9B,SAASC,OAAO,EAAEC,iBAAiB,QAAQ,yBAAyB;AACpE,SAASC,cAAc,EAAEC,0BAA0B,QAAQ,QAAQ;AAEnE,SACEC,6BAA6B,EAC7BC,+BAA+B,QAC1B,kBAAkB;AACzB,SAASC,QAAQ,EAAEC,aAA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AAC+B,IAAI,CAAC;IAC9CW,IAAI,EAAEiB,oBAAoB;IAC1BhB,GAAG,EAAEjB;EACP,CAAC,CAAC;EACF;EACA3B,4BAA4B,CAACgC,IAAI,CAACL,QAAQ,CAAC;EAC3C;EACAzB,gCAAgC,CAAC8B,IAAI,CAACC,SAAS,CAAC;AAClD,CAAC;AAED,MAAMK,qBAAqB,GAAG,MAAAA,CAC5BX,QAA4B,EAC5BiC,oBAA4B,EAC5B7C,UAAsB,KACnB;EACH,IAAI,CAAC8C,6BAA6B,CAAClC,QAAQ,EAAEiC,oBAAoB,CAAC,EAAE;IAClE;EACF;EACApD,6BAA6B,CAACmB,QAAQ,CAAC;EACvC;EACA,MAAMG,2BAA2B,GAAG1B,OAAO,CAAC2B,eAAe,CACzD5B,4BACF,CAAC;EACD,IAAI2B,2BAA2B,KAAKH,QAAQ,EAAE;IAC5C1B,0CAA0C,CAAC+B,IAAI,CAACC,SAAS,CAAC;IAC1D/B,gCAAgC,CAAC8B,IAAI,CAACC,SAAS,CAAC;IAChD9B,4BAA4B,CAAC6B,IAAI,CAACC,SAAS,CAAC;EAC9C;EAEA,MAAMxB,+BAA+B,CAACM,UAAU,EAAEY,QAAQ,EAAE,SAAS,CAAC;EACtE,MAAMhB,aAAa,CAACiB,sBAAsB,EAAEkC,kBAAkB,CAACnC,QAAQ,CAAC;AAC1E,CAAC;;AAED;AACA;AACA;AACA;AACA,MAAMkC,6BAA6B,GAAGA,CACpClC,QAA4B,EAC5BiC,oBAA4B,KACL;EACvB,IAAI,CAACjC,QAAQ,IAAI,CAACiC,oBAAoB,EAAE;IACtC,OAAO,KAAK;EACd;EACA,OAAO,IAAI;AACb,CAAC","ignoreList":[]}
|
|
@@ -2,24 +2,24 @@ import { getVoipPushNotificationLib } from './libs';
|
|
|
2
2
|
import { Platform } from 'react-native';
|
|
3
3
|
import { onVoipNotificationReceived } from './internal/ios';
|
|
4
4
|
import { setPushLogoutCallback } from '../internal/pushLogoutCallback';
|
|
5
|
-
import {
|
|
5
|
+
import { videoLoggerSystem } from '@stream-io/video-client';
|
|
6
6
|
export function setupIosVoipPushEvents(pushConfig) {
|
|
7
7
|
if (Platform.OS !== 'ios' || !pushConfig.ios?.pushProviderName) {
|
|
8
8
|
return;
|
|
9
9
|
}
|
|
10
|
-
const logger = getLogger(
|
|
10
|
+
const logger = videoLoggerSystem.getLogger('setupIosVoipPushEvents');
|
|
11
11
|
if (!pushConfig.ios.pushProviderName) {
|
|
12
12
|
// TODO: remove this check and find a better way once we have telecom integration for android
|
|
13
|
-
logger('
|
|
13
|
+
logger.debug('ios pushProviderName is not defined, so skipping the setupIosVoipPushEvents');
|
|
14
14
|
return;
|
|
15
15
|
}
|
|
16
16
|
const voipPushNotification = getVoipPushNotificationLib();
|
|
17
|
-
logger('
|
|
17
|
+
logger.debug('notification event listener added');
|
|
18
18
|
voipPushNotification.addEventListener('notification', notification => {
|
|
19
19
|
onVoipNotificationReceived(notification, pushConfig);
|
|
20
20
|
});
|
|
21
21
|
setPushLogoutCallback(async () => {
|
|
22
|
-
getLogger(
|
|
22
|
+
videoLoggerSystem.getLogger('setPushLogoutCallback').debug('notification event listener removed');
|
|
23
23
|
voipPushNotification.removeEventListener('notification');
|
|
24
24
|
});
|
|
25
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getVoipPushNotificationLib","Platform","onVoipNotificationReceived","setPushLogoutCallback","
|
|
1
|
+
{"version":3,"names":["getVoipPushNotificationLib","Platform","onVoipNotificationReceived","setPushLogoutCallback","videoLoggerSystem","setupIosVoipPushEvents","pushConfig","OS","ios","pushProviderName","logger","getLogger","debug","voipPushNotification","addEventListener","notification","removeEventListener"],"sourceRoot":"../../../../src","sources":["utils/push/setupIosVoipPushEvents.ts"],"mappings":"AAAA,SAASA,0BAA0B,QAAQ,QAAQ;AAEnD,SAASC,QAAQ,QAAQ,cAAc;AACvC,SAASC,0BAA0B,QAAQ,gBAAgB;AAC3D,SAASC,qBAAqB,QAAQ,gCAAgC;AAEtE,SAASC,iBAAiB,QAAQ,yBAAyB;AAE3D,OAAO,SAASC,sBAAsBA,CACpCC,UAAkD,EAClD;EACA,IAAIL,QAAQ,CAACM,EAAE,KAAK,KAAK,IAAI,CAACD,UAAU,CAACE,GAAG,EAAEC,gBAAgB,EAAE;IAC9D;EACF;EACA,MAAMC,MAAM,GAAGN,iBAAiB,CAACO,SAAS,CAAC,wBAAwB,CAAC;EACpE,IAAI,CAACL,UAAU,CAACE,GAAG,CAACC,gBAAgB,EAAE;IACpC;IACAC,MAAM,CAACE,KAAK,CACV,6EACF,CAAC;IACD;EACF;EACA,MAAMC,oBAAoB,GAAGb,0BAA0B,CAAC,CAAC;EAEzDU,MAAM,CAACE,KAAK,CAAC,mCAAmC,CAAC;EACjDC,oBAAoB,CAACC,gBAAgB,CAAC,cAAc,EAAGC,YAAY,IAAK;IACtEb,0BAA0B,CAACa,YAAY,EAAET,UAAU,CAAC;EACtD,CAAC,CAAC;EACFH,qBAAqB,CAAC,YAAY;IAChCC,iBAAiB,CACdO,SAAS,CAAC,uBAAuB,CAAC,CAClCC,KAAK,CAAC,qCAAqC,CAAC;IAC/CC,oBAAoB,CAACG,mBAAmB,CAAC,cAAc,CAAC;EAC1D,CAAC,CAAC;AACJ","ignoreList":[]}
|