@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.
Files changed (222) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/commonjs/components/Call/CallContent/CallContent.js +2 -2
  3. package/dist/commonjs/components/Call/CallContent/CallContent.js.map +1 -1
  4. package/dist/commonjs/components/Call/CallContent/RTCViewPipIOS.js +2 -2
  5. package/dist/commonjs/components/Call/CallContent/RTCViewPipIOS.js.map +1 -1
  6. package/dist/commonjs/components/Call/CallContent/RTCViewPipNative.js +3 -3
  7. package/dist/commonjs/components/Call/CallContent/RTCViewPipNative.js.map +1 -1
  8. package/dist/commonjs/components/Call/CallControls/AcceptCallButton.js +3 -3
  9. package/dist/commonjs/components/Call/CallControls/AcceptCallButton.js.map +1 -1
  10. package/dist/commonjs/components/Call/CallControls/HangupCallButton.js +3 -3
  11. package/dist/commonjs/components/Call/CallControls/HangupCallButton.js.map +1 -1
  12. package/dist/commonjs/components/Call/CallControls/RejectCallButton.js +2 -2
  13. package/dist/commonjs/components/Call/CallControls/RejectCallButton.js.map +1 -1
  14. package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js +2 -2
  15. package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
  16. package/dist/commonjs/components/Call/Lobby/JoinCallButton.js +2 -2
  17. package/dist/commonjs/components/Call/Lobby/JoinCallButton.js.map +1 -1
  18. package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js +4 -4
  19. package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
  20. package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js +2 -2
  21. package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js.map +1 -1
  22. package/dist/commonjs/components/Livestream/LivestreamPlayer/LivestreamPlayer.js +4 -4
  23. package/dist/commonjs/components/Livestream/LivestreamPlayer/LivestreamPlayer.js.map +1 -1
  24. package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLobby.js +2 -2
  25. package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLobby.js.map +1 -1
  26. package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js +2 -2
  27. package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js.map +1 -1
  28. package/dist/commonjs/contexts/internal/ScreenshotIosContext.js +3 -3
  29. package/dist/commonjs/contexts/internal/ScreenshotIosContext.js.map +1 -1
  30. package/dist/commonjs/hooks/push/useInitAndroidTokenAndRest.js +1 -1
  31. package/dist/commonjs/hooks/push/useInitAndroidTokenAndRest.js.map +1 -1
  32. package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js +2 -2
  33. package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +1 -1
  34. package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js +13 -13
  35. package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
  36. package/dist/commonjs/hooks/push/useProcessPushCallEffect.js +2 -2
  37. package/dist/commonjs/hooks/push/useProcessPushCallEffect.js.map +1 -1
  38. package/dist/commonjs/hooks/push/useProcessPushNonRingingCallEffect.js +1 -1
  39. package/dist/commonjs/hooks/push/useProcessPushNonRingingCallEffect.js.map +1 -1
  40. package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js +10 -10
  41. package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
  42. package/dist/commonjs/hooks/usePermissionRequest.js +2 -2
  43. package/dist/commonjs/hooks/usePermissionRequest.js.map +1 -1
  44. package/dist/commonjs/hooks/useScreenShareButton.js +4 -4
  45. package/dist/commonjs/hooks/useScreenShareButton.js.map +1 -1
  46. package/dist/commonjs/hooks/useScreenshot.js +2 -2
  47. package/dist/commonjs/hooks/useScreenshot.js.map +1 -1
  48. package/dist/commonjs/modules/call-manager/PrevLibDetection.js +1 -1
  49. package/dist/commonjs/modules/call-manager/PrevLibDetection.js.map +1 -1
  50. package/dist/commonjs/providers/BusyTonePlayer.js +6 -6
  51. package/dist/commonjs/providers/BusyTonePlayer.js.map +1 -1
  52. package/dist/commonjs/providers/NoiseCancellation/NoiseCancellationProvider.js +2 -2
  53. package/dist/commonjs/providers/NoiseCancellation/NoiseCancellationProvider.js.map +1 -1
  54. package/dist/commonjs/providers/StreamCall/AppStateListener.js +7 -7
  55. package/dist/commonjs/providers/StreamCall/AppStateListener.js.map +1 -1
  56. package/dist/commonjs/utils/getAndroidDefaultRingtoneUrl.js +3 -3
  57. package/dist/commonjs/utils/getAndroidDefaultRingtoneUrl.js.map +1 -1
  58. package/dist/commonjs/utils/push/android.js +30 -30
  59. package/dist/commonjs/utils/push/android.js.map +1 -1
  60. package/dist/commonjs/utils/push/internal/ios.js +9 -9
  61. package/dist/commonjs/utils/push/internal/ios.js.map +1 -1
  62. package/dist/commonjs/utils/push/internal/utils.js +11 -11
  63. package/dist/commonjs/utils/push/internal/utils.js.map +1 -1
  64. package/dist/commonjs/utils/push/ios.js +21 -21
  65. package/dist/commonjs/utils/push/ios.js.map +1 -1
  66. package/dist/commonjs/utils/push/libs/expoNotifications.js +1 -1
  67. package/dist/commonjs/utils/push/libs/expoNotifications.js.map +1 -1
  68. package/dist/commonjs/utils/push/libs/firebaseMessaging/index.js +3 -3
  69. package/dist/commonjs/utils/push/libs/firebaseMessaging/index.js.map +1 -1
  70. package/dist/commonjs/utils/push/libs/notifee/index.js +3 -3
  71. package/dist/commonjs/utils/push/libs/notifee/index.js.map +1 -1
  72. package/dist/commonjs/utils/push/setupIosCallKeepEvents.js +7 -7
  73. package/dist/commonjs/utils/push/setupIosCallKeepEvents.js.map +1 -1
  74. package/dist/commonjs/utils/push/setupIosVoipPushEvents.js +4 -4
  75. package/dist/commonjs/utils/push/setupIosVoipPushEvents.js.map +1 -1
  76. package/dist/commonjs/version.js +1 -1
  77. package/dist/module/components/Call/CallContent/CallContent.js +3 -3
  78. package/dist/module/components/Call/CallContent/CallContent.js.map +1 -1
  79. package/dist/module/components/Call/CallContent/RTCViewPipIOS.js +3 -3
  80. package/dist/module/components/Call/CallContent/RTCViewPipIOS.js.map +1 -1
  81. package/dist/module/components/Call/CallContent/RTCViewPipNative.js +3 -3
  82. package/dist/module/components/Call/CallContent/RTCViewPipNative.js.map +1 -1
  83. package/dist/module/components/Call/CallControls/AcceptCallButton.js +3 -3
  84. package/dist/module/components/Call/CallControls/AcceptCallButton.js.map +1 -1
  85. package/dist/module/components/Call/CallControls/HangupCallButton.js +3 -4
  86. package/dist/module/components/Call/CallControls/HangupCallButton.js.map +1 -1
  87. package/dist/module/components/Call/CallControls/RejectCallButton.js +3 -3
  88. package/dist/module/components/Call/CallControls/RejectCallButton.js.map +1 -1
  89. package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js +3 -3
  90. package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
  91. package/dist/module/components/Call/Lobby/JoinCallButton.js +3 -3
  92. package/dist/module/components/Call/Lobby/JoinCallButton.js.map +1 -1
  93. package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js +5 -5
  94. package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
  95. package/dist/module/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js +3 -3
  96. package/dist/module/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js.map +1 -1
  97. package/dist/module/components/Livestream/LivestreamPlayer/LivestreamPlayer.js +5 -5
  98. package/dist/module/components/Livestream/LivestreamPlayer/LivestreamPlayer.js.map +1 -1
  99. package/dist/module/components/Livestream/ViewerLivestream/ViewerLobby.js +3 -4
  100. package/dist/module/components/Livestream/ViewerLivestream/ViewerLobby.js.map +1 -1
  101. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js +3 -3
  102. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js.map +1 -1
  103. package/dist/module/contexts/internal/ScreenshotIosContext.js +4 -4
  104. package/dist/module/contexts/internal/ScreenshotIosContext.js.map +1 -1
  105. package/dist/module/hooks/push/useInitAndroidTokenAndRest.js +2 -2
  106. package/dist/module/hooks/push/useInitAndroidTokenAndRest.js.map +1 -1
  107. package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js +3 -3
  108. package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +1 -1
  109. package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js +14 -14
  110. package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
  111. package/dist/module/hooks/push/useProcessPushCallEffect.js +3 -3
  112. package/dist/module/hooks/push/useProcessPushCallEffect.js.map +1 -1
  113. package/dist/module/hooks/push/useProcessPushNonRingingCallEffect.js +2 -2
  114. package/dist/module/hooks/push/useProcessPushNonRingingCallEffect.js.map +1 -1
  115. package/dist/module/hooks/useAndroidKeepCallAliveEffect.js +11 -11
  116. package/dist/module/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
  117. package/dist/module/hooks/usePermissionRequest.js +3 -3
  118. package/dist/module/hooks/usePermissionRequest.js.map +1 -1
  119. package/dist/module/hooks/useScreenShareButton.js +5 -5
  120. package/dist/module/hooks/useScreenShareButton.js.map +1 -1
  121. package/dist/module/hooks/useScreenshot.js +3 -3
  122. package/dist/module/hooks/useScreenshot.js.map +1 -1
  123. package/dist/module/modules/call-manager/PrevLibDetection.js +2 -2
  124. package/dist/module/modules/call-manager/PrevLibDetection.js.map +1 -1
  125. package/dist/module/providers/BusyTonePlayer.js +7 -7
  126. package/dist/module/providers/BusyTonePlayer.js.map +1 -1
  127. package/dist/module/providers/NoiseCancellation/NoiseCancellationProvider.js +3 -3
  128. package/dist/module/providers/NoiseCancellation/NoiseCancellationProvider.js.map +1 -1
  129. package/dist/module/providers/StreamCall/AppStateListener.js +8 -8
  130. package/dist/module/providers/StreamCall/AppStateListener.js.map +1 -1
  131. package/dist/module/utils/getAndroidDefaultRingtoneUrl.js +3 -3
  132. package/dist/module/utils/getAndroidDefaultRingtoneUrl.js.map +1 -1
  133. package/dist/module/utils/push/android.js +31 -31
  134. package/dist/module/utils/push/android.js.map +1 -1
  135. package/dist/module/utils/push/internal/ios.js +9 -9
  136. package/dist/module/utils/push/internal/ios.js.map +1 -1
  137. package/dist/module/utils/push/internal/utils.js +12 -12
  138. package/dist/module/utils/push/internal/utils.js.map +1 -1
  139. package/dist/module/utils/push/ios.js +22 -22
  140. package/dist/module/utils/push/ios.js.map +1 -1
  141. package/dist/module/utils/push/libs/expoNotifications.js +2 -2
  142. package/dist/module/utils/push/libs/expoNotifications.js.map +1 -1
  143. package/dist/module/utils/push/libs/firebaseMessaging/index.js +3 -3
  144. package/dist/module/utils/push/libs/firebaseMessaging/index.js.map +1 -1
  145. package/dist/module/utils/push/libs/notifee/index.js +3 -3
  146. package/dist/module/utils/push/libs/notifee/index.js.map +1 -1
  147. package/dist/module/utils/push/setupIosCallKeepEvents.js +8 -8
  148. package/dist/module/utils/push/setupIosCallKeepEvents.js.map +1 -1
  149. package/dist/module/utils/push/setupIosVoipPushEvents.js +5 -5
  150. package/dist/module/utils/push/setupIosVoipPushEvents.js.map +1 -1
  151. package/dist/module/version.js +1 -1
  152. package/dist/typescript/components/Call/CallContent/CallContent.d.ts.map +1 -1
  153. package/dist/typescript/components/Call/CallContent/RTCViewPipIOS.d.ts.map +1 -1
  154. package/dist/typescript/components/Call/CallContent/RTCViewPipNative.d.ts.map +1 -1
  155. package/dist/typescript/components/Call/CallControls/AcceptCallButton.d.ts.map +1 -1
  156. package/dist/typescript/components/Call/CallControls/HangupCallButton.d.ts.map +1 -1
  157. package/dist/typescript/components/Call/CallControls/internal/ReactionsPicker.d.ts.map +1 -1
  158. package/dist/typescript/components/Livestream/ViewerLivestream/ViewerLobby.d.ts.map +1 -1
  159. package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.d.ts.map +1 -1
  160. package/dist/typescript/contexts/internal/ScreenshotIosContext.d.ts.map +1 -1
  161. package/dist/typescript/hooks/push/useInitAndroidTokenAndRest.d.ts.map +1 -1
  162. package/dist/typescript/hooks/push/useIosCallkeepWithCallingStateEffect.d.ts.map +1 -1
  163. package/dist/typescript/hooks/push/useIosVoipPushEventsSetupEffect.d.ts.map +1 -1
  164. package/dist/typescript/hooks/push/useProcessPushCallEffect.d.ts.map +1 -1
  165. package/dist/typescript/hooks/push/useProcessPushNonRingingCallEffect.d.ts.map +1 -1
  166. package/dist/typescript/hooks/useAndroidKeepCallAliveEffect.d.ts.map +1 -1
  167. package/dist/typescript/hooks/useScreenShareButton.d.ts.map +1 -1
  168. package/dist/typescript/hooks/useScreenshot.d.ts.map +1 -1
  169. package/dist/typescript/modules/call-manager/PrevLibDetection.d.ts.map +1 -1
  170. package/dist/typescript/providers/BusyTonePlayer.d.ts.map +1 -1
  171. package/dist/typescript/providers/NoiseCancellation/NoiseCancellationProvider.d.ts.map +1 -1
  172. package/dist/typescript/providers/StreamCall/AppStateListener.d.ts.map +1 -1
  173. package/dist/typescript/utils/push/android.d.ts.map +1 -1
  174. package/dist/typescript/utils/push/internal/ios.d.ts.map +1 -1
  175. package/dist/typescript/utils/push/internal/utils.d.ts.map +1 -1
  176. package/dist/typescript/utils/push/ios.d.ts.map +1 -1
  177. package/dist/typescript/utils/push/libs/expoNotifications.d.ts.map +1 -1
  178. package/dist/typescript/utils/push/libs/firebaseMessaging/index.d.ts.map +1 -1
  179. package/dist/typescript/utils/push/libs/notifee/index.d.ts.map +1 -1
  180. package/dist/typescript/utils/push/setupIosCallKeepEvents.d.ts.map +1 -1
  181. package/dist/typescript/utils/push/setupIosVoipPushEvents.d.ts.map +1 -1
  182. package/dist/typescript/version.d.ts +1 -1
  183. package/ios/StreamInCallManager.swift +10 -2
  184. package/package.json +3 -3
  185. package/src/components/Call/CallContent/CallContent.tsx +7 -9
  186. package/src/components/Call/CallContent/RTCViewPipIOS.tsx +7 -9
  187. package/src/components/Call/CallContent/RTCViewPipNative.tsx +8 -6
  188. package/src/components/Call/CallControls/AcceptCallButton.tsx +3 -3
  189. package/src/components/Call/CallControls/HangupCallButton.tsx +3 -4
  190. package/src/components/Call/CallControls/RejectCallButton.tsx +4 -4
  191. package/src/components/Call/CallControls/internal/ReactionsPicker.tsx +6 -3
  192. package/src/components/Call/Lobby/JoinCallButton.tsx +3 -3
  193. package/src/components/Livestream/LivestreamControls/HostStartStreamButton.tsx +5 -5
  194. package/src/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.tsx +3 -3
  195. package/src/components/Livestream/LivestreamPlayer/LivestreamPlayer.tsx +5 -5
  196. package/src/components/Livestream/ViewerLivestream/ViewerLobby.tsx +3 -4
  197. package/src/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.tsx +3 -4
  198. package/src/contexts/internal/ScreenshotIosContext.tsx +12 -14
  199. package/src/hooks/push/useInitAndroidTokenAndRest.ts +4 -6
  200. package/src/hooks/push/useIosCallkeepWithCallingStateEffect.ts +9 -3
  201. package/src/hooks/push/useIosVoipPushEventsSetupEffect.ts +14 -19
  202. package/src/hooks/push/useProcessPushCallEffect.ts +11 -9
  203. package/src/hooks/push/useProcessPushNonRingingCallEffect.ts +6 -5
  204. package/src/hooks/useAndroidKeepCallAliveEffect.ts +17 -14
  205. package/src/hooks/usePermissionRequest.tsx +3 -3
  206. package/src/hooks/useScreenShareButton.ts +5 -7
  207. package/src/hooks/useScreenshot.ts +7 -11
  208. package/src/modules/call-manager/PrevLibDetection.ts +6 -5
  209. package/src/providers/BusyTonePlayer.tsx +7 -11
  210. package/src/providers/NoiseCancellation/NoiseCancellationProvider.tsx +7 -11
  211. package/src/providers/StreamCall/AppStateListener.tsx +8 -12
  212. package/src/utils/getAndroidDefaultRingtoneUrl.ts +3 -3
  213. package/src/utils/push/android.ts +93 -85
  214. package/src/utils/push/internal/ios.ts +9 -15
  215. package/src/utils/push/internal/utils.ts +28 -25
  216. package/src/utils/push/ios.ts +28 -32
  217. package/src/utils/push/libs/expoNotifications.ts +6 -5
  218. package/src/utils/push/libs/firebaseMessaging/index.ts +5 -4
  219. package/src/utils/push/libs/notifee/index.ts +3 -4
  220. package/src/utils/push/setupIosCallKeepEvents.ts +12 -14
  221. package/src/utils/push/setupIosVoipPushEvents.ts +7 -9
  222. package/src/version.ts +1 -1
