@stream-io/video-react-native-sdk 1.29.3 → 1.29.4-beta.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/android/src/main/AndroidManifest.xml +8 -1
- package/android/src/main/AndroidManifestNew.xml +11 -0
- package/android/src/main/java/com/streamvideo/reactnative/StreamVideoReactNativeModule.kt +42 -5
- package/android/src/main/java/com/streamvideo/reactnative/audio/utils/WebRtcAudioUtils.kt +70 -6
- package/android/src/main/java/com/streamvideo/reactnative/callmanager/StreamInCallManagerModule.kt +6 -4
- package/android/src/main/java/com/streamvideo/reactnative/keepalive/KeepAliveNotification.kt +83 -0
- package/android/src/main/java/com/streamvideo/reactnative/keepalive/StreamCallKeepAliveHeadlessService.kt +149 -0
- package/dist/commonjs/hooks/push/index.js +0 -2
- package/dist/commonjs/hooks/push/index.js.map +1 -1
- package/dist/commonjs/hooks/push/useCallingExpWithCallingStateEffect.js +121 -0
- package/dist/commonjs/hooks/push/useCallingExpWithCallingStateEffect.js.map +1 -0
- package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js +18 -31
- package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
- package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js +64 -97
- package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
- package/dist/commonjs/index.js +1 -0
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/modules/call-manager/CallManager.js +26 -0
- package/dist/commonjs/modules/call-manager/CallManager.js.map +1 -1
- package/dist/commonjs/providers/StreamCall/index.js +6 -6
- package/dist/commonjs/providers/StreamCall/index.js.map +1 -1
- package/dist/commonjs/utils/StreamVideoRN/index.js +33 -21
- package/dist/commonjs/utils/StreamVideoRN/index.js.map +1 -1
- package/dist/commonjs/utils/internal/callingx/audioSessionPromise.js +58 -0
- package/dist/commonjs/utils/internal/callingx/audioSessionPromise.js.map +1 -0
- package/dist/commonjs/utils/internal/callingx/callingx.js +109 -0
- package/dist/commonjs/utils/internal/callingx/callingx.js.map +1 -0
- package/dist/commonjs/utils/internal/registerSDKGlobals.js +52 -3
- package/dist/commonjs/utils/internal/registerSDKGlobals.js.map +1 -1
- package/dist/commonjs/utils/keepCallAliveHeadlessTask.js +48 -0
- package/dist/commonjs/utils/keepCallAliveHeadlessTask.js.map +1 -0
- package/dist/commonjs/utils/push/android.js +151 -202
- package/dist/commonjs/utils/push/android.js.map +1 -1
- package/dist/commonjs/utils/push/internal/ios.js +17 -34
- package/dist/commonjs/utils/push/internal/ios.js.map +1 -1
- package/dist/commonjs/utils/push/internal/rxSubjects.js +1 -45
- package/dist/commonjs/utils/push/internal/rxSubjects.js.map +1 -1
- package/dist/commonjs/utils/push/internal/utils.js +32 -20
- package/dist/commonjs/utils/push/internal/utils.js.map +1 -1
- package/dist/commonjs/utils/push/ios.js.map +1 -1
- package/dist/commonjs/utils/push/libs/callingx.js +75 -0
- package/dist/commonjs/utils/push/libs/callingx.js.map +1 -0
- package/dist/commonjs/utils/push/libs/index.js +8 -19
- package/dist/commonjs/utils/push/libs/index.js.map +1 -1
- package/dist/commonjs/utils/push/libs/notifee/index.js +0 -19
- package/dist/commonjs/utils/push/libs/notifee/index.js.map +1 -1
- package/dist/commonjs/utils/push/setupCallingExpEvents.js +108 -0
- package/dist/commonjs/utils/push/setupCallingExpEvents.js.map +1 -0
- package/dist/commonjs/utils/push/setupIosVoipPushEvents.js +7 -6
- package/dist/commonjs/utils/push/setupIosVoipPushEvents.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/commonjs/version.js.map +1 -1
- package/dist/module/hooks/push/index.js +0 -2
- package/dist/module/hooks/push/index.js.map +1 -1
- package/dist/module/hooks/push/useCallingExpWithCallingStateEffect.js +114 -0
- package/dist/module/hooks/push/useCallingExpWithCallingStateEffect.js.map +1 -0
- package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js +18 -31
- package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
- package/dist/module/hooks/useAndroidKeepCallAliveEffect.js +66 -99
- package/dist/module/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
- package/dist/module/index.js +1 -0
- package/dist/module/index.js.map +1 -1
- package/dist/module/modules/call-manager/CallManager.js +26 -0
- package/dist/module/modules/call-manager/CallManager.js.map +1 -1
- package/dist/module/providers/StreamCall/index.js +6 -6
- package/dist/module/providers/StreamCall/index.js.map +1 -1
- package/dist/module/utils/StreamVideoRN/index.js +33 -21
- package/dist/module/utils/StreamVideoRN/index.js.map +1 -1
- package/dist/module/utils/internal/callingx/audioSessionPromise.js +51 -0
- package/dist/module/utils/internal/callingx/audioSessionPromise.js.map +1 -0
- package/dist/module/utils/internal/callingx/callingx.js +100 -0
- package/dist/module/utils/internal/callingx/callingx.js.map +1 -0
- package/dist/module/utils/internal/registerSDKGlobals.js +52 -3
- package/dist/module/utils/internal/registerSDKGlobals.js.map +1 -1
- package/dist/module/utils/keepCallAliveHeadlessTask.js +42 -0
- package/dist/module/utils/keepCallAliveHeadlessTask.js.map +1 -0
- package/dist/module/utils/push/android.js +153 -204
- package/dist/module/utils/push/android.js.map +1 -1
- package/dist/module/utils/push/internal/ios.js +17 -34
- package/dist/module/utils/push/internal/ios.js.map +1 -1
- package/dist/module/utils/push/internal/rxSubjects.js +0 -44
- package/dist/module/utils/push/internal/rxSubjects.js.map +1 -1
- package/dist/module/utils/push/internal/utils.js +29 -19
- package/dist/module/utils/push/internal/utils.js.map +1 -1
- package/dist/module/utils/push/ios.js.map +1 -1
- package/dist/module/utils/push/libs/callingx.js +67 -0
- package/dist/module/utils/push/libs/callingx.js.map +1 -0
- package/dist/module/utils/push/libs/index.js +1 -2
- package/dist/module/utils/push/libs/index.js.map +1 -1
- package/dist/module/utils/push/libs/notifee/index.js +0 -18
- package/dist/module/utils/push/libs/notifee/index.js.map +1 -1
- package/dist/module/utils/push/setupCallingExpEvents.js +102 -0
- package/dist/module/utils/push/setupCallingExpEvents.js.map +1 -0
- package/dist/module/utils/push/setupIosVoipPushEvents.js +7 -6
- package/dist/module/utils/push/setupIosVoipPushEvents.js.map +1 -1
- package/dist/module/version.js +1 -1
- package/dist/module/version.js.map +1 -1
- package/dist/typescript/hooks/push/index.d.ts.map +1 -1
- package/dist/typescript/hooks/push/useCallingExpWithCallingStateEffect.d.ts +5 -0
- package/dist/typescript/hooks/push/useCallingExpWithCallingStateEffect.d.ts.map +1 -0
- package/dist/typescript/hooks/push/useIosVoipPushEventsSetupEffect.d.ts.map +1 -1
- package/dist/typescript/hooks/useAndroidKeepCallAliveEffect.d.ts.map +1 -1
- package/dist/typescript/index.d.ts +1 -0
- package/dist/typescript/index.d.ts.map +1 -1
- package/dist/typescript/modules/call-manager/CallManager.d.ts +5 -0
- package/dist/typescript/modules/call-manager/CallManager.d.ts.map +1 -1
- package/dist/typescript/utils/StreamVideoRN/index.d.ts +20 -2
- package/dist/typescript/utils/StreamVideoRN/index.d.ts.map +1 -1
- package/dist/typescript/utils/StreamVideoRN/types.d.ts +54 -29
- package/dist/typescript/utils/StreamVideoRN/types.d.ts.map +1 -1
- package/dist/typescript/utils/internal/callingx/audioSessionPromise.d.ts +16 -0
- package/dist/typescript/utils/internal/callingx/audioSessionPromise.d.ts.map +1 -0
- package/dist/typescript/utils/internal/callingx/callingx.d.ts +14 -0
- package/dist/typescript/utils/internal/callingx/callingx.d.ts.map +1 -0
- package/dist/typescript/utils/internal/registerSDKGlobals.d.ts.map +1 -1
- package/dist/typescript/utils/keepCallAliveHeadlessTask.d.ts +10 -0
- package/dist/typescript/utils/keepCallAliveHeadlessTask.d.ts.map +1 -0
- package/dist/typescript/utils/push/android.d.ts +1 -2
- 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/rxSubjects.d.ts +0 -33
- package/dist/typescript/utils/push/internal/rxSubjects.d.ts.map +1 -1
- package/dist/typescript/utils/push/internal/utils.d.ts +8 -1
- package/dist/typescript/utils/push/internal/utils.d.ts.map +1 -1
- package/dist/typescript/utils/push/ios.d.ts +1 -2
- package/dist/typescript/utils/push/ios.d.ts.map +1 -1
- package/dist/typescript/utils/push/libs/callingx.d.ts +9 -0
- package/dist/typescript/utils/push/libs/callingx.d.ts.map +1 -0
- package/dist/typescript/utils/push/libs/index.d.ts +1 -2
- package/dist/typescript/utils/push/libs/index.d.ts.map +1 -1
- package/dist/typescript/utils/push/libs/notifee/index.d.ts +0 -1
- package/dist/typescript/utils/push/libs/notifee/index.d.ts.map +1 -1
- package/dist/typescript/utils/push/setupCallingExpEvents.d.ts +8 -0
- package/dist/typescript/utils/push/setupCallingExpEvents.d.ts.map +1 -0
- package/dist/typescript/utils/push/setupIosVoipPushEvents.d.ts.map +1 -1
- package/dist/typescript/version.d.ts +1 -1
- package/dist/typescript/version.d.ts.map +1 -1
- package/expo-config-plugin/dist/withAndroidManifest.js +1 -33
- package/expo-config-plugin/dist/withAndroidPermissions.js +2 -7
- package/expo-config-plugin/dist/withAppDelegate.js +19 -197
- package/expo-config-plugin/dist/withMainActivity.js +1 -1
- package/expo-config-plugin/dist/withiOSInfoPlist.js +2 -3
- package/ios/StreamInCallManager.m +2 -0
- package/ios/StreamInCallManager.swift +19 -7
- package/ios/StreamVideoReactNative.h +7 -4
- package/ios/StreamVideoReactNative.m +189 -82
- package/package.json +13 -18
- package/src/hooks/push/index.ts +0 -2
- package/src/hooks/push/useCallingExpWithCallingStateEffect.ts +147 -0
- package/src/hooks/push/useIosVoipPushEventsSetupEffect.ts +21 -34
- package/src/hooks/useAndroidKeepCallAliveEffect.ts +94 -120
- package/src/index.ts +1 -0
- package/src/modules/call-manager/CallManager.ts +36 -0
- package/src/modules/call-manager/native-module.d.ts +7 -0
- package/src/providers/StreamCall/index.tsx +6 -6
- package/src/utils/StreamVideoRN/index.ts +40 -30
- package/src/utils/StreamVideoRN/types.ts +56 -29
- package/src/utils/internal/callingx/audioSessionPromise.ts +53 -0
- package/src/utils/internal/callingx/callingx.ts +146 -0
- package/src/utils/internal/registerSDKGlobals.ts +47 -4
- package/src/utils/keepCallAliveHeadlessTask.ts +54 -0
- package/src/utils/push/android.ts +227 -309
- package/src/utils/push/internal/ios.ts +28 -44
- package/src/utils/push/internal/rxSubjects.ts +0 -61
- package/src/utils/push/internal/utils.ts +45 -26
- package/src/utils/push/ios.ts +1 -6
- package/src/utils/push/libs/callingx.ts +90 -0
- package/src/utils/push/libs/index.ts +1 -2
- package/src/utils/push/libs/notifee/index.ts +0 -27
- package/src/utils/push/setupCallingExpEvents.ts +130 -0
- package/src/utils/push/setupIosVoipPushEvents.ts +11 -7
- package/src/version.ts +1 -1
- package/CHANGELOG.md +0 -3144
- package/android/src/main/java/com/streamvideo/reactnative/util/CallAliveServiceChecker.kt +0 -95
- package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js +0 -160
- package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +0 -1
- package/dist/commonjs/hooks/push/useProcessPushCallEffect.js +0 -67
- package/dist/commonjs/hooks/push/useProcessPushCallEffect.js.map +0 -1
- package/dist/commonjs/utils/push/libs/callkeep.js +0 -17
- package/dist/commonjs/utils/push/libs/callkeep.js.map +0 -1
- package/dist/commonjs/utils/push/libs/voipPushNotification.js +0 -17
- package/dist/commonjs/utils/push/libs/voipPushNotification.js.map +0 -1
- package/dist/commonjs/utils/push/setupIosCallKeepEvents.js +0 -205
- package/dist/commonjs/utils/push/setupIosCallKeepEvents.js.map +0 -1
- package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js +0 -153
- package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +0 -1
- package/dist/module/hooks/push/useProcessPushCallEffect.js +0 -60
- package/dist/module/hooks/push/useProcessPushCallEffect.js.map +0 -1
- package/dist/module/utils/push/libs/callkeep.js +0 -11
- package/dist/module/utils/push/libs/callkeep.js.map +0 -1
- package/dist/module/utils/push/libs/voipPushNotification.js +0 -11
- package/dist/module/utils/push/libs/voipPushNotification.js.map +0 -1
- package/dist/module/utils/push/setupIosCallKeepEvents.js +0 -199
- package/dist/module/utils/push/setupIosCallKeepEvents.js.map +0 -1
- package/dist/typescript/hooks/push/useIosCallkeepWithCallingStateEffect.d.ts +0 -5
- package/dist/typescript/hooks/push/useIosCallkeepWithCallingStateEffect.d.ts.map +0 -1
- package/dist/typescript/hooks/push/useProcessPushCallEffect.d.ts +0 -8
- package/dist/typescript/hooks/push/useProcessPushCallEffect.d.ts.map +0 -1
- package/dist/typescript/utils/push/libs/callkeep.d.ts +0 -3
- package/dist/typescript/utils/push/libs/callkeep.d.ts.map +0 -1
- package/dist/typescript/utils/push/libs/voipPushNotification.d.ts +0 -3
- package/dist/typescript/utils/push/libs/voipPushNotification.d.ts.map +0 -1
- package/dist/typescript/utils/push/setupIosCallKeepEvents.d.ts +0 -6
- package/dist/typescript/utils/push/setupIosCallKeepEvents.d.ts.map +0 -1
- package/src/hooks/push/useIosCallkeepWithCallingStateEffect.ts +0 -235
- package/src/hooks/push/useProcessPushCallEffect.ts +0 -108
- package/src/utils/push/libs/callkeep.ts +0 -16
- package/src/utils/push/libs/voipPushNotification.ts +0 -17
- package/src/utils/push/setupIosCallKeepEvents.ts +0 -252
|
@@ -3,55 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.pushNonRingingCallData$ = void 0;
|
|
7
7
|
var _rxjs = require("rxjs");
|
|
8
8
|
/**
|
|
9
9
|
* This rxjs subject is used to store the call cid of the accepted incoming call from push notification
|
|
10
10
|
* Note: it is should be subscribed only when a user has connected to the websocket of Stream
|
|
11
11
|
*/
|
|
12
12
|
const pushNonRingingCallData$ = exports.pushNonRingingCallData$ = new _rxjs.BehaviorSubject(undefined);
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* This rxjs subject is used to store the call cid of the accepted incoming call from push notification
|
|
16
|
-
* Note: it is should be subscribed only when a user has connected to the websocket of Stream
|
|
17
|
-
*/
|
|
18
|
-
const pushAcceptedIncomingCallCId$ = exports.pushAcceptedIncomingCallCId$ = new _rxjs.BehaviorSubject(undefined);
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* This rxjs subject is used to store the call cid of the tapped incoming call from push notification it is neither accepted nor rejected yet
|
|
22
|
-
* Note: it should be subscribed only when a user has connected to the websocket of Stream
|
|
23
|
-
*/
|
|
24
|
-
const pushTappedIncomingCallCId$ = exports.pushTappedIncomingCallCId$ = new _rxjs.BehaviorSubject(undefined);
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* This rxjs subject is used to store the call cid of the delivered incoming call from push notification it is neither accepted nor rejected yet
|
|
28
|
-
* Used so that the call is navigated to when app is open from being killed
|
|
29
|
-
* Note: it should be subscribed only when a user has connected to the websocket of Stream
|
|
30
|
-
*/
|
|
31
|
-
const pushAndroidBackgroundDeliveredIncomingCallCId$ = exports.pushAndroidBackgroundDeliveredIncomingCallCId$ = new _rxjs.BehaviorSubject(undefined);
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* This rxjs subject is used to store the call cid of the accepted incoming call from push notification
|
|
35
|
-
* Note: it should be subscribed only when a user has connected to the websocket of Stream
|
|
36
|
-
*/
|
|
37
|
-
const pushRejectedIncomingCallCId$ = exports.pushRejectedIncomingCallCId$ = new _rxjs.BehaviorSubject(undefined);
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* This rxjs subject is used to store the call cid of the incoming call from ios voip pushkit notification
|
|
41
|
-
*/
|
|
42
|
-
const voipPushNotificationCallCId$ = exports.voipPushNotificationCallCId$ = new _rxjs.BehaviorSubject(undefined);
|
|
43
|
-
|
|
44
|
-
/** The pair of cid of a call and its corresponding uuid created in the native side */
|
|
45
|
-
|
|
46
|
-
/*
|
|
47
|
-
* This rxjs subject should only used to store the CallkeepMap
|
|
48
|
-
* for the incoming call when on foreground
|
|
49
|
-
* or in other words, when we get didDisplayIncomingCall from callkeep lib
|
|
50
|
-
*/
|
|
51
|
-
const voipCallkeepCallOnForegroundMap$ = exports.voipCallkeepCallOnForegroundMap$ = new _rxjs.BehaviorSubject(undefined);
|
|
52
|
-
|
|
53
|
-
/*
|
|
54
|
-
* This rxjs subject should only used to store the CallkeepMap when it was accepted in the native dialer
|
|
55
|
-
*/
|
|
56
|
-
const voipCallkeepAcceptedCallOnNativeDialerMap$ = exports.voipCallkeepAcceptedCallOnNativeDialerMap$ = new _rxjs.BehaviorSubject(undefined);
|
|
57
13
|
//# sourceMappingURL=rxSubjects.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_rxjs","require","pushNonRingingCallData$","exports","BehaviorSubject","undefined"
|
|
1
|
+
{"version":3,"names":["_rxjs","require","pushNonRingingCallData$","exports","BehaviorSubject","undefined"],"sourceRoot":"../../../../../src","sources":["utils/push/internal/rxSubjects.ts"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAGA;AACA;AACA;AACA;AACO,MAAMC,uBAAuB,GAAAC,OAAA,CAAAD,uBAAA,GAAG,IAAIE,qBAAe,CAExDC,SAAS,CAAC","ignoreList":[]}
|
|
@@ -3,51 +3,44 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.shouldCallBeEnded = exports.processNonIncomingCallFromPush = exports.processCallFromPushInBackground = exports.processCallFromPush = exports.clearPushWSEventSubscriptions = exports.canAddPushWSSubscriptionsRef = void 0;
|
|
6
|
+
exports.shouldCallBeEnded = exports.shouldCallBeClosed = exports.processNonIncomingCallFromPush = exports.processCallFromPushInBackground = exports.processCallFromPush = exports.clearPushWSEventSubscriptions = exports.canListenToWS = exports.canAddPushWSSubscriptionsRef = void 0;
|
|
7
7
|
var _videoClient = require("@stream-io/video-client");
|
|
8
8
|
var _newNotificationCallbacks = require("../../internal/newNotificationCallbacks");
|
|
9
9
|
var _constants = require("./constants");
|
|
10
|
+
var _reactNative = require("react-native");
|
|
10
11
|
/**
|
|
11
12
|
* This function is used to check if the call should be ended based on the push notification
|
|
12
13
|
* Useful for callkeep management to end the call if necessary (with reportEndCallWithUUID)
|
|
13
14
|
*/
|
|
14
15
|
const shouldCallBeEnded = (callFromPush, created_by_id, receiver_id) => {
|
|
15
|
-
/* callkeep reasons for ending a call
|
|
16
|
-
FAILED: 1,
|
|
17
|
-
REMOTE_ENDED: 2,
|
|
18
|
-
UNANSWERED: 3,
|
|
19
|
-
ANSWERED_ELSEWHERE: 4,
|
|
20
|
-
DECLINED_ELSEWHERE: 5,
|
|
21
|
-
MISSED: 6
|
|
22
|
-
*/
|
|
23
16
|
const callSession = callFromPush.state.session;
|
|
24
17
|
const rejected_by = callSession?.rejected_by;
|
|
25
18
|
const accepted_by = callSession?.accepted_by;
|
|
26
19
|
let mustEndCall = false;
|
|
27
|
-
let
|
|
20
|
+
let endCallReason = 'unknown';
|
|
28
21
|
if (created_by_id && rejected_by) {
|
|
29
22
|
if (rejected_by[created_by_id]) {
|
|
30
|
-
// call was cancelled by the caller
|
|
23
|
+
// call was cancelled by the caller before the receiver could answer
|
|
31
24
|
mustEndCall = true;
|
|
32
|
-
|
|
25
|
+
endCallReason = 'canceled';
|
|
33
26
|
}
|
|
34
27
|
} else if (receiver_id && rejected_by) {
|
|
35
28
|
if (rejected_by[receiver_id]) {
|
|
36
29
|
// call was rejected by the receiver in some other device
|
|
37
30
|
mustEndCall = true;
|
|
38
|
-
|
|
31
|
+
endCallReason = 'rejected';
|
|
39
32
|
}
|
|
40
33
|
} else if (receiver_id && accepted_by) {
|
|
41
34
|
if (accepted_by[receiver_id]) {
|
|
42
35
|
// call was accepted by the receiver in some other device
|
|
43
36
|
mustEndCall = true;
|
|
44
|
-
|
|
37
|
+
endCallReason = 'answeredElsewhere';
|
|
45
38
|
}
|
|
46
39
|
}
|
|
47
|
-
_videoClient.videoLoggerSystem.getLogger('shouldCallBeEnded').debug(`callCid: ${callFromPush.cid} mustEndCall: ${mustEndCall}
|
|
40
|
+
_videoClient.videoLoggerSystem.getLogger('shouldCallBeEnded').debug(`callCid: ${callFromPush.cid} mustEndCall: ${mustEndCall} endCallReason: ${endCallReason}`);
|
|
48
41
|
return {
|
|
49
42
|
mustEndCall,
|
|
50
|
-
|
|
43
|
+
endCallReason
|
|
51
44
|
};
|
|
52
45
|
};
|
|
53
46
|
|
|
@@ -81,10 +74,10 @@ const processCallFromPushInBackground = async (pushConfig, call_cid, action) =>
|
|
|
81
74
|
exports.processCallFromPushInBackground = processCallFromPushInBackground;
|
|
82
75
|
const processCallFromPush = async (client, call_cid, action, pushConfig) => {
|
|
83
76
|
let callFromPush;
|
|
77
|
+
const logger = _videoClient.videoLoggerSystem.getLogger('Callingx - processCallFromPush');
|
|
84
78
|
try {
|
|
85
79
|
callFromPush = await client.onRingingCall(call_cid);
|
|
86
80
|
} catch (e) {
|
|
87
|
-
const logger = _videoClient.videoLoggerSystem.getLogger('processCallFromPush');
|
|
88
81
|
logger.error('failed to fetch call from push notification', e);
|
|
89
82
|
return;
|
|
90
83
|
}
|
|
@@ -94,18 +87,22 @@ const processCallFromPush = async (client, call_cid, action, pushConfig) => {
|
|
|
94
87
|
if (pushConfig.publishOptions) {
|
|
95
88
|
callFromPush.updatePublishOptions(pushConfig.publishOptions);
|
|
96
89
|
}
|
|
97
|
-
|
|
90
|
+
logger.debug(`joining call from push notification with callCid: ${callFromPush.cid}`);
|
|
91
|
+
const callingState = callFromPush.state.callingState;
|
|
92
|
+
if (callingState !== _videoClient.CallingState.RINGING && callingState !== _videoClient.CallingState.IDLE) {
|
|
93
|
+
logger.debug(`skipping join call as it is not in ringing or idle state from push notification. callCid: ${callFromPush.cid}`);
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
98
96
|
await callFromPush.join();
|
|
99
97
|
} else if (action === 'decline') {
|
|
100
98
|
const canReject = callFromPush.state.callingState === _videoClient.CallingState.RINGING;
|
|
101
|
-
|
|
99
|
+
logger.debug(`declining call from push notification with callCid: ${callFromPush.cid} reject: ${canReject}`);
|
|
102
100
|
await callFromPush.leave({
|
|
103
101
|
reject: canReject,
|
|
104
102
|
reason: 'decline'
|
|
105
103
|
});
|
|
106
104
|
}
|
|
107
105
|
} catch (e) {
|
|
108
|
-
const logger = _videoClient.videoLoggerSystem.getLogger('processCallFromPush');
|
|
109
106
|
logger.warn(`failed to process ${action} call from push notification`, e);
|
|
110
107
|
}
|
|
111
108
|
};
|
|
@@ -159,4 +156,19 @@ exports.clearPushWSEventSubscriptions = clearPushWSEventSubscriptions;
|
|
|
159
156
|
const canAddPushWSSubscriptionsRef = exports.canAddPushWSSubscriptionsRef = {
|
|
160
157
|
current: true
|
|
161
158
|
};
|
|
159
|
+
const canListenToWS = () => canAddPushWSSubscriptionsRef.current && _reactNative.AppState.currentState !== 'active';
|
|
160
|
+
exports.canListenToWS = canListenToWS;
|
|
161
|
+
const shouldCallBeClosed = (call, pushData) => {
|
|
162
|
+
const created_by_id = pushData?.created_by_id;
|
|
163
|
+
const receiver_id = pushData?.receiver_id;
|
|
164
|
+
const {
|
|
165
|
+
mustEndCall,
|
|
166
|
+
endCallReason
|
|
167
|
+
} = shouldCallBeEnded(call, created_by_id, receiver_id);
|
|
168
|
+
return {
|
|
169
|
+
mustEndCall,
|
|
170
|
+
endCallReason
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
exports.shouldCallBeClosed = shouldCallBeClosed;
|
|
162
174
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_videoClient","require","_newNotificationCallbacks","_constants","shouldCallBeEnded","callFromPush","created_by_id","receiver_id","callSession","state","session","rejected_by","accepted_by","mustEndCall","
|
|
1
|
+
{"version":3,"names":["_videoClient","require","_newNotificationCallbacks","_constants","_reactNative","shouldCallBeEnded","callFromPush","created_by_id","receiver_id","callSession","state","session","rejected_by","accepted_by","mustEndCall","endCallReason","videoLoggerSystem","getLogger","debug","cid","exports","processCallFromPushInBackground","pushConfig","call_cid","action","videoClient","createStreamVideoClient","e","logger","error","processCallFromPush","client","onRingingCall","publishOptions","updatePublishOptions","callingState","CallingState","RINGING","IDLE","join","canReject","leave","reject","reason","warn","processNonIncomingCallFromPush","nonRingingNotificationType","_callFromPush","calls","find","c","callType","callId","split","call","get","onNewCallNotification","clearPushWSEventSubscriptions","unsubscriptionCallbacks","pushUnsubscriptionCallbacks","forEach","cb","delete","canAddPushWSSubscriptionsRef","current","canListenToWS","AppState","currentState","shouldCallBeClosed","pushData"],"sourceRoot":"../../../../../src","sources":["utils/push/internal/utils.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAUA,IAAAC,yBAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAOA;AACA;AACA;AACA;AACO,MAAMI,iBAAiB,GAAGA,CAC/BC,YAAkB,EAClBC,aAAiC,EACjCC,WAA+B,KAC5B;EACH,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,aAA4B,GAAG,SAAS;EAE5C,IAAIR,aAAa,IAAIK,WAAW,EAAE;IAChC,IAAIA,WAAW,CAACL,aAAa,CAAC,EAAE;MAC9B;MACAO,WAAW,GAAG,IAAI;MAClBC,aAAa,GAAG,UAAU;IAC5B;EACF,CAAC,MAAM,IAAIP,WAAW,IAAII,WAAW,EAAE;IACrC,IAAIA,WAAW,CAACJ,WAAW,CAAC,EAAE;MAC5B;MACAM,WAAW,GAAG,IAAI;MAClBC,aAAa,GAAG,UAAU;IAC5B;EACF,CAAC,MAAM,IAAIP,WAAW,IAAIK,WAAW,EAAE;IACrC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,IAAIE,qBAAQ,CAACC,YAAY,KAAK,QAAQ;AAAC/C,OAAA,CAAA6C,aAAA,GAAAA,aAAA;AAEtE,MAAMG,kBAAkB,GAAGA,CAChCd,IAAU,EACVe,QAA4C,KACzC;EACH,MAAM9D,aAAa,GAAG8D,QAAQ,EAAE9D,aAAuB;EACvD,MAAMC,WAAW,GAAG6D,QAAQ,EAAE7D,WAAqB;EAEnD,MAAM;IAAEM,WAAW;IAAEC;EAAc,CAAC,GAAGV,iBAAiB,CACtDiD,IAAI,EACJ/C,aAAa,EACbC,WACF,CAAC;EACD,OAAO;IAAEM,WAAW;IAAEC;EAAc,CAAC;AACvC,CAAC;AAACK,OAAA,CAAAgD,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_rxSubjects","_libs","_videoClient","_pushLogoutCallback","_StreamVideoRN","lastApnToken","token","userId","processNonRingingNotificationStreamPayload","streamPayload","sender","type","cid","call_cid","logger","videoLoggerSystem","getLogger","trace","pushNonRingingCallData$","next","undefined","oniOSExpoNotificationEvent","event","pushConfig","StreamVideoRN","getConfig","push","trigger","request","payload","stream","JSON","stringify","exports","oniOSNotifeeEvent","Platform","OS","detail","notifeeLib","getNotifeeLibThrowIfNotInstalledForPush","EventType","PRESS","notification","data","result","debug","onTapNonRingingCallNotification","onPushNotificationiOSStreamVideoEvent","pushNotificationIosLib","getPushNotificationIosLib","getData","isClicked","userInteraction","finish","FetchResult","NoData","initIosNonVoipToken","client","setUnsubscribeListener","ios","pushProviderName","setDeviceToken","streamClient","_user","id","setPushLogoutCallback","removeDevice","err","warn","push_provider_name","addDevice","then","catch","isExpo","expoNotificationsLib","getExpoNotificationsLib","getDevicePushTokenAsync","devicePushToken","subscription","addPushTokenListener","remove","addEventListener","removeEventListener"],"sourceRoot":"../../../../src","sources":["utils/push/ios.ts"],"mappings":";;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAA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AK,CACV,gDAAgDc,IAAI,CAACC,SAAS,CAC5DvB,aACF,CAAC,EACH,CAAC;MACDD,0CAA0C,CAACC,aAAa,CAAC;IAC3D;EACF;AACF,CAAC;AAACwB,OAAA,CAAAZ,0BAAA,GAAAA,0BAAA;AAEK,MAAMa,iBAAiB,GAAGA,CAAC;
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_rxSubjects","_libs","_videoClient","_pushLogoutCallback","_StreamVideoRN","lastApnToken","token","userId","processNonRingingNotificationStreamPayload","streamPayload","sender","type","cid","call_cid","logger","videoLoggerSystem","getLogger","trace","pushNonRingingCallData$","next","undefined","oniOSExpoNotificationEvent","event","pushConfig","StreamVideoRN","getConfig","push","trigger","request","payload","stream","JSON","stringify","exports","oniOSNotifeeEvent","Platform","OS","detail","notifeeLib","getNotifeeLibThrowIfNotInstalledForPush","EventType","PRESS","notification","data","result","debug","onTapNonRingingCallNotification","onPushNotificationiOSStreamVideoEvent","pushNotificationIosLib","getPushNotificationIosLib","getData","isClicked","userInteraction","finish","FetchResult","NoData","initIosNonVoipToken","client","setUnsubscribeListener","ios","pushProviderName","setDeviceToken","streamClient","_user","id","setPushLogoutCallback","removeDevice","err","warn","push_provider_name","addDevice","then","catch","isExpo","expoNotificationsLib","getExpoNotificationsLib","getDevicePushTokenAsync","devicePushToken","subscription","addPushTokenListener","remove","addEventListener","removeEventListener"],"sourceRoot":"../../../../src","sources":["utils/push/ios.ts"],"mappings":";;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AAOA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAJ,OAAA;AAEA,IAAAK,cAAA,GAAAL,OAAA;AAKA,IAAIM,YAAY,GAAG;EAAEC,KAAK,EAAE,EAAE;EAAEC,MAAM,EAAE;AAAG,CAAC;AAE5C,SAASC,0CAA0CA,CACjDC,aAAgC,EAChC;EACA,IAC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ACgB,eAAe,CAAClC,IAAI,CAAC;MACtC,CACF,CAAC;MACDe,sBAAsB,CAAC,MAAM;QAC3B5C,MAAM,CAAC+B,KAAK,CAAC,mCAAmC,CAAC;QACjDiC,YAAY,CAACE,MAAM,CAAC,CAAC;MACvB,CAAC,CAAC;IACJ;EACF,CAAC,MAAM;IACL,MAAMhC,sBAAsB,GAAG,IAAAC,+BAAyB,EAAC,CAAC;IAC1DD,sBAAsB,CAACiC,gBAAgB,CAAC,UAAU,EAAG3E,KAAK,IAAK;MAC7DQ,MAAM,CAAC+B,KAAK,CACV,wEAAwE,EACxEvC,KACF,CAAC;MACDuD,cAAc,CAACvD,KAAK,CAAC;IACvB,CAAC,CAAC;IACFoD,sBAAsB,CAAC,MAAM;MAC3B5C,MAAM,CAAC+B,KAAK,CAAC,wDAAwD,CAAC;MACtEG,sBAAsB,CAACkC,mBAAmB,CAAC,UAAU,CAAC;IACxD,CAAC,CAAC;EACJ;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.extractCallingExpOptions = extractCallingExpOptions;
|
|
7
|
+
exports.getCallingxLib = getCallingxLib;
|
|
8
|
+
exports.getCallingxLibIfAvailable = getCallingxLibIfAvailable;
|
|
9
|
+
let callingx;
|
|
10
|
+
try {
|
|
11
|
+
callingx = require('@stream-io/react-native-callingx').CallingxModule;
|
|
12
|
+
} catch {}
|
|
13
|
+
function getCallingxLib() {
|
|
14
|
+
if (!callingx) {
|
|
15
|
+
throw Error('react-native-callingx library is not installed.');
|
|
16
|
+
}
|
|
17
|
+
return callingx;
|
|
18
|
+
}
|
|
19
|
+
function getCallingxLibIfAvailable() {
|
|
20
|
+
return callingx ?? undefined;
|
|
21
|
+
}
|
|
22
|
+
function extractCallingExpOptions(config) {
|
|
23
|
+
const {
|
|
24
|
+
push: pushConfig,
|
|
25
|
+
foregroundService: foregroundServiceConfig
|
|
26
|
+
} = config;
|
|
27
|
+
const callingExpOptions = {};
|
|
28
|
+
if (pushConfig?.ios) {
|
|
29
|
+
const iosOptions = {};
|
|
30
|
+
if (pushConfig.ios.supportsVideo !== undefined) {
|
|
31
|
+
iosOptions.supportsVideo = pushConfig.ios.supportsVideo;
|
|
32
|
+
}
|
|
33
|
+
if (pushConfig.ios.sound !== undefined) {
|
|
34
|
+
iosOptions.sound = pushConfig.ios.sound;
|
|
35
|
+
}
|
|
36
|
+
if (pushConfig.ios.imageName !== undefined) {
|
|
37
|
+
iosOptions.imageName = pushConfig.ios.imageName;
|
|
38
|
+
}
|
|
39
|
+
if (pushConfig.ios.callsHistory !== undefined) {
|
|
40
|
+
iosOptions.callsHistory = pushConfig.ios.callsHistory;
|
|
41
|
+
}
|
|
42
|
+
if (pushConfig.ios.displayCallTimeout !== undefined) {
|
|
43
|
+
iosOptions.displayCallTimeout = pushConfig.ios.displayCallTimeout;
|
|
44
|
+
}
|
|
45
|
+
if (Object.keys(iosOptions).length > 0) {
|
|
46
|
+
callingExpOptions.ios = iosOptions;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
const androidOptions = {};
|
|
50
|
+
if (pushConfig?.android) {
|
|
51
|
+
if (pushConfig.android.incomingChannel) {
|
|
52
|
+
androidOptions.incomingChannel = pushConfig.android.incomingChannel;
|
|
53
|
+
}
|
|
54
|
+
if (pushConfig.android.titleTransformer) {
|
|
55
|
+
androidOptions.titleTransformer = pushConfig.android.titleTransformer;
|
|
56
|
+
}
|
|
57
|
+
if (pushConfig.android.subtitleTransformer) {
|
|
58
|
+
androidOptions.subtitleTransformer = pushConfig.android.subtitleTransformer;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
if (foregroundServiceConfig.android.channel) {
|
|
62
|
+
androidOptions.ongoingChannel = foregroundServiceConfig.android.channel;
|
|
63
|
+
}
|
|
64
|
+
if (Object.keys(androidOptions).length > 0) {
|
|
65
|
+
callingExpOptions.android = androidOptions;
|
|
66
|
+
}
|
|
67
|
+
if (pushConfig?.shouldRejectCallWhenBusy !== undefined) {
|
|
68
|
+
callingExpOptions.shouldRejectCallWhenBusy = pushConfig.shouldRejectCallWhenBusy;
|
|
69
|
+
}
|
|
70
|
+
if (pushConfig?.enableOngoingCalls !== undefined) {
|
|
71
|
+
callingExpOptions.enableOngoingCalls = pushConfig?.enableOngoingCalls;
|
|
72
|
+
}
|
|
73
|
+
return callingExpOptions;
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=callingx.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["callingx","require","CallingxModule","getCallingxLib","Error","getCallingxLibIfAvailable","undefined","extractCallingExpOptions","config","push","pushConfig","foregroundService","foregroundServiceConfig","callingExpOptions","ios","iosOptions","supportsVideo","sound","imageName","callsHistory","displayCallTimeout","Object","keys","length","androidOptions","android","incomingChannel","titleTransformer","subtitleTransformer","channel","ongoingChannel","shouldRejectCallWhenBusy","enableOngoingCalls"],"sourceRoot":"../../../../../src","sources":["utils/push/libs/callingx.ts"],"mappings":";;;;;;;;AAUA,IAAIA,QAAoC;AAExC,IAAI;EACFA,QAAQ,GAAGC,OAAO,CAAC,kCAAkC,CAAC,CAACC,cAAc;AACvE,CAAC,CAAC,MAAM,CAAC;AAEF,SAASC,cAAcA,CAAA,EAAG;EAC/B,IAAI,CAACH,QAAQ,EAAE;IACb,MAAMI,KAAK,CAAC,iDAAiD,CAAC;EAChE;EACA,OAAOJ,QAAQ;AACjB;AAEO,SAASK,yBAAyBA,CAAA,EAAG;EAC1C,OAAOL,QAAQ,IAAIM,SAAS;AAC9B;AAEO,SAASC,wBAAwBA,CACtCC,MAAyB,EACN;EACnB,MAAM;IAAEC,IAAI,EAAEC,UAAU;IAAEC,iBAAiB,EAAEC;EAAwB,CAAC,GACpEJ,MAAM;EACR,MAAMK,iBAAoC,GAAG,CAAC,CAAC;EAE/C,IAAIH,U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MAC1CJ,cAAc,CAACI,mBAAmB,GAChClB,UAAU,CAACe,OAAO,CAACG,mBAAmB;IAC1C;EACF;EAEA,IAAIhB,uBAAuB,CAACa,OAAO,CAACI,OAAO,EAAE;IAC3CL,cAAc,CAACM,cAAc,GAAGlB,uBAAuB,CAACa,OAAO,CAACI,OAAO;EACzE;EAEA,IAAIR,MAAM,CAACC,IAAI,CAACE,cAAc,CAAC,CAACD,MAAM,GAAG,CAAC,EAAE;IAC1CV,iBAAiB,CAACY,OAAO,GAAGD,cAAc;EAC5C;EAEA,IAAId,UAAU,EAAEqB,wBAAwB,KAAKzB,SAAS,EAAE;IACtDO,iBAAiB,CAACkB,wBAAwB,GACxCrB,UAAU,CAACqB,wBAAwB;EACvC;EAEA,IAAIrB,UAAU,EAAEsB,kBAAkB,KAAK1B,SAAS,EAAE;IAChDO,iBAAiB,CAACmB,kBAAkB,GAAGtB,UAAU,EAAEsB,kBAAkB;EACvE;EAEA,OAAOnB,iBAAiB;AAC1B","ignoreList":[]}
|
|
@@ -36,36 +36,25 @@ Object.keys(_iosPushNotification).forEach(function (key) {
|
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
});
|
|
39
|
-
var
|
|
40
|
-
Object.keys(
|
|
41
|
-
if (key === "default" || key === "__esModule") return;
|
|
42
|
-
if (key in exports && exports[key] === _voipPushNotification[key]) return;
|
|
43
|
-
Object.defineProperty(exports, key, {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
get: function () {
|
|
46
|
-
return _voipPushNotification[key];
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
var _callkeep = require("./callkeep");
|
|
51
|
-
Object.keys(_callkeep).forEach(function (key) {
|
|
39
|
+
var _notifee = require("./notifee");
|
|
40
|
+
Object.keys(_notifee).forEach(function (key) {
|
|
52
41
|
if (key === "default" || key === "__esModule") return;
|
|
53
|
-
if (key in exports && exports[key] ===
|
|
42
|
+
if (key in exports && exports[key] === _notifee[key]) return;
|
|
54
43
|
Object.defineProperty(exports, key, {
|
|
55
44
|
enumerable: true,
|
|
56
45
|
get: function () {
|
|
57
|
-
return
|
|
46
|
+
return _notifee[key];
|
|
58
47
|
}
|
|
59
48
|
});
|
|
60
49
|
});
|
|
61
|
-
var
|
|
62
|
-
Object.keys(
|
|
50
|
+
var _callingx = require("./callingx");
|
|
51
|
+
Object.keys(_callingx).forEach(function (key) {
|
|
63
52
|
if (key === "default" || key === "__esModule") return;
|
|
64
|
-
if (key in exports && exports[key] ===
|
|
53
|
+
if (key in exports && exports[key] === _callingx[key]) return;
|
|
65
54
|
Object.defineProperty(exports, key, {
|
|
66
55
|
enumerable: true,
|
|
67
56
|
get: function () {
|
|
68
|
-
return
|
|
57
|
+
return _callingx[key];
|
|
69
58
|
}
|
|
70
59
|
});
|
|
71
60
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_expoNotifications","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_firebaseMessaging","_iosPushNotification","
|
|
1
|
+
{"version":3,"names":["_expoNotifications","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_firebaseMessaging","_iosPushNotification","_notifee","_callingx"],"sourceRoot":"../../../../../src","sources":["utils/push/libs/index.ts"],"mappings":";;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,kBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,kBAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,kBAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,kBAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,kBAAA,EAAAN,OA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H,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAI,SAAA,CAAAR,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -4,12 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getIncomingCallForegroundServiceTypes = getIncomingCallForegroundServiceTypes;
|
|
7
|
-
exports.getKeepCallAliveForegroundServiceTypes = getKeepCallAliveForegroundServiceTypes;
|
|
8
7
|
exports.getNotifeeLibNoThrowForKeepCallAlive = getNotifeeLibNoThrowForKeepCallAlive;
|
|
9
8
|
exports.getNotifeeLibThrowIfNotInstalledForPush = getNotifeeLibThrowIfNotInstalledForPush;
|
|
10
|
-
var _reactNative = require("react-native");
|
|
11
9
|
var _lib = require("./lib");
|
|
12
|
-
var _videoClient = require("@stream-io/video-client");
|
|
13
10
|
var AndroidForegroundServiceType = /*#__PURE__*/function (AndroidForegroundServiceType) {
|
|
14
11
|
AndroidForegroundServiceType[AndroidForegroundServiceType["FOREGROUND_SERVICE_TYPE_CAMERA"] = 64] = "FOREGROUND_SERVICE_TYPE_CAMERA";
|
|
15
12
|
AndroidForegroundServiceType[AndroidForegroundServiceType["FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE"] = 16] = "FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE";
|
|
@@ -36,24 +33,8 @@ function getNotifeeLibThrowIfNotInstalledForPush() {
|
|
|
36
33
|
return _lib.lib;
|
|
37
34
|
}
|
|
38
35
|
function getNotifeeLibNoThrowForKeepCallAlive() {
|
|
39
|
-
if (!_lib.lib) {
|
|
40
|
-
const logger = _videoClient.videoLoggerSystem.getLogger('getNotifeeLibNoThrow');
|
|
41
|
-
logger.info(`${'@notifee/react-native library not installed. It is required to keep call alive in the background for Android. '}${INSTALLATION_INSTRUCTION}`);
|
|
42
|
-
}
|
|
43
36
|
return _lib.lib;
|
|
44
37
|
}
|
|
45
|
-
async function getKeepCallAliveForegroundServiceTypes() {
|
|
46
|
-
const types = [AndroidForegroundServiceType.FOREGROUND_SERVICE_TYPE_MEDIA_PLAYBACK];
|
|
47
|
-
const hasCameraPermission = await _reactNative.PermissionsAndroid.check(_reactNative.PermissionsAndroid.PERMISSIONS.CAMERA);
|
|
48
|
-
if (hasCameraPermission) {
|
|
49
|
-
types.push(AndroidForegroundServiceType.FOREGROUND_SERVICE_TYPE_CAMERA);
|
|
50
|
-
}
|
|
51
|
-
const hasMicrophonePermission = await _reactNative.PermissionsAndroid.check(_reactNative.PermissionsAndroid.PERMISSIONS.RECORD_AUDIO);
|
|
52
|
-
if (hasMicrophonePermission) {
|
|
53
|
-
types.push(AndroidForegroundServiceType.FOREGROUND_SERVICE_TYPE_MICROPHONE);
|
|
54
|
-
}
|
|
55
|
-
return types;
|
|
56
|
-
}
|
|
57
38
|
function getIncomingCallForegroundServiceTypes() {
|
|
58
39
|
const types = [AndroidForegroundServiceType.FOREGROUND_SERVICE_TYPE_SHORT_SERVICE];
|
|
59
40
|
return types;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_lib","require","AndroidForegroundServiceType","INSTALLATION_INSTRUCTION","getNotifeeLibThrowIfNotInstalledForPush","lib","Error","getNotifeeLibNoThrowForKeepCallAlive","getIncomingCallForegroundServiceTypes","types","FOREGROUND_SERVICE_TYPE_SHORT_SERVICE"],"sourceRoot":"../../../../../../src","sources":["utils/push/libs/notifee/index.ts"],"mappings":";;;;;;;;AAAA,IAAAA,IAAA,GAAAC,OAAA;AAAuC,IAIlCC,4BAA4B,0BAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAAA,OAA5BA,4BAA4B;AAAA,EAA5BA,4BAA4B;AAkBjC,MAAMC,wBAAwB,GAC5B,6FAA6F;AAExF,SAASC,uCAAuCA,CAAA,EAAG;EACxD,IAAI,CAACC,QAAG,EAAE;IACR,MAAMC,KAAK,CACT,8FAA8F,GAC5FH,wBACJ,CAAC;EACH;EACA,OAAOE,QAAG;AACZ;AAEO,SAASE,oCAAoCA,CAAA,EAAG;EACrD,OAAOF,QAAG;AACZ;AAEO,SAASG,qCAAqCA,CAAA,EAAG;EACtD,MAAMC,KAAqC,GAAG,CAC5CP,4BAA4B,CAACQ,qCAAqC,CACnE;EACD,OAAOD,KAAK;AACd","ignoreList":[]}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.setupCallingExpEvents = setupCallingExpEvents;
|
|
7
|
+
var _videoClient = require("@stream-io/video-client");
|
|
8
|
+
var _utils = require("./internal/utils");
|
|
9
|
+
var _pushLogoutCallback = require("../internal/pushLogoutCallback");
|
|
10
|
+
var _audioSessionPromise = require("../internal/callingx/audioSessionPromise");
|
|
11
|
+
var _callingx = require("./libs/callingx");
|
|
12
|
+
var _reactNative = require("react-native");
|
|
13
|
+
const logger = _videoClient.videoLoggerSystem.getLogger('callingx');
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Sets up callingx event listeners for handling call actions from the native calling UI.
|
|
17
|
+
*/
|
|
18
|
+
function setupCallingExpEvents(pushConfig) {
|
|
19
|
+
const hasPushProvider = _reactNative.Platform.OS === 'android' && pushConfig.android?.pushProviderName || _reactNative.Platform.OS === 'ios' && pushConfig.ios?.pushProviderName;
|
|
20
|
+
if (!hasPushProvider) {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
const callingx = (0, _callingx.getCallingxLib)();
|
|
24
|
+
const {
|
|
25
|
+
remove: removeAnswerCall
|
|
26
|
+
} = callingx.addEventListener('answerCall', params => {
|
|
27
|
+
onAcceptCall(pushConfig)(params).catch(err => {
|
|
28
|
+
logger.error('Failed to process answerCall event', err);
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
const {
|
|
32
|
+
remove: removeEndCall
|
|
33
|
+
} = callingx.addEventListener('endCall', params => {
|
|
34
|
+
onEndCall(pushConfig)(params).catch(err => {
|
|
35
|
+
logger.error('Failed to process endCall event', err);
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
const {
|
|
39
|
+
remove: removeDidActivateAudioSession
|
|
40
|
+
} = callingx.addEventListener('didActivateAudioSession', onDidActivateAudioSession);
|
|
41
|
+
const {
|
|
42
|
+
remove: removeDidDeactivateAudioSession
|
|
43
|
+
} = callingx.addEventListener('didDeactivateAudioSession', onDidDeactivateAudioSession);
|
|
44
|
+
|
|
45
|
+
//NOTE: until getInitialEvents invocation, events are delayed and won't be sent to event listeners, this is a way to make sure none of required events are missed
|
|
46
|
+
//in most cases there will be no delayed answers or ends, but it we don't want to miss any of them
|
|
47
|
+
const events = callingx.getInitialEvents();
|
|
48
|
+
events.forEach(event => {
|
|
49
|
+
const {
|
|
50
|
+
eventName,
|
|
51
|
+
params
|
|
52
|
+
} = event;
|
|
53
|
+
if (eventName === 'answerCall') {
|
|
54
|
+
logger.debug(`answerCall delayed event callId: ${params?.callId}`);
|
|
55
|
+
onAcceptCall(pushConfig)(params).catch(err => {
|
|
56
|
+
logger.error('Failed to process delayed answerCall event', err);
|
|
57
|
+
});
|
|
58
|
+
} else if (eventName === 'endCall') {
|
|
59
|
+
logger.debug(`endCall delayed event callId: ${params?.callId}`);
|
|
60
|
+
onEndCall(pushConfig)(params).catch(err => {
|
|
61
|
+
logger.error('Failed to process delayed endCall event', err);
|
|
62
|
+
});
|
|
63
|
+
} else if (eventName === 'didActivateAudioSession') {
|
|
64
|
+
onDidActivateAudioSession();
|
|
65
|
+
} else if (eventName === 'didDeactivateAudioSession') {
|
|
66
|
+
onDidDeactivateAudioSession();
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
(0, _pushLogoutCallback.setPushLogoutCallback)(async () => {
|
|
70
|
+
removeAnswerCall();
|
|
71
|
+
removeEndCall();
|
|
72
|
+
removeDidActivateAudioSession();
|
|
73
|
+
removeDidDeactivateAudioSession();
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
const onDidActivateAudioSession = () => {
|
|
77
|
+
logger.debug('callingExpDidActivateAudioSession');
|
|
78
|
+
(0, _audioSessionPromise.resolvePendingAudioSession)();
|
|
79
|
+
};
|
|
80
|
+
const onDidDeactivateAudioSession = () => {
|
|
81
|
+
logger.debug('callingExpDidDeactivateAudioSession');
|
|
82
|
+
};
|
|
83
|
+
const onAcceptCall = pushConfig => async ({
|
|
84
|
+
callId: call_cid,
|
|
85
|
+
source
|
|
86
|
+
}) => {
|
|
87
|
+
logger.debug(`onAcceptCall event callId: ${call_cid} source: ${source}`);
|
|
88
|
+
if (source === 'app' || !call_cid) {
|
|
89
|
+
//we only need to process the call if the call was answered from the system
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
(0, _utils.clearPushWSEventSubscriptions)(call_cid);
|
|
93
|
+
// to process the call in the app
|
|
94
|
+
await (0, _utils.processCallFromPushInBackground)(pushConfig, call_cid, 'accept');
|
|
95
|
+
};
|
|
96
|
+
const onEndCall = pushConfig => async ({
|
|
97
|
+
callId: call_cid,
|
|
98
|
+
source
|
|
99
|
+
}) => {
|
|
100
|
+
logger.debug(`onEndCall event callId: ${call_cid} source: ${source}`);
|
|
101
|
+
if (source === 'app' || !call_cid) {
|
|
102
|
+
//we only need to process the call if the call was rejected from the system
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
(0, _utils.clearPushWSEventSubscriptions)(call_cid);
|
|
106
|
+
await (0, _utils.processCallFromPushInBackground)(pushConfig, call_cid, 'decline');
|
|
107
|
+
};
|
|
108
|
+
//# sourceMappingURL=setupCallingExpEvents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_videoClient","require","_utils","_pushLogoutCallback","_audioSessionPromise","_callingx","_reactNative","logger","videoLoggerSystem","getLogger","setupCallingExpEvents","pushConfig","hasPushProvider","Platform","OS","android","pushProviderName","ios","callingx","getCallingxLib","remove","removeAnswerCall","addEventListener","params","onAcceptCall","catch","err","error","removeEndCall","onEndCall","removeDidActivateAudioSession","onDidActivateAudioSession","removeDidDeactivateAudioSession","onDidDeactivateAudioSession","events","getInitialEvents","forEach","event","eventName","debug","callId","setPushLogoutCallback","resolvePendingAudioSession","call_cid","source","clearPushWSEventSubscriptions","processCallFromPushInBackground"],"sourceRoot":"../../../../src","sources":["utils/push/setupCallingExpEvents.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAIA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,oBAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AAKA,IAAAK,YAAA,GAAAL,OAAA;AAIA,MAAMM,MAAM,GAAGC,8BAAiB,CAACC,SAAS,CAAC,UAAU,CAAC;;AAEtD;AACA;AACA;AACO,SAASC,qBAAqBA,CAACC,UAAmC,EAAE;EACzE,MAAMC,eAAe,GAClBC,qBAAQ,CAACC,EAAE,KAAK,SAAS,IAAIH,UAAU,CAACI,OAAO,EA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AAC;EAExE,IAAIA,MAAM,KAAK,KAAK,IAAI,CAACD,QAAQ,EAAE;IACjC;IACA;EACF;EAEA,IAAAE,oCAA6B,EAACF,QAAQ,CAAC;EACvC;EACA,MAAM,IAAAG,sCAA+B,EAACnC,UAAU,EAAEgC,QAAQ,EAAE,QAAQ,CAAC;AACvE,CAAC;AAEH,MAAMd,SAAS,GACZlB,UAAsB,IACvB,OAAO;EAAE6B,MAAM,EAAEG,QAAQ;EAAEC;AAA+B,CAAC,KAAK;EAC9DrC,MAAM,CAACgC,KAAK,CAAC,2BAA2BI,QAAQ,YAAYC,MAAM,EAAE,CAAC;EAErE,IAAIA,MAAM,KAAK,KAAK,IAAI,CAACD,QAAQ,EAAE;IACjC;IACA;EACF;EAEA,IAAAE,oCAA6B,EAACF,QAAQ,CAAC;EAEvC,MAAM,IAAAG,sCAA+B,EAACnC,UAAU,EAAEgC,QAAQ,EAAE,SAAS,CAAC;AACxE,CAAC","ignoreList":[]}
|
|
@@ -4,11 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.setupIosVoipPushEvents = setupIosVoipPushEvents;
|
|
7
|
-
var _libs = require("./libs");
|
|
8
7
|
var _reactNative = require("react-native");
|
|
9
8
|
var _ios = require("./internal/ios");
|
|
10
9
|
var _pushLogoutCallback = require("../internal/pushLogoutCallback");
|
|
11
10
|
var _videoClient = require("@stream-io/video-client");
|
|
11
|
+
var _libs = require("./libs");
|
|
12
|
+
// import { getVoipPushNotificationLib } from './libs';
|
|
13
|
+
|
|
12
14
|
function setupIosVoipPushEvents(pushConfig) {
|
|
13
15
|
if (_reactNative.Platform.OS !== 'ios' || !pushConfig.ios?.pushProviderName) {
|
|
14
16
|
return;
|
|
@@ -19,14 +21,13 @@ function setupIosVoipPushEvents(pushConfig) {
|
|
|
19
21
|
logger.debug('ios pushProviderName is not defined, so skipping the setupIosVoipPushEvents');
|
|
20
22
|
return;
|
|
21
23
|
}
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
(0, _ios.onVoipNotificationReceived)(notification, pushConfig);
|
|
24
|
+
const callingx = (0, _libs.getCallingxLib)();
|
|
25
|
+
const voipNotificationReceivedListener = callingx.addEventListener('voipNotificationReceived', params => {
|
|
26
|
+
(0, _ios.onVoipNotificationReceived)(params, pushConfig);
|
|
26
27
|
});
|
|
27
28
|
(0, _pushLogoutCallback.setPushLogoutCallback)(async () => {
|
|
28
29
|
_videoClient.videoLoggerSystem.getLogger('setPushLogoutCallback').debug('notification event listener removed');
|
|
29
|
-
|
|
30
|
+
voipNotificationReceivedListener.remove();
|
|
30
31
|
});
|
|
31
32
|
}
|
|
32
33
|
//# sourceMappingURL=setupIosVoipPushEvents.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_ios","_pushLogoutCallback","_videoClient","_libs","setupIosVoipPushEvents","pushConfig","Platform","OS","ios","pushProviderName","logger","videoLoggerSystem","getLogger","debug","callingx","getCallingxLib","voipNotificationReceivedListener","addEventListener","params","onVoipNotificationReceived","setPushLogoutCallback","remove"],"sourceRoot":"../../../../src","sources":["utils/push/setupIosVoipPushEvents.ts"],"mappings":";;;;;;AAEA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,IAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AAEA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AAPA;;AASO,SAASK,sBAAsBA,CACpCC,UAAkD,EAClD;EACA,IAAIC,qBAAQ,CAACC,EAAE,KAAK,KAAK,IAAI,CAACF,UAAU,CAACG,GAAG,EAAEC,gBAAgB,EAAE;IAC9D;EACF;EACA,MAAMC,MAAM,GAAGC,8BAAiB,CAACC,SAAS,CAAC,wBAAwB,CAAC;EACpE,IAAI,CAACP,UAAU,CAACG,GAAG,CAACC,gBAAgB,EAAE;IACpC;IACAC,MAAM,CAACG,KAAK,CACV,6EACF,CAAC;IACD;EACF;EAEA,MAAMC,QAAQ,GAAG,IAAAC,oBAAc,EAAC,CAAC;EACjC,MAAMC,gCAAgC,GAAGF,QAAQ,CAACG,gBAAgB,CAChE,0BAA0B,EACzBC,MAAM,IAAK;IACV,IAAAC,+BAA0B,EAACD,MAAM,EAAEb,UAAU,CAAC;EAChD,CACF,CAAC;EAED,IAAAe,yCAAqB,EAAC,YAAY;IAChCT,8BAAiB,CACdC,SAAS,CAAC,uBAAuB,CAAC,CAClCC,KAAK,CAAC,qCAAqC,CAAC;IAC/CG,gCAAgC,CAACK,MAAM,CAAC,CAAC;EAC3C,CAAC,CAAC;AACJ","ignoreList":[]}
|
package/dist/commonjs/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["version","exports"],"sourceRoot":"../../src","sources":["version.ts"],"mappings":";;;;;;AAAO,MAAMA,OAAO,GAAAC,OAAA,CAAAD,OAAA,GAAG,
|
|
1
|
+
{"version":3,"names":["version","exports"],"sourceRoot":"../../src","sources":["version.ts"],"mappings":";;;;;;AAAO,MAAMA,OAAO,GAAAC,OAAA,CAAAD,OAAA,GAAG,eAAe","ignoreList":[]}
|