@@ -4,12 +4,12 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.onVoipNotificationReceived = void 0;
7
- var _videoClient = require("@stream-io/video-client");
8
7
  var _reactNative = require("react-native");
9
8
  var _libs = require("../libs");
10
9
  var _rxSubjects = require("./rxSubjects");
11
10
  var _constants = require("./constants");
12
11
  var _utils = require("./utils");
12
+ var _videoClient = require("@stream-io/video-client");
13
13
  const onVoipNotificationReceived = async (notification, pushConfig) => {
14
14
  /* --- Example payload ---
15
15
  {
@@ -43,10 +43,10 @@ const onVoipNotificationReceived = async (notification, pushConfig) => {
43
43
  if (!call_cid || _reactNative.Platform.OS !== 'ios' || !pushConfig.ios.pushProviderName) {
44
44
  return;
45
45
  }
46
- const logger = (0, _videoClient.getLogger)(['setupIosVoipPushEvents']);
46
+ const logger = _videoClient.videoLoggerSystem.getLogger('setupIosVoipPushEvents');
47
47
  const client = await pushConfig.createStreamVideoClient();
48
48
  if (!client) {
49
- logger('debug', 'client not found, not processing call.ring voip push notification');
49
+ logger.debug('client not found, not processing call.ring voip push notification');
50
50
  return;
51
51
  }
52
52
  const shouldRejectCallWhenBusy = client['rejectCallWhenBusy'] ?? false;
@@ -59,10 +59,10 @@ const onVoipNotificationReceived = async (notification, pushConfig) => {
59
59
  try {
60
60
  uuid = await _reactNative.NativeModules?.StreamVideoReactNative?.getIncomingCallUUid(call_cid);
61
61
  } catch (error) {
62
- logger('error', 'Error in getting call uuid from native module', error);
62
+ logger.error('Error in getting call uuid from native module', error);
63
63
  }
64
64
  if (!uuid) {
65
- logger('error', `Not processing call.ring push notification, as no uuid found for call_cid: ${call_cid}`);
65
+ logger.error(`Not processing call.ring push notification, as no uuid found for call_cid: ${call_cid}`);
66
66
  return;
67
67
  }
68
68
  const created_by_id = notification?.stream?.created_by_id;
@@ -74,7 +74,7 @@ const onVoipNotificationReceived = async (notification, pushConfig) => {
74
74
  } = (0, _utils.shouldCallBeEnded)(callFromPush, created_by_id, receiver_id);
75
75
  if (mustEndCall) {
76
76
  const callkeep = (0, _libs.getCallKeepLib)();
77
- logger('debug', `callkeep.reportEndCallWithUUID for uuid: ${uuid}, call_cid: ${call_cid}, reason: ${callkeepReason}`);
77
+ logger.debug(`callkeep.reportEndCallWithUUID for uuid: ${uuid}, call_cid: ${call_cid}, reason: ${callkeepReason}`);
78
78
  callkeep.reportEndCallWithUUID(uuid, callkeepReason);
79
79
  const voipPushNotification = (0, _libs.getVoipPushNotificationLib)();
80
80
  voipPushNotification.onVoipNotificationCompleted(uuid);
@@ -88,13 +88,13 @@ const onVoipNotificationReceived = async (notification, pushConfig) => {
88
88
  const unsubscribe = callFromPush.on('all', event => {
89
89
  const _canListenToWS = canListenToWS();
90
90
  if (!_canListenToWS) {
91
- logger('debug', `unsubscribe due to event callCid: ${call_cid} canListenToWS: ${_canListenToWS}`, event);
91
+ logger.debug(`unsubscribe due to event callCid: ${call_cid} canListenToWS: ${_canListenToWS}`, event);
92
92
  unsubscribe();
93
93
  return;
94
94
  }
95
95
  const _closed = closeCallIfNecessary();
96
96
  if (_closed) {
97
- logger('debug', `unsubscribe due to event callCid: ${call_cid} canListenToWS: ${_canListenToWS} shouldCallBeClosed: ${_closed}`, event);
97
+ logger.debug(`unsubscribe due to event callCid: ${call_cid} canListenToWS: ${_canListenToWS} shouldCallBeClosed: ${_closed}`, event);
98
98
  unsubscribe();
99
99
  }
100
100
  });
@@ -103,7 +103,7 @@ const onVoipNotificationReceived = async (notification, pushConfig) => {
103
103
  }
104
104
  // send the info to this subject, it is listened by callkeep events
105
105
  // callkeep events will then accept/reject the call
106
- logger('debug', `call_cid:${call_cid} uuid:${uuid} received and processed from call.ring push notification`);
106
+ logger.debug(`call_cid:${call_cid} uuid:${uuid} received and processed from call.ring push notification`);
107
107
  _rxSubjects.voipPushNotificationCallCId$.next(call_cid);
108
108
  };
109
109
  exports.onVoipNotificationReceived = onVoipNotificationReceived;
@@ -1 +1 @@
1
- {"version":3,"names":["_videoClient","require","_reactNative","_libs","_rxSubjects","_constants","_utils","onVoipNotificationReceived","notification","pushConfig","sender","stream","type","call_cid","Platform","OS","ios","pushProviderName","logger","getLogger","client","createStreamVideoClient","shouldRejectCallWhenBusy","NativeModules","StreamVideoReactNative","setShouldRejectCallWhenBusy","callFromPush","onRingingCall","uuid","getIncomingCallUUid","error","created_by_id","receiver_id","closeCallIfNecessary","mustEndCall","callkeepReason","shouldCallBeEnded","callkeep","getCallKeepLib","reportEndCallWithUUID","voipPushNotification","getVoipPushNotificationLib","onVoipNotificationCompleted","closed","canListenToWS","canAddPushWSSubscriptionsRef","current","AppState","currentState","unsubscribe","on","event","_canListenToWS","_closed","pushUnsubscriptionCallbacks","get","forEach","cb","set","voipPushNotificationCallCId$","next","exports"],"sourceRoot":"../../../../../src","sources":["utils/push/internal/ios.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AAGO,MAAMM,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,E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C,OAAO,CAAEC,EAAE,IAAKA,EAAE,CAAC,CAAC,CAAC;IAChEH,sCAA2B,CAACI,GAAG,CAAC7C,QAAQ,EAAE,CAACoC,WAAW,CAAC,CAAC;EAC1D;EACA;EACA;EACA/B,MAAM,CACJ,OAAO,EACP,YAAYL,QAAQ,SAASe,IAAI,0DACnC,CAAC;EACD+B,wCAA4B,CAACC,IAAI,CAAC/C,QAAQ,CAAC;AAC7C,CAAC;AAACgD,OAAA,CAAAtD,0BAAA,GAAAA,0BAAA","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_libs","_rxSubjects","_constants","_utils","_videoClient","onVoipNotificationReceived","notification","pushConfig","sender","stream","type","call_cid","Platform","OS","ios","pushProviderName","logger","videoLoggerSystem","getLogger","client","createStreamVideoClient","debug","shouldRejectCallWhenBusy","NativeModules","StreamVideoReactNative","setShouldRejectCallWhenBusy","callFromPush","onRingingCall","uuid","getIncomingCallUUid","error","created_by_id","receiver_id","closeCallIfNecessary","mustEndCall","callkeepReason","shouldCallBeEnded","callkeep","getCallKeepLib","reportEndCallWithUUID","voipPushNotification","getVoipPushNotificationLib","onVoipNotificationCompleted","closed","canListenToWS","canAddPushWSSubscriptionsRef","current","AppState","currentState","unsubscribe","on","event","_canListenToWS","_closed","pushUnsubscriptionCallbacks","get","forEach","cb","set","voipPushNotificationCallCId$","next","exports"],"sourceRoot":"../../../../../src","sources":["utils/push/internal/ios.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAEA,IAAAK,YAAA,GAAAL,OAAA;AAEO,MAAMM,0BAA0B,GAAG,MAAAA,CACxCC,YAAiB,EACjBC,UAAkD,KAC/C;EACH;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA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EAAE,EAC/GF,KACF,CAAC;QACDF,WAAW,CAAC,CAAC;MACf;IACF,CAAC,CAAC;IAEFK,sCAA2B,CAACC,GAAG,CAAC5C,QAAQ,CAAC,EAAE6C,OAAO,CAAEC,EAAE,IAAKA,EAAE,CAAC,CAAC,CAAC;IAChEH,sCAA2B,CAACI,GAAG,CAAC/C,QAAQ,EAAE,CAACsC,WAAW,CAAC,CAAC;EAC1D;EACA;EACA;EACAjC,MAAM,CAACK,KAAK,CACV,YAAYV,QAAQ,SAASiB,IAAI,0DACnC,CAAC;EACD+B,wCAA4B,CAACC,IAAI,CAACjD,QAAQ,CAAC;AAC7C,CAAC;AAACkD,OAAA,CAAAxD,0BAAA,GAAAA,0BAAA","ignoreList":[]}
@@ -44,7 +44,7 @@ const shouldCallBeEnded = (callFromPush, created_by_id, receiver_id) => {
44
44
  callkeepReason = 4;
45
45
  }
46
46
  }
47
- (0, _videoClient.getLogger)(['shouldCallBeEnded'])('debug', `callCid: ${callFromPush.cid} mustEndCall: ${mustEndCall} callkeepReason: ${callkeepReason}`);
47
+ _videoClient.videoLoggerSystem.getLogger('shouldCallBeEnded').debug(`callCid: ${callFromPush.cid} mustEndCall: ${mustEndCall} callkeepReason: ${callkeepReason}`);
48
48
  return {
49
49
  mustEndCall,
50
50
  callkeepReason
@@ -64,8 +64,8 @@ const processCallFromPushInBackground = async (pushConfig, call_cid, action) =>
64
64
  return;
65
65
  }
66
66
  } catch (e) {
67
- const logger = (0, _videoClient.getLogger)(['processCallFromPushInBackground']);
68
- logger('error', 'failed to create video client', e);
67
+ const logger = _videoClient.videoLoggerSystem.getLogger('processCallFromPushInBackground');
68
+ logger.error('failed to create video client', e);
69
69
  return;
70
70
  }
71
71
  await processCallFromPush(videoClient, call_cid, action, pushConfig);
@@ -84,8 +84,8 @@ const processCallFromPush = async (client, call_cid, action, pushConfig) => {
84
84
  try {
85
85
  callFromPush = await client.onRingingCall(call_cid);
86
86
  } catch (e) {
87
- const logger = (0, _videoClient.getLogger)(['processCallFromPush']);
88
- logger('error', 'failed to fetch call from push notification', e);
87
+ const logger = _videoClient.videoLoggerSystem.getLogger('processCallFromPush');
88
+ logger.error('failed to fetch call from push notification', e);
89
89
  return;
90
90
  }
91
91
  // 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
@@ -94,19 +94,19 @@ const processCallFromPush = async (client, call_cid, action, pushConfig) => {
94
94
  if (pushConfig.publishOptions) {
95
95
  callFromPush.updatePublishOptions(pushConfig.publishOptions);
96
96
  }
97
- (0, _videoClient.getLogger)(['processCallFromPush'])('debug', `joining call from push notification with callCid: ${callFromPush.cid}`);
97
+ _videoClient.videoLoggerSystem.getLogger('processCallFromPush').debug(`joining call from push notification with callCid: ${callFromPush.cid}`);
98
98
  await callFromPush.join();
99
99
  } else if (action === 'decline') {
100
100
  const canReject = callFromPush.state.callingState === _videoClient.CallingState.RINGING;
101
- (0, _videoClient.getLogger)(['processCallFromPush'])('debug', `declining call from push notification with callCid: ${callFromPush.cid} reject: ${canReject}`);
101
+ _videoClient.videoLoggerSystem.getLogger('processCallFromPush').debug(`declining call from push notification with callCid: ${callFromPush.cid} reject: ${canReject}`);
102
102
  await callFromPush.leave({
103
103
  reject: canReject,
104
104
  reason: 'decline'
105
105
  });
106
106
  }
107
107
  } catch (e) {
108
- const logger = (0, _videoClient.getLogger)(['processCallFromPush']);
109
- logger('warn', `failed to process ${action} call from push notification`, e);
108
+ const logger = _videoClient.videoLoggerSystem.getLogger('processCallFromPush');
109
+ logger.warn(`failed to process ${action} call from push notification`, e);
110
110
  }
111
111
  };
112
112
 
@@ -131,8 +131,8 @@ const processNonIncomingCallFromPush = async (client, call_cid, nonRingingNotifi
131
131
  await callFromPush.get();
132
132
  }
133
133
  } catch (e) {
134
- const logger = (0, _videoClient.getLogger)(['processNonIncomingCallFromPush']);
135
- logger('error', 'failed to fetch call from push notification', e);
134
+ const logger = _videoClient.videoLoggerSystem.getLogger('processNonIncomingCallFromPush');
135
+ logger.error('failed to fetch call from push notification', e);
136
136
  return;
137
137
  }
138
138
  (0, _newNotificationCallbacks.onNewCallNotification)(callFromPush, nonRingingNotificationType);
@@ -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","callkeepReason","getLogger","cid","exports","processCallFromPushInBackground","pushConfig","call_cid","action","videoClient","createStreamVideoClient","e","logger","processCallFromPush","client","onRingingCall","publishOptions","updatePublishOptions","join","canReject","callingState","CallingState","RINGING","leave","reject","reason","processNonIncomingCallFromPush","nonRingingNotificationType","_callFromPush","calls","find","c","callType","callId","split","call","get","onNewCallNotification","clearPushWSEventSubscriptions","unsubscriptionCallbacks","pushUnsubscriptionCallbacks","forEach","cb","delete","canAddPushWSSubscriptionsRef","current"],"sourceRoot":"../../../../../src","sources":["utils/push/internal/utils.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAUA,IAAAC,yBAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAMA;AACA;AACA;AACA;AACO,MAAMG,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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,EAAE;AACX,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_videoClient","require","_newNotificationCallbacks","_constants","shouldCallBeEnded","callFromPush","created_by_id","receiver_id","callSession","state","session","rejected_by","accepted_by","mustEndCall","callkeepReason","videoLoggerSystem","getLogger","debug","cid","exports","processCallFromPushInBackground","pushConfig","call_cid","action","videoClient","createStreamVideoClient","e","logger","error","processCallFromPush","client","onRingingCall","publishOptions","updatePublishOptions","join","canReject","callingState","CallingState","RINGING","leave","reject","reason","warn","processNonIncomingCallFromPush","nonRingingNotificationType","_callFromPush","calls","find","c","callType","callId","split","call","get","onNewCallNotification","clearPushWSEventSubscriptions","unsubscriptionCallbacks","pushUnsubscriptionCallbacks","forEach","cb","delete","canAddPushWSSubscriptionsRef","current"],"sourceRoot":"../../../../../src","sources":["utils/push/internal/utils.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAUA,IAAAC,yBAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAMA;AACA;AACA;AACA;AACO,MAAMG,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,W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amPayload(streamPayload) {
20
20
  if (streamPayload?.sender === 'stream.video' && streamPayload?.type !== 'call.ring') {
21
21
  const cid = streamPayload.call_cid;
22
22
  const type = streamPayload.type;
23
- const logger = (0, _videoClient.getLogger)(['processNonRingingNotificationStreamPayload']);
24
- logger('trace', `cid, type - ${cid}, ${type}`);
23
+ const logger = _videoClient.videoLoggerSystem.getLogger('processNonRingingNotificationStreamPayload');
24
+ logger.trace(`cid, type - ${cid}, ${type}`);
25
25
  _rxSubjects.pushNonRingingCallData$.next({
26
26
  cid,
27
27
  type
@@ -39,8 +39,8 @@ const oniOSExpoNotificationEvent = event => {
39
39
  const trigger = event.request.trigger;
40
40
  if (trigger && typeof trigger === 'object' && 'type' in trigger && trigger.type === 'push' && trigger.payload?.stream) {
41
41
  const streamPayload = trigger.payload.stream;
42
- const logger = (0, _videoClient.getLogger)(['processNonRingingNotificationStreamPayload']);
43
- logger('trace', `processNonRingingNotificationStreamPayload - ${JSON.stringify(streamPayload)}`);
42
+ const logger = _videoClient.videoLoggerSystem.getLogger('processNonRingingNotificationStreamPayload');
43
+ logger.trace(`processNonRingingNotificationStreamPayload - ${JSON.stringify(streamPayload)}`);
44
44
  processNonRingingNotificationStreamPayload(streamPayload);
45
45
  }
46
46
  }
@@ -60,8 +60,8 @@ const oniOSNotifeeEvent = ({
60
60
  const streamPayload = detail.notification?.data?.stream;
61
61
  const result = processNonRingingNotificationStreamPayload(streamPayload);
62
62
  if (result) {
63
- const logger = (0, _videoClient.getLogger)(['oniOSNotifeeEvent']);
64
- logger('debug', `onTapNonRingingCallNotification?.(${result.cid}, ${result.type})`);
63
+ const logger = _videoClient.videoLoggerSystem.getLogger('oniOSNotifeeEvent');
64
+ logger.debug(`onTapNonRingingCallNotification?.(${result.cid}, ${result.type})`);
65
65
  pushConfig.onTapNonRingingCallNotification?.(result.cid, result.type);
66
66
  }
67
67
  }
@@ -71,22 +71,22 @@ function onPushNotificationiOSStreamVideoEvent(notification) {
71
71
  const pushNotificationIosLib = (0, _libs.getPushNotificationIosLib)();
72
72
  const data = notification.getData();
73
73
  const streamPayload = data?.stream;
74
- const logger = (0, _videoClient.getLogger)(['onPushNotificationiOSStreamVideoEvent']);
74
+ const logger = _videoClient.videoLoggerSystem.getLogger('onPushNotificationiOSStreamVideoEvent');
75
75
  if (!streamPayload) {
76
- logger('trace', `skipping process: no stream payload found in notification data - ${JSON.stringify(data)}`);
76
+ logger.trace(`skipping process: no stream payload found in notification data - ${JSON.stringify(data)}`);
77
77
  return;
78
78
  }
79
79
  const isClicked = data.userInteraction === 1;
80
80
  const pushConfig = _StreamVideoRN.StreamVideoRN.getConfig().push;
81
81
  if (!isClicked || !pushConfig) {
82
- logger('debug', `notification.finish called and returning - isClicked: ${isClicked}, pushConfig: ${!!pushConfig}`);
82
+ logger.debug(`notification.finish called and returning - isClicked: ${isClicked}, pushConfig: ${!!pushConfig}`);
83
83
  notification.finish(pushNotificationIosLib.FetchResult.NoData);
84
84
  return;
85
85
  }
86
86
  // listen to foreground notifications
87
87
  const result = processNonRingingNotificationStreamPayload(streamPayload);
88
88
  if (result) {
89
- logger('debug', `onTapNonRingingCallNotification?.(${result.cid}, ${result.type})`);
89
+ logger.debug(`onTapNonRingingCallNotification?.(${result.cid}, ${result.type})`);
90
90
  pushConfig.onTapNonRingingCallNotification?.(result.cid, result.type);
91
91
  }
92
92
  notification.finish(pushNotificationIosLib.FetchResult.NoData);
@@ -97,11 +97,11 @@ async function initIosNonVoipToken(client, pushConfig, setUnsubscribeListener) {
97
97
  if (_reactNative.Platform.OS !== 'ios' || !pushConfig.ios.pushProviderName || !pushConfig.onTapNonRingingCallNotification) {
98
98
  return;
99
99
  }
100
- const logger = (0, _videoClient.getLogger)(['initIosNonVoipToken']);
100
+ const logger = _videoClient.videoLoggerSystem.getLogger('initIosNonVoipToken');
101
101
  const setDeviceToken = async token => {
102
102
  const userId = client.streamClient._user?.id ?? '';
103
103
  if (lastApnToken.token === token && lastApnToken.userId === userId) {
104
- logger('debug', 'Skipped sending device token to stream as it was already sent', token);
104
+ logger.debug('Skipped sending device token to stream as it was already sent', token);
105
105
  return;
106
106
  }
107
107
  (0, _pushLogoutCallback.setPushLogoutCallback)(async () => {
@@ -110,47 +110,47 @@ async function initIosNonVoipToken(client, pushConfig, setUnsubscribeListener) {
110
110
  userId: ''
111
111
  };
112
112
  try {
113
- logger('debug', 'Remove device token - setPushLogoutCallback', token);
113
+ logger.debug('Remove device token - setPushLogoutCallback', token);
114
114
  await client.removeDevice(token);
115
115
  } catch (err) {
116
- logger('warn', 'setPushLogoutCallback - Failed to remove apn token from stream', err);
116
+ logger.warn('setPushLogoutCallback - Failed to remove apn token from stream', err);
117
117
  }
118
118
  });
119
119
  const push_provider_name = pushConfig.ios.pushProviderName;
120
- logger('debug', 'Add device token to stream', token);
120
+ logger.debug('Add device token to stream', token);
121
121
  await client.addDevice(token, 'apn', push_provider_name).then(() => {
122
122
  lastApnToken = {
123
123
  token,
124
124
  userId
125
125
  };
126
126
  }).catch(err => {
127
- logger('warn', 'Failed to add apn token to stream', err);
127
+ logger.warn('Failed to add apn token to stream', err);
128
128
  });
129
129
  };
130
130
  if (pushConfig.isExpo) {
131
131
  const expoNotificationsLib = (0, _libs.getExpoNotificationsLib)();
132
132
  if (expoNotificationsLib) {
133
133
  expoNotificationsLib.getDevicePushTokenAsync().then(devicePushToken => {
134
- logger('debug', 'Got device token - expoNotificationsLib.getDevicePushTokenAsync', devicePushToken.data);
134
+ logger.debug('Got device token - expoNotificationsLib.getDevicePushTokenAsync', devicePushToken.data);
135
135
  setDeviceToken(devicePushToken.data);
136
136
  });
137
137
  const subscription = expoNotificationsLib.addPushTokenListener(devicePushToken => {
138
- logger('debug', 'Got device token - expoNotificationsLib.addPushTokenListener', devicePushToken.data);
138
+ logger.debug('Got device token - expoNotificationsLib.addPushTokenListener', devicePushToken.data);
139
139
  setDeviceToken(devicePushToken.data);
140
140
  });
141
141
  setUnsubscribeListener(() => {
142
- logger('debug', `removed expo addPushTokenListener`);
142
+ logger.debug(`removed expo addPushTokenListener`);
143
143
  subscription.remove();
144
144
  });
145
145
  }
146
146
  } else {
147
147
  const pushNotificationIosLib = (0, _libs.getPushNotificationIosLib)();
148
148
  pushNotificationIosLib.addEventListener('register', token => {
149
- logger('debug', `Got device token - pushNotificationIosLib.addEventListener('register')`, token);
149
+ logger.debug(`Got device token - pushNotificationIosLib.addEventListener('register')`, token);
150
150
  setDeviceToken(token);
151
151
  });
152
152
  setUnsubscribeListener(() => {
153
- logger('debug', `pushNotificationIosLib.removeEventListener('register')`);
153
+ logger.debug(`pushNotificationIosLib.removeEventListener('register')`);
154
154
  pushNotificationIosLib.removeEventListener('register');
155
155
  });
156
156
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_rxSubjects","_libs","_videoClient","_pushLogoutCallback","_StreamVideoRN","lastApnToken","token","userId","processNonRingingNotificationStreamPayload","streamPayload","sender","type","cid","call_cid","logger","getLogger","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","onTapNonRingingCallNotification","onPushNotificationiOSStreamVideoEvent","pushNotificationIosLib","getPushNotificationIosLib","getData","isClicked","userInteraction","finish","FetchResult","NoData","initIosNonVoipToken","client","setUnsubscribeListener","ios","pushProviderName","setDeviceToken","streamClient","_user","id","setPushLogoutCallback","removeDevice","err","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,GA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AAC;QACDiB,cAAc,CAACe,eAAe,CAAChC,IAAI,CAAC;MACtC,CAAC,CAAC;MACF,MAAMiC,YAAY,GAAGJ,oBAAoB,CAACK,oBAAoB,CAC3DF,eAAe,IAAK;QACnB3D,MAAM,CACJ,OAAO,EACP,8DAA8D,EAC9D2D,eAAe,CAAChC,IAClB,CAAC;QACDiB,cAAc,CAACe,eAAe,CAAChC,IAAI,CAAC;MACtC,CACF,CAAC;MACDc,sBAAsB,CAAC,MAAM;QAC3BzC,MAAM,CAAC,OAAO,EAAE,mCAAmC,CAAC;QACpD4D,YAAY,CAACE,MAAM,CAAC,CAAC;MACvB,CAAC,CAAC;IACJ;EACF,CAAC,MAAM;IACL,MAAM/B,sBAAsB,GAAG,IAAAC,+BAAyB,EAAC,CAAC;IAC1DD,sBAAsB,CAACgC,gBAAgB,CAAC,UAAU,EAAGvE,KAAK,IAAK;MAC7DQ,MAAM,CACJ,OAAO,EACP,wEAAwE,EACxER,KACF,CAAC;MACDoD,cAAc,CAACpD,KAAK,CAAC;IACvB,CAAC,CAAC;IACFiD,sBAAsB,CAAC,MAAM;MAC3BzC,MAAM,CAAC,OAAO,EAAE,wDAAwD,CAAC;MACzE+B,sBAAsB,CAACiC,mBAAmB,CAAC,UAAU,CAAC;IACxD,CAAC,CAAC;EACJ;AACF","ignoreList":[]}
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,IACEA,aAAa,EAAEC,MAAM,KAAK,cAAc,IACxCD,aAAa,EAAEE,IAAI,KAAK,WAAW,EACnC;IACA,MAAMC,GAAG,GAAGH,aAAa,CAACI,QAAQ;IAClC,MAAMF,IAAI,GAAGF,aAAa,CAACE,IAAI;IAC/B,MAAMG,MAAM,GAAGC,8BAAiB,CAACC,SAAS,CACxC,4CACF,CAAC;IACDF,MAAM,CAACG,KAAK,CAAC,eAAeL,GAAG,KAAKD,IAAI,EAAE,CAAC;IAC3CO,mCAAuB,CAACC,IAAI,CAAC;MAAEP,GAAG;MAAED;IAAK,CAAC,CAAC;IAC3C,OAAO;MAAEC,GAAG;MAAED;IAAK,CAAC;EACtB;EACA,OAAOS,SAAS;AAClB;AAEO,MAAMC,0BAA0B,GAAIC,KAAuB,IAAK;EACrE,MAAMC,UAAU,GAAGC,4BAAa,CAACC,SAAS,CAAC,CAAC,CAACC,IAAI;EACjD,IAAIH,UAAU,EAAE;IACd,MAAMI,OAAO,GAAGL,KAAK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7 @@ function getExpoNotificationsLib() {
18
18
  }
19
19
  function getExpoNotificationsLibNoThrow() {
20
20
  if (!expoNotificationsLib) {
21
- (0, _videoClient.getLogger)(['getExpoNotificationsLibNoThrow'])('debug', 'expo-notifications library is not installed. It is required for non ringing push notifications and not for ringing');
21
+ _videoClient.videoLoggerSystem.getLogger('getExpoNotificationsLibNoThrow').debug('expo-notifications library is not installed. It is required for non ringing push notifications and not for ringing');
22
22
  }
23
23
  return expoNotificationsLib;
24
24
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_videoClient","require","expoNotificationsLib","getExpoNotificationsLib","Error","getExpoNotificationsLibNoThrow","getLogger"],"sourceRoot":"../../../../../src","sources":["utils/push/libs/expoNotifications.ts"],"mappings":";;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAOA,IAAIC,oBAAsD;AAE1D,IAAI;EACFA,oBAAoB,GAAGD,OAAO,CAAC,oBAAoB,CAAC;AACtD,CAAC,CAAC,MAAM,CAAC;AAEF,SAASE,uBAAuBA,CAAA,EAAG;EACxC,IAAI,CAACD,oBAAoB,EAAE;IACzB,MAAME,KAAK,CACT,oMACF,CAAC;EACH;EACA,OAAOF,oBAAoB;AAC7B;AAEO,SAASG,8BAA8BA,CAAA,EAAG;EAC/C,IAAI,CAACH,oBAAoB,EAAE;IACzB,IAAAI,sBAAS,EAAC,CAAC,gCAAgC,CAAC,CAAC,CAC3C,OAAO,EACP,oHACF,CAAC;EACH;EACA,OAAOJ,oBAAoB;AAC7B","ignoreList":[]}
1
+ {"version":3,"names":["_videoClient","require","expoNotificationsLib","getExpoNotificationsLib","Error","getExpoNotificationsLibNoThrow","videoLoggerSystem","getLogger","debug"],"sourceRoot":"../../../../../src","sources":["utils/push/libs/expoNotifications.ts"],"mappings":";;;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AAMA,IAAIC,oBAAsD;AAE1D,IAAI;EACFA,oBAAoB,GAAGD,OAAO,CAAC,oBAAoB,CAAC;AACtD,CAAC,CAAC,MAAM,CAAC;AAEF,SAASE,uBAAuBA,CAAA,EAAG;EACxC,IAAI,CAACD,oBAAoB,EAAE;IACzB,MAAME,KAAK,CACT,oMACF,CAAC;EACH;EACA,OAAOF,oBAAoB;AAC7B;AAEO,SAASG,8BAA8BA,CAAA,EAAG;EAC/C,IAAI,CAACH,oBAAoB,EAAE;IACzBI,8BAAiB,CACdC,SAAS,CAAC,gCAAgC,CAAC,CAC3CC,KAAK,CACJ,oHACF,CAAC;EACL;EACA,OAAON,oBAAoB;AAC7B","ignoreList":[]}
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.getFirebaseMessagingLib = getFirebaseMessagingLib;
7
7
  exports.getFirebaseMessagingLibNoThrow = getFirebaseMessagingLibNoThrow;
8
- var _videoClient = require("@stream-io/video-client");
9
8
  var _lib = require("./lib");
9
+ var _videoClient = require("@stream-io/video-client");
10
10
  const INSTALLATION_INSTRUCTION = 'Please see https://rnfirebase.io/messaging/usage#installation for installation instructions';
11
11
  function getFirebaseMessagingLib() {
12
12
  if (!_lib.lib) {
@@ -16,8 +16,8 @@ function getFirebaseMessagingLib() {
16
16
  }
17
17
  function getFirebaseMessagingLibNoThrow(isExpo) {
18
18
  if (!_lib.lib) {
19
- const logger = (0, _videoClient.getLogger)(['getFirebaseMessagingLibNoThrow']);
20
- logger('debug', `${isExpo ? 'In Expo, @react-native-firebase/messaging library is required to receive ringing notifications in app killed state for Android.' : ''}${INSTALLATION_INSTRUCTION}`);
19
+ const logger = _videoClient.videoLoggerSystem.getLogger('getFirebaseMessagingLibNoThrow');
20
+ logger.debug(`${isExpo ? 'In Expo, @react-native-firebase/messaging library is required to receive ringing notifications in app killed state for Android.' : ''}${INSTALLATION_INSTRUCTION}`);
21
21
  }
22
22
  return _lib.lib;
23
23
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_videoClient","require","_lib","INSTALLATION_INSTRUCTION","getFirebaseMessagingLib","lib","Error","getFirebaseMessagingLibNoThrow","isExpo","logger","getLogger"],"sourceRoot":"../../../../../../src","sources":["utils/push/libs/firebaseMessaging/index.ts"],"mappings":";;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,IAAA,GAAAD,OAAA;AAKA,MAAME,wBAAwB,GAC5B,6FAA6F;AAExF,SAASC,uBAAuBA,CAAA,EAAG;EACxC,IAAI,CAACC,QAAG,EAAE;IACR,MAAMC,KAAK,CACT,qDAAqD,GACnDH,wBACJ,CAAC;EACH;EACA,OAAOE,QAAG;AACZ;AAEO,SAASE,8BAA8BA,CAACC,MAAe,EAAE;EAC9D,IAAI,CAACH,QAAG,EAAE;IACR,MAAMI,MAAM,GAAG,IAAAC,sBAAS,EAAC,CAAC,gCAAgC,CAAC,CAAC;IAC5DD,MAAM,CACJ,OAAO,EACP,GACED,MAAM,GACF,iIAAiI,GACjI,EAAE,GACLL,wBAAwB,EAC7B,CAAC;EACH;EACA,OAAOE,QAAG;AACZ","ignoreList":[]}
1
+ {"version":3,"names":["_lib","require","_videoClient","INSTALLATION_INSTRUCTION","getFirebaseMessagingLib","lib","Error","getFirebaseMessagingLibNoThrow","isExpo","logger","videoLoggerSystem","getLogger","debug"],"sourceRoot":"../../../../../../src","sources":["utils/push/libs/firebaseMessaging/index.ts"],"mappings":";;;;;;;AAAA,IAAAA,IAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAKA,MAAME,wBAAwB,GAC5B,6FAA6F;AAExF,SAASC,uBAAuBA,CAAA,EAAG;EACxC,IAAI,CAACC,QAAG,EAAE;IACR,MAAMC,KAAK,CACT,qDAAqD,GACnDH,wBACJ,CAAC;EACH;EACA,OAAOE,QAAG;AACZ;AAEO,SAASE,8BAA8BA,CAACC,MAAe,EAAE;EAC9D,IAAI,CAACH,QAAG,EAAE;IACR,MAAMI,MAAM,GAAGC,8BAAiB,CAACC,SAAS,CACxC,gCACF,CAAC;IACDF,MAAM,CAACG,KAAK,CACV,GACEJ,MAAM,GACF,iIAAiI,GACjI,EAAE,GACLL,wBAAwB,EAC7B,CAAC;EACH;EACA,OAAOE,QAAG;AACZ","ignoreList":[]}
@@ -7,9 +7,9 @@ exports.getIncomingCallForegroundServiceTypes = getIncomingCallForegroundService
7
7
  exports.getKeepCallAliveForegroundServiceTypes = getKeepCallAliveForegroundServiceTypes;
8
8
  exports.getNotifeeLibNoThrowForKeepCallAlive = getNotifeeLibNoThrowForKeepCallAlive;
9
9
  exports.getNotifeeLibThrowIfNotInstalledForPush = getNotifeeLibThrowIfNotInstalledForPush;
10
- var _videoClient = require("@stream-io/video-client");
11
10
  var _reactNative = require("react-native");
12
11
  var _lib = require("./lib");
12
+ var _videoClient = require("@stream-io/video-client");
13
13
  var AndroidForegroundServiceType = /*#__PURE__*/function (AndroidForegroundServiceType) {
14
14
  AndroidForegroundServiceType[AndroidForegroundServiceType["FOREGROUND_SERVICE_TYPE_CAMERA"] = 64] = "FOREGROUND_SERVICE_TYPE_CAMERA";
15
15
  AndroidForegroundServiceType[AndroidForegroundServiceType["FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE"] = 16] = "FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE";
@@ -37,8 +37,8 @@ function getNotifeeLibThrowIfNotInstalledForPush() {
37
37
  }
38
38
  function getNotifeeLibNoThrowForKeepCallAlive() {
39
39
  if (!_lib.lib) {
40
- const logger = (0, _videoClient.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}`);
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
42
  }
43
43
  return _lib.lib;
44
44
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_videoClient","require","_reactNative","_lib","AndroidForegroundServiceType","INSTALLATION_INSTRUCTION","getNotifeeLibThrowIfNotInstalledForPush","lib","Error","getNotifeeLibNoThrowForKeepCallAlive","logger","getLogger","getKeepCallAliveForegroundServiceTypes","types","hasCameraPermission","PermissionsAndroid","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,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,IAAA,GAAAF,OAAA;AAAuC,IAIlCG,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,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OjB,KAAK;AACd","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_lib","_videoClient","AndroidForegroundServiceType","INSTALLATION_INSTRUCTION","getNotifeeLibThrowIfNotInstalledForPush","lib","Error","getNotifeeLibNoThrowForKeepCallAlive","logger","videoLoggerSystem","getLogger","info","getKeepCallAliveForegroundServiceTypes","types","hasCameraPermission","PermissionsAndroid","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,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,IAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAA4D,IAIvDG,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,OAA5B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ACA,OAAOf,KAAK;AACd;AAEO,SAASgB,qCAAqCA,CAAA,EAAG;EACtD,MAAMhB,KAAqC,GAAG,CAC5CX,4BAA4B,CAAC4B,qCAAqC,CACnE;EACD,OAAOjB,KAAK;AACd","ignoreList":[]}
@@ -19,10 +19,10 @@ function setupIosCallKeepEvents(pushConfig) {
19
19
  }
20
20
  if (!pushConfig.android.incomingCallChannel) {
21
21
  // TODO: remove this check and find a better way once we have telecom integration for android
22
- (0, _videoClient.getLogger)(['setupIosCallKeepEvents'])('debug', 'android incomingCallChannel is not defined, so skipping the setupIosCallKeepEvents');
22
+ _videoClient.videoLoggerSystem.getLogger('setupIosCallKeepEvents').debug('android incomingCallChannel is not defined, so skipping the setupIosCallKeepEvents');
23
23
  return;
24
24
  }
25
- const logger = (0, _videoClient.getLogger)(['setupIosCallKeepEvents']);
25
+ const logger = _videoClient.videoLoggerSystem.getLogger('setupIosCallKeepEvents');
26
26
  const callkeep = (0, _libs.getCallKeepLib)();
27
27
  async function getCallCid(callUUID) {
28
28
  try {
@@ -31,24 +31,24 @@ function setupIosCallKeepEvents(pushConfig) {
31
31
  // update it with this call_cid
32
32
  const voipPushNotificationCallCId = _videoClient.RxUtils.getCurrentValue(_rxSubjects.voipPushNotificationCallCId$);
33
33
  if (!voipPushNotificationCallCId) {
34
- logger('debug', `voipPushNotificationCallCId$ is empty, updating it with the call_cid: ${call_cid} for callUUID: ${callUUID}`);
34
+ logger.debug(`voipPushNotificationCallCId$ is empty, updating it with the call_cid: ${call_cid} for callUUID: ${callUUID}`);
35
35
  _rxSubjects.voipPushNotificationCallCId$.next(call_cid);
36
36
  }
37
37
  return call_cid;
38
38
  } catch {
39
- logger('debug', `Error in getting call cid from native module for callUUID: ${callUUID} - probably the call was already processed, so ignoring this callkeep event`);
39
+ logger.debug(`Error in getting call cid from native module for callUUID: ${callUUID} - probably the call was already processed, so ignoring this callkeep event`);
40
40
  }
41
41
  return undefined;
42
42
  }
43
43
  function answerCall(callUUID) {
44
44
  getCallCid(callUUID).then(call_cid => {
45
- logger('debug', `answerCall event with call_cid: ${call_cid}`);
45
+ logger.debug(`answerCall event with call_cid: ${call_cid}`);
46
46
  iosCallkeepAcceptCall(call_cid, callUUID);
47
47
  });
48
48
  }
49
49
  function endCall(callUUID) {
50
50
  getCallCid(callUUID).then(call_cid => {
51
- logger('debug', `endCall event with call_cid: ${call_cid}`);
51
+ logger.debug(`endCall event with call_cid: ${call_cid}`);
52
52
  iosCallkeepRejectCall(call_cid, callUUID, pushConfig);
53
53
  });
54
54
  }
@@ -56,7 +56,7 @@ function setupIosCallKeepEvents(pushConfig) {
56
56
  const voipPushNotification = (0, _libs.getVoipPushNotificationLib)();
57
57
  // @ts-expect-error - call_cid is not part of RNCallKeepEventPayload
58
58
  const call_cid = payload?.call_cid;
59
- logger('debug', `didDisplayIncomingCall event with callUUID: ${callUUID} call_cid: ${call_cid}`);
59
+ logger.debug(`didDisplayIncomingCall event with callUUID: ${callUUID} call_cid: ${call_cid}`);
60
60
  if (call_cid) {
61
61
  if (_reactNative.AppState.currentState === 'background') {
62
62
  (0, _utils.processCallFromPushInBackground)(pushConfig, call_cid, 'backgroundDelivered');
@@ -1 +1 @@
1
- {"version":3,"names":["_rxSubjects","require","_videoClient","_libs","_utils","_reactNative","_pushLogoutCallback","setupIosCallKeepEvents","pushConfig","Platform","OS","ios","pushProviderName","android","incomingCallChannel","getLogger","logger","callkeep","getCallKeepLib","getCallCid","callUUID","call_cid","NativeModules","StreamVideoReactNative","getIncomingCallCid","voipPushNotificationCallCId","RxUtils","getCurrentValue","voipPushNotificationCallCId$","next","undefined","answerCall","then","iosCallkeepAcceptCall","endCall","iosCallkeepRejectCall","didDisplayIncomingCall","payload","voipPushNotification","getVoipPushNotificationLib","AppState","currentState","processCallFromPushInBackground","voipCallkeepCallOnForegroundMap$","uuid","cid","onVoipNotificationCompleted","remove","removeAnswerCall","addEventListener","removeEndCall","removeDisplayIncomingCall","removeDidLoadWithEvents","events","Array","isArray","length","forEach","event","name","data","setPushLogoutCallback","callUUIDFromCallkeep","shouldProcessCallFromCallkeep","clearPushWSEventSubscriptions","voipCallkeepAcceptedCallOnNativeDialerMap$","pushAcceptedIncomingCallCId$","removeIncomingCall"],"sourceRoot":"../../../../src","sources":["utils/push/setupIosCallKeepEvents.ts"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAMA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AAEA,IAAAG,MAAA,GAAAH,OAAA;AAIA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,mBAAA,GAAAL,OAAA;AAIA;AACA;AACA;AACO,SAASM,sBAAsBA,CACpCC,UAAkD,EAClD;EACA,IAAIC,qBAAQ,CAACC,EAAE,KAAK,KAAK,IAAI,CAACF,UAAU,CAACG,GAAG,CAACC,gBAAgB,EAAE;IAC7D;EACF;EACA,IAAI,CAACJ,UAAU,CAACK,OAAO,CAACC,mBAAmB,EAAE;IAC3C;IACA,IAAAC,sBAAS,EAAC,CAAC,wBAAwB,CAAC,CAAC,CACnC,OAAO,EACP,oFACF,CAAC;IACD;EACF;EACA,MAAMC,MAAM,GAAG,IAAAD,sBAAS,EAAC,CAAC,wBAAwB,CAAC,CAAC;EACpD,MAAME,QAAQ,GAAG,IAAAC,oBAAc,EAAC,CAAC;EAEjC,eAAeC,UAAUA,CAACC,QAAgB,EAA+B;IACvE,IAAI;MACF,MAAMC,QAAQ,GACZ,MAAMC,0BAAa,CAACC,sBAAsB,CAACC,kBAAkB,CAACJ,QAAQ,CAAC;MACzE;MACA;MACA,MAAMK,2BAA2B,GAAGC,oBAAO,CAACC,eAAe,CACzDC,wCACF,CAAC;MACD,IAAI,CAACH,2BAA2B,EAAE;QAChCT,MAAM,CACJ,OAAO,EACP,yEAAyEK,QAAQ,kBAAkBD,QAAQ,EAC7G,CAAC;QACDQ,wCAA4B,CAACC,IAAI,CAACR,QAAQ,CAAC;MAC7C;MACA,OAAOA,QA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A,MAAM0C,6BAA6B,GAAGA,CACpC1C,QAA4B,EAC5ByC,oBAA4B,KACL;EACvB,IAAI,CAACzC,QAAQ,IAAI,CAACyC,oBAAoB,EAAE;IACtC,OAAO,KAAK;EACd;EACA,OAAO,IAAI;AACb,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_rxSubjects","require","_videoClient","_libs","_utils","_reactNative","_pushLogoutCallback","setupIosCallKeepEvents","pushConfig","Platform","OS","ios","pushProviderName","android","incomingCallChannel","videoLoggerSystem","getLogger","debug","logger","callkeep","getCallKeepLib","getCallCid","callUUID","call_cid","NativeModules","StreamVideoReactNative","getIncomingCallCid","voipPushNotificationCallCId","RxUtils","getCurrentValue","voipPushNotificationCallCId$","next","undefined","answerCall","then","iosCallkeepAcceptCall","endCall","iosCallkeepRejectCall","didDisplayIncomingCall","payload","voipPushNotification","getVoipPushNotificationLib","AppState","currentState","processCallFromPushInBackground","voipCallkeepCallOnForegroundMap$","uuid","cid","onVoipNotificationCompleted","remove","removeAnswerCall","addEventListener","removeEndCall","removeDisplayIncomingCall","removeDidLoadWithEvents","events","Array","isArray","length","forEach","event","name","data","setPushLogoutCallback","callUUIDFromCallkeep","shouldProcessCallFromCallkeep","clearPushWSEventSubscriptions","voipCallkeepAcceptedCallOnNativeDialerMap$","pushAcceptedIncomingCallCId$","removeIncomingCall"],"sourceRoot":"../../../../src","sources":["utils/push/setupIosCallKeepEvents.ts"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAMA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AAEA,IAAAG,MAAA,GAAAH,OAAA;AAIA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,mBAAA,GAAAL,OAAA;AAIA;AACA;AACA;AACO,SAASM,sBAAsBA,CACpCC,UAAkD,EAClD;EACA,IAAIC,qBAAQ,CAACC,EAAE,KAAK,KAAK,IAAI,CAACF,UAAU,CAACG,GAAG,CAACC,gBAAg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AAS,CAAC;AAClD,CAAC;AAED,MAAMK,qBAAqB,GAAG,MAAAA,CAC5Bd,QAA4B,EAC5ByC,oBAA4B,EAC5BxD,UAAsB,KACnB;EACH,IAAI,CAACyD,6BAA6B,CAAC1C,QAAQ,EAAEyC,oBAAoB,CAAC,EAAE;IAClE;EACF;EACA,IAAAE,oCAA6B,EAAC3C,QAAQ,CAAC;EACvC;EACA,MAAMI,2BAA2B,GAAGC,oBAAO,CAACC,eAAe,CACzDC,wCACF,CAAC;EACD,IAAIH,2BAA2B,KAAKJ,QAAQ,EAAE;IAC5C4C,sDAA0C,CAACpC,IAAI,CAACC,SAAS,CAAC;IAC1Da,4CAAgC,CAACd,IAAI,CAACC,SAAS,CAAC;IAChDF,wCAA4B,CAACC,IAAI,CAACC,SAAS,CAAC;EAC9C;EAEA,MAAM,IAAAY,sCAA+B,EAACpC,UAAU,EAAEe,QAAQ,EAAE,SAAS,CAAC;EACtE,MAAMC,0BAAa,CAACC,sBAAsB,EAAE4C,kBAAkB,CAAC9C,QAAQ,CAAC;AAC1E,CAAC;;AAED;AACA;AACA;AACA;AACA,MAAM0C,6BAA6B,GAAGA,CACpC1C,QAA4B,EAC5ByC,oBAA4B,KACL;EACvB,IAAI,CAACzC,QAAQ,IAAI,CAACyC,oBAAoB,EAAE;IACtC,OAAO,KAAK;EACd;EACA,OAAO,IAAI;AACb,CAAC","ignoreList":[]}
@@ -13,19 +13,19 @@ function setupIosVoipPushEvents(pushConfig) {
13
13
  if (_reactNative.Platform.OS !== 'ios' || !pushConfig.ios?.pushProviderName) {
14
14
  return;
15
15
  }
16
- const logger = (0, _videoClient.getLogger)(['setupIosVoipPushEvents']);
16
+ const logger = _videoClient.videoLoggerSystem.getLogger('setupIosVoipPushEvents');
17
17
  if (!pushConfig.ios.pushProviderName) {
18
18
  // TODO: remove this check and find a better way once we have telecom integration for android
19
- logger('debug', 'ios pushProviderName is not defined, so skipping the setupIosVoipPushEvents');
19
+ logger.debug('ios pushProviderName is not defined, so skipping the setupIosVoipPushEvents');
20
20
  return;
21
21
  }
22
22
  const voipPushNotification = (0, _libs.getVoipPushNotificationLib)();
23
- logger('debug', 'notification event listener added');
23
+ logger.debug('notification event listener added');
24
24
  voipPushNotification.addEventListener('notification', notification => {
25
25
  (0, _ios.onVoipNotificationReceived)(notification, pushConfig);
26
26
  });
27
27
  (0, _pushLogoutCallback.setPushLogoutCallback)(async () => {
28
- (0, _videoClient.getLogger)(['setPushLogoutCallback'])('debug', 'notification event listener removed');
28
+ _videoClient.videoLoggerSystem.getLogger('setPushLogoutCallback').debug('notification event listener removed');
29
29
  voipPushNotification.removeEventListener('notification');
30
30
  });
31
31
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_libs","require","_reactNative","_ios","_pushLogoutCallback","_videoClient","setupIosVoipPushEvents","pushConfig","Platform","OS","ios","pushProviderName","logger","getLogger","voipPushNotification","getVoipPushNotificationLib","addEventListener","notification","onVoipNotificationReceived","setPushLogoutCallback","removeEventListener"],"sourceRoot":"../../../../src","sources":["utils/push/setupIosVoipPushEvents.ts"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,IAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAGO,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,GAAG,IAAAC,sBAAS,EAAC,CAAC,wBAAwB,CAAC,CAAC;EACpD,IAAI,CAACN,UAAU,CAACG,GAAG,CAACC,gBAAgB,EAAE;IACpC;IACAC,MAAM,CACJ,OAAO,EACP,6EACF,CAAC;IACD;EACF;EACA,MAAME,oBAAoB,GAAG,IAAAC,gCAA0B,EAAC,CAAC;EAEzDH,MAAM,CAAC,OAAO,EAAE,mCAAmC,CAAC;EACpDE,oBAAoB,CAACE,gBAAgB,CAAC,cAAc,EAAGC,YAAY,IAAK;IACtE,IAAAC,+BAA0B,EAACD,YAAY,EAAEV,UAAU,CAAC;EACtD,CAAC,CAAC;EACF,IAAAY,yCAAqB,EAAC,YAAY;IAChC,IAAAN,sBAAS,EAAC,CAAC,uBAAuB,CAAC,CAAC,CAClC,OAAO,EACP,qCACF,CAAC;IACDC,oBAAoB,CAACM,mBAAmB,CAAC,cAAc,CAAC;EAC1D,CAAC,CAAC;AACJ","ignoreList":[]}
1
+ {"version":3,"names":["_libs","require","_reactNative","_ios","_pushLogoutCallback","_videoClient","setupIosVoipPushEvents","pushConfig","Platform","OS","ios","pushProviderName","logger","videoLoggerSystem","getLogger","debug","voipPushNotification","getVoipPushNotificationLib","addEventListener","notification","onVoipNotificationReceived","setPushLogoutCallback","removeEventListener"],"sourceRoot":"../../../../src","sources":["utils/push/setupIosVoipPushEvents.ts"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,IAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AAEA,IAAAI,YAAA,GAAAJ,OAAA;AAEO,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;EACA,MAAMC,oBAAoB,GAAG,IAAAC,gCAA0B,EAAC,CAAC;EAEzDL,MAAM,CAACG,KAAK,CAAC,mCAAmC,CAAC;EACjDC,oBAAoB,CAACE,gBAAgB,CAAC,cAAc,EAAGC,YAAY,IAAK;IACtE,IAAAC,+BAA0B,EAACD,YAAY,EAAEZ,UAAU,CAAC;EACtD,CAAC,CAAC;EACF,IAAAc,yCAAqB,EAAC,YAAY;IAChCR,8BAAiB,CACdC,SAAS,CAAC,uBAAuB,CAAC,CAClCC,KAAK,CAAC,qCAAqC,CAAC;IAC/CC,oBAAoB,CAACM,mBAAmB,CAAC,cAAc,CAAC;EAC1D,CAAC,CAAC;AACJ","ignoreList":[]}
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.version = void 0;
7
- const version = exports.version = '1.23.0';
7
+ const version = exports.version = '1.24.0';
8
8
  //# sourceMappingURL=version.js.map