@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
@@ -1,9 +1,9 @@
1
- import { getLogger } from '@stream-io/video-client';
2
1
  import { AppState, NativeModules, Platform } from 'react-native';
3
2
  import { getCallKeepLib, getVoipPushNotificationLib } from '../libs';
4
3
  import { voipPushNotificationCallCId$ } from './rxSubjects';
5
4
  import { pushUnsubscriptionCallbacks } from './constants';
6
5
  import { canAddPushWSSubscriptionsRef, shouldCallBeEnded } from './utils';
6
+ import { videoLoggerSystem } from '@stream-io/video-client';
7
7
  export const onVoipNotificationReceived = async (notification, pushConfig) => {
8
8
  /* --- Example payload ---
9
9
  {
@@ -37,10 +37,10 @@ export const onVoipNotificationReceived = async (notification, pushConfig) => {
37
37
  if (!call_cid || Platform.OS !== 'ios' || !pushConfig.ios.pushProviderName) {
38
38
  return;
39
39
  }
40
- const logger = getLogger(['setupIosVoipPushEvents']);
40
+ const logger = videoLoggerSystem.getLogger('setupIosVoipPushEvents');
41
41
  const client = await pushConfig.createStreamVideoClient();
42
42
  if (!client) {
43
- logger('debug', 'client not found, not processing call.ring voip push notification');
43
+ logger.debug('client not found, not processing call.ring voip push notification');
44
44
  return;
45
45
  }
46
46
  const shouldRejectCallWhenBusy = client['rejectCallWhenBusy'] ?? false;
@@ -53,10 +53,10 @@ export const onVoipNotificationReceived = async (notification, pushConfig) => {
53
53
  try {
54
54
  uuid = await NativeModules?.StreamVideoReactNative?.getIncomingCallUUid(call_cid);
55
55
  } catch (error) {
56
- logger('error', 'Error in getting call uuid from native module', error);
56
+ logger.error('Error in getting call uuid from native module', error);
57
57
  }
58
58
  if (!uuid) {
59
- logger('error', `Not processing call.ring push notification, as no uuid found for call_cid: ${call_cid}`);
59
+ logger.error(`Not processing call.ring push notification, as no uuid found for call_cid: ${call_cid}`);
60
60
  return;
61
61
  }
62
62
  const created_by_id = notification?.stream?.created_by_id;
@@ -68,7 +68,7 @@ export const onVoipNotificationReceived = async (notification, pushConfig) => {
68
68
  } = shouldCallBeEnded(callFromPush, created_by_id, receiver_id);
69
69
  if (mustEndCall) {
70
70
  const callkeep = getCallKeepLib();
71
- logger('debug', `callkeep.reportEndCallWithUUID for uuid: ${uuid}, call_cid: ${call_cid}, reason: ${callkeepReason}`);
71
+ logger.debug(`callkeep.reportEndCallWithUUID for uuid: ${uuid}, call_cid: ${call_cid}, reason: ${callkeepReason}`);
72
72
  callkeep.reportEndCallWithUUID(uuid, callkeepReason);
73
73
  const voipPushNotification = getVoipPushNotificationLib();
74
74
  voipPushNotification.onVoipNotificationCompleted(uuid);
@@ -82,13 +82,13 @@ export const onVoipNotificationReceived = async (notification, pushConfig) => {
82
82
  const unsubscribe = callFromPush.on('all', event => {
83
83
  const _canListenToWS = canListenToWS();
84
84
  if (!_canListenToWS) {
85
- logger('debug', `unsubscribe due to event callCid: ${call_cid} canListenToWS: ${_canListenToWS}`, event);
85
+ logger.debug(`unsubscribe due to event callCid: ${call_cid} canListenToWS: ${_canListenToWS}`, event);
86
86
  unsubscribe();
87
87
  return;
88
88
  }
89
89
  const _closed = closeCallIfNecessary();
90
90
  if (_closed) {
91
- logger('debug', `unsubscribe due to event callCid: ${call_cid} canListenToWS: ${_canListenToWS} shouldCallBeClosed: ${_closed}`, event);
91
+ logger.debug(`unsubscribe due to event callCid: ${call_cid} canListenToWS: ${_canListenToWS} shouldCallBeClosed: ${_closed}`, event);
92
92
  unsubscribe();
93
93
  }
94
94
  });
@@ -97,7 +97,7 @@ export const onVoipNotificationReceived = async (notification, pushConfig) => {
97
97
  }
98
98
  // send the info to this subject, it is listened by callkeep events
99
99
  // callkeep events will then accept/reject the call
100
- logger('debug', `call_cid:${call_cid} uuid:${uuid} received and processed from call.ring push notification`);
100
+ logger.debug(`call_cid:${call_cid} uuid:${uuid} received and processed from call.ring push notification`);
101
101
  voipPushNotificationCallCId$.next(call_cid);
102
102
  };
103
103
  //# sourceMappingURL=ios.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["getLogger","AppState","NativeModules","Platform","getCallKeepLib","getVoipPushNotificationLib","voipPushNotificationCallCId$","pushUnsubscriptionCallbacks","canAddPushWSSubscriptionsRef","shouldCallBeEnded","onVoipNotificationReceived","notification","pushConfig","sender","stream","type","call_cid","OS","ios","pushProviderName","logger","client","createStreamVideoClient","shouldRejectCallWhenBusy","StreamVideoReactNative","setShouldRejectCallWhenBusy","callFromPush","onRingingCall","uuid","getIncomingCallUUid","error","created_by_id","receiver_id","closeCallIfNecessary","mustEndCall","callkeepReason","callkeep","reportEndCallWithUUID","voipPushNotification","onVoipNotificationCompleted","closed","canListenToWS","current","currentState","unsubscribe","on","event","_canListenToWS","_closed","get","forEach","cb","set","next"],"sourceRoot":"../../../../../src","sources":["utils/push/internal/ios.ts"],"mappings":"AAAA,SAASA,SAAS,QAAQ,yBAAyB;AACnD,SAASC,QAAQ,EAAEC,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAChE,SAASC,cAAc,EAAEC,0BAA0B,QAAQ,SAAS;AACpE,SAASC,4BAA4B,QAAQ,cAAc;AAC3D,SAASC,2BAA2B,QAAQ,aAAa;AACzD,SAASC,4BAA4B,EAAEC,iBAAiB,QAAQ,SAAS;AAGzE,OAAO,MAAMC,0BAA0B,GAAG,MAAAA,CACxCC,YAAiB,EACjBC,UAAkD,KAC/C;EACH;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAMC,MAAM,GAAGF,YAAY,EAAEG,MAAM,EAAED,MAAM;EAC3C,MAAME,IAAI,GAAGJ,YAAY,EAAEG,MAAM,EAAEC,IAAI;EACvC;E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C,CAAC;IAChE5C,2BAA2B,CAAC6C,GAAG,CAACpC,QAAQ,EAAE,CAAC4B,WAAW,CAAC,CAAC;EAC1D;EACA;EACA;EACAxB,MAAM,CACJ,OAAO,EACP,YAAYJ,QAAQ,SAASY,IAAI,0DACnC,CAAC;EACDtB,4BAA4B,CAAC+C,IAAI,CAACrC,QAAQ,CAAC;AAC7C,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["AppState","NativeModules","Platform","getCallKeepLib","getVoipPushNotificationLib","voipPushNotificationCallCId$","pushUnsubscriptionCallbacks","canAddPushWSSubscriptionsRef","shouldCallBeEnded","videoLoggerSystem","onVoipNotificationReceived","notification","pushConfig","sender","stream","type","call_cid","OS","ios","pushProviderName","logger","getLogger","client","createStreamVideoClient","debug","shouldRejectCallWhenBusy","StreamVideoReactNative","setShouldRejectCallWhenBusy","callFromPush","onRingingCall","uuid","getIncomingCallUUid","error","created_by_id","receiver_id","closeCallIfNecessary","mustEndCall","callkeepReason","callkeep","reportEndCallWithUUID","voipPushNotification","onVoipNotificationCompleted","closed","canListenToWS","current","currentState","unsubscribe","on","event","_canListenToWS","_closed","get","forEach","cb","set","next"],"sourceRoot":"../../../../../src","sources":["utils/push/internal/ios.ts"],"mappings":"AAAA,SAASA,QAAQ,EAAEC,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAChE,SAASC,cAAc,EAAEC,0BAA0B,QAAQ,SAAS;AACpE,SAASC,4BAA4B,QAAQ,cAAc;AAC3D,SAASC,2BAA2B,QAAQ,aAAa;AACzD,SAASC,4BAA4B,EAAEC,iBAAiB,QAAQ,SAAS;AAEzE,SAASC,iBAAiB,QAAQ,yBAAyB;AAE3D,OAAO,MAAMC,0BAA0B,GAAG,MAAAA,CACxCC,YAAiB,EACjBC,UAAkD,KAC/C;EACH;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAMC,MAAM,G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C;IAEFxC,2BAA2B,CAAC6C,GAAG,CAACnC,QAAQ,CAAC,EAAEoC,OAAO,CAAEC,EAAE,IAAKA,EAAE,CAAC,CAAC,CAAC;IAChE/C,2BAA2B,CAACgD,GAAG,CAACtC,QAAQ,EAAE,CAAC8B,WAAW,CAAC,CAAC;EAC1D;EACA;EACA;EACA1B,MAAM,CAACI,KAAK,CACV,YAAYR,QAAQ,SAASc,IAAI,0DACnC,CAAC;EACDzB,4BAA4B,CAACkD,IAAI,CAACvC,QAAQ,CAAC;AAC7C,CAAC","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import { CallingState, getLogger } from '@stream-io/video-client';
1
+ import { CallingState, videoLoggerSystem } from '@stream-io/video-client';
2
2
  import { onNewCallNotification } from '../../internal/newNotificationCallbacks';
3
3
  import { pushUnsubscriptionCallbacks } from './constants';
4
4
  /**
@@ -38,7 +38,7 @@ export const shouldCallBeEnded = (callFromPush, created_by_id, receiver_id) => {
38
38
  callkeepReason = 4;
39
39
  }
40
40
  }
41
- getLogger(['shouldCallBeEnded'])('debug', `callCid: ${callFromPush.cid} mustEndCall: ${mustEndCall} callkeepReason: ${callkeepReason}`);
41
+ videoLoggerSystem.getLogger('shouldCallBeEnded').debug(`callCid: ${callFromPush.cid} mustEndCall: ${mustEndCall} callkeepReason: ${callkeepReason}`);
42
42
  return {
43
43
  mustEndCall,
44
44
  callkeepReason
@@ -57,8 +57,8 @@ export const processCallFromPushInBackground = async (pushConfig, call_cid, acti
57
57
  return;
58
58
  }
59
59
  } catch (e) {
60
- const logger = getLogger(['processCallFromPushInBackground']);
61
- logger('error', 'failed to create video client', e);
60
+ const logger = videoLoggerSystem.getLogger('processCallFromPushInBackground');
61
+ logger.error('failed to create video client', e);
62
62
  return;
63
63
  }
64
64
  await processCallFromPush(videoClient, call_cid, action, pushConfig);
@@ -76,8 +76,8 @@ export const processCallFromPush = async (client, call_cid, action, pushConfig)
76
76
  try {
77
77
  callFromPush = await client.onRingingCall(call_cid);
78
78
  } catch (e) {
79
- const logger = getLogger(['processCallFromPush']);
80
- logger('error', 'failed to fetch call from push notification', e);
79
+ const logger = videoLoggerSystem.getLogger('processCallFromPush');
80
+ logger.error('failed to fetch call from push notification', e);
81
81
  return;
82
82
  }
83
83
  // note: when action was pressed or delivered, we dont need to do anything as the only thing is to do is to get the call which adds it to the client
@@ -86,19 +86,19 @@ export const processCallFromPush = async (client, call_cid, action, pushConfig)
86
86
  if (pushConfig.publishOptions) {
87
87
  callFromPush.updatePublishOptions(pushConfig.publishOptions);
88
88
  }
89
- getLogger(['processCallFromPush'])('debug', `joining call from push notification with callCid: ${callFromPush.cid}`);
89
+ videoLoggerSystem.getLogger('processCallFromPush').debug(`joining call from push notification with callCid: ${callFromPush.cid}`);
90
90
  await callFromPush.join();
91
91
  } else if (action === 'decline') {
92
92
  const canReject = callFromPush.state.callingState === CallingState.RINGING;
93
- getLogger(['processCallFromPush'])('debug', `declining call from push notification with callCid: ${callFromPush.cid} reject: ${canReject}`);
93
+ videoLoggerSystem.getLogger('processCallFromPush').debug(`declining call from push notification with callCid: ${callFromPush.cid} reject: ${canReject}`);
94
94
  await callFromPush.leave({
95
95
  reject: canReject,
96
96
  reason: 'decline'
97
97
  });
98
98
  }
99
99
  } catch (e) {
100
- const logger = getLogger(['processCallFromPush']);
101
- logger('warn', `failed to process ${action} call from push notification`, e);
100
+ const logger = videoLoggerSystem.getLogger('processCallFromPush');
101
+ logger.warn(`failed to process ${action} call from push notification`, e);
102
102
  }
103
103
  };
104
104
 
@@ -122,8 +122,8 @@ export const processNonIncomingCallFromPush = async (client, call_cid, nonRingin
122
122
  await callFromPush.get();
123
123
  }
124
124
  } catch (e) {
125
- const logger = getLogger(['processNonIncomingCallFromPush']);
126
- logger('error', 'failed to fetch call from push notification', e);
125
+ const logger = videoLoggerSystem.getLogger('processNonIncomingCallFromPush');
126
+ logger.error('failed to fetch call from push notification', e);
127
127
  return;
128
128
  }
129
129
  onNewCallNotification(callFromPush, nonRingingNotificationType);
@@ -1 +1 @@
1
- {"version":3,"names":["CallingState","getLogger","onNewCallNotification","pushUnsubscriptionCallbacks","shouldCallBeEnded","callFromPush","created_by_id","receiver_id","callSession","state","session","rejected_by","accepted_by","mustEndCall","callkeepReason","cid","processCallFromPushInBackground","pushConfig","call_cid","action","videoClient","createStreamVideoClient","e","logger","processCallFromPush","client","onRingingCall","publishOptions","updatePublishOptions","join","canReject","callingState","RINGING","leave","reject","reason","processNonIncomingCallFromPush","nonRingingNotificationType","_callFromPush","calls","find","c","callType","callId","split","call","get","clearPushWSEventSubscriptions","unsubscriptionCallbacks","forEach","cb","delete","canAddPushWSSubscriptionsRef","current"],"sourceRoot":"../../../../../src","sources":["utils/push/internal/utils.ts"],"mappings":"AAAA,SAEEA,YAAY,EACZC,SAAS,QAEJ,yBAAyB;AAKhC,SAASC,qBAAqB,QAAQ,yCAAyC;AAC/E,SAASC,2BAA2B,QAAQ,aAAa;AAMzD;AACA;AACA;AACA;AACA,OAAO,MAAMC,iBAAiB,GAAGA,CAC/BC,YAAkB,EAClBC,aAAiC,EACjCC,WAA+B,KAC5B;EACH;AACF;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAMC,WAAW,GAAGH,YAAY,CAACI,KAAK,CAACC,OAAO;EAC9C,MAAMC,WAAW,GAAGH,WAAW,EAAEG,WAAW;EAC5C,MAAMC,WAAW,GAAGJ,WAAW,EAAEI,WAAW;EAC5C,IAAIC,WAAW,GAAG,KAAK;EACvB,IAAIC,cAAc,GAAG,CAAC;EACtB,IAAIR,aAAa,IAAIK,WAAW,EAAE;IAChC,IAAIA,WAAW,CAACL,aAAa,CAAC,EAAE;MAC9B;MACAO,WAAW,GAAG,IAAI;MAClBC,cAAc,GAAG,CAAC;IACpB;EACF,CAAC,MAAM,IAAIP,WAAW,IAAII,WAAW,EAAE;IACrC,IAAIA,WAAW,CAACJ,WAAW,CAAC,EAAE;MAC5B;MACAM,WAAW,GAAG,IAAI;MAClBC,cAAc,GAAG,CAAC;IACpB;E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aAAa;IAC9B,CAAC,MAAM;MACL;MACA,MAAM,CAACI,QAAQ,EAAEC,MAAM,CAAC,GAAGzB,QAAQ,CAAC0B,KAAK,CAAC,GAAG,CAAC;MAC9CvC,YAAY,GAAGoB,MAAM,CAACoB,IAAI,CAACH,QAAQ,EAAYC,MAAgB,CAAC;MAChE,MAAMtC,YAAY,CAACyC,GAAG,CAAC,CAAC;IAC1B;EACF,CAAC,CAAC,OAAOxB,CAAC,EAAE;IACV,MAAMC,MAAM,GAAGtB,SAAS,CAAC,CAAC,gCAAgC,CAAC,CAAC;IAC5DsB,MAAM,CAAC,OAAO,EAAE,6CAA6C,EAAED,CAAC,CAAC;IACjE;EACF;EACApB,qBAAqB,CAACG,YAAY,EAAEgC,0BAA0B,CAAC;AACjE,CAAC;;AAED;AACA;AACA;AACA;AACA,OAAO,MAAMU,6BAA6B,GAAI7B,QAAgB,IAAK;EACjE,MAAM8B,uBAAuB,GAAG7C,2BAA2B,CAAC2C,GAAG,CAAC5B,QAAQ,CAAC;EACzE,IAAI8B,uBAAuB,EAAE;IAC3BA,uBAAuB,CAACC,OAAO,CAAEC,EAAE,IAAKA,EAAE,CAAC,CAAC,CAAC;IAC7C/C,2BAA2B,CAACgD,MAAM,CAACjC,QAAQ,CAAC;EAC9C;AACF,CAAC;;AAED;AACA;AACA;AACA;AACA,OAAO,MAAMkC,4BAA0D,GAAG;EACxEC,OAAO,EAAE;AACX,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["CallingState","videoLoggerSystem","onNewCallNotification","pushUnsubscriptionCallbacks","shouldCallBeEnded","callFromPush","created_by_id","receiver_id","callSession","state","session","rejected_by","accepted_by","mustEndCall","callkeepReason","getLogger","debug","cid","processCallFromPushInBackground","pushConfig","call_cid","action","videoClient","createStreamVideoClient","e","logger","error","processCallFromPush","client","onRingingCall","publishOptions","updatePublishOptions","join","canReject","callingState","RINGING","leave","reject","reason","warn","processNonIncomingCallFromPush","nonRingingNotificationType","_callFromPush","calls","find","c","callType","callId","split","call","get","clearPushWSEventSubscriptions","unsubscriptionCallbacks","forEach","cb","delete","canAddPushWSSubscriptionsRef","current"],"sourceRoot":"../../../../../src","sources":["utils/push/internal/utils.ts"],"mappings":"AAAA,SAEEA,YAAY,EAEZC,iBAAiB,QACZ,yBAAyB;AAKhC,SAASC,qBAAqB,QAAQ,yCAAyC;AAC/E,SAASC,2BAA2B,QAAQ,aAAa;AAMzD;AACA;AACA;AACA;AACA,OAAO,MAAMC,iBAAiB,GAAGA,CAC/BC,YAAkB,EAClBC,aAAiC,EACjCC,WAA+B,KAC5B;EACH;AACF;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAMC,WAAW,GAAGH,YAAY,CAACI,KAAK,CAACC,OAAO;EAC9C,MAAMC,WAAW,GAAGH,WAAW,EAAEG,WAAW;EAC5C,MAAMC,WAAW,GAAGJ,WAAW,EAAEI,WAAW;EAC5C,IAAIC,WAAW,GAAG,KAAK;EACvB,IAAIC,cAAc,GAAG,CAAC;EACtB,IAAIR,aAAa,IAAIK,WAAW,EAAE;IAChC,IAAIA,WAAW,CAACL,aAAa,CAAC,EAAE;MAC9B;MACAO,WAAW,GAAG,IAAI;MAClBC,cAAc,GAAG,CAAC;IACpB;EACF,CAAC,MAAM,IAAIP,WAAW,IAAII,WAAW,EAAE;IACrC,IAAIA,WAAW,CAACJ,WAAW,CAAC,EAAE;MAC5B;MACAM,WAAW,GAAG,IAAI;MAClBC,cAAc,GAAG,CAAC;IACpB;EACF,CAAC,MAAM,IAAIP,WAAW,IAAIK,WAAW,EAAE;IACrC,IAAIA,WAAW,CAACL,WAAW,CAAC,EAAE;MAC5B;MACAM,WAAW,GAAG,IAAI;MAClBC,cAAc,GAAG,CAAC;IACpB;EACF;EACAb,iBAAiB,CACdc,SAAS,CAAC,mBAAmB,CAAC,CAC9BC,KAAK,CACJ,YAAYX,YAAY,CAACY,GAAG,iBAAiBJ,WAAW,oBAAoBC,cAAc,EAC5F,CAAC;EACH,OAAO;IAAED,WAAW;I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ACV,MAAMC,MAAM,GAAGxB,iBAAiB,CAACc,SAAS,CACxC,gCACF,CAAC;IACDU,MAAM,CAACC,KAAK,CAAC,6CAA6C,EAAEF,CAAC,CAAC;IAC9D;EACF;EACAtB,qBAAqB,CAACG,YAAY,EAAEoC,0BAA0B,CAAC;AACjE,CAAC;;AAED;AACA;AACA;AACA;AACA,OAAO,MAAMU,6BAA6B,GAAI/B,QAAgB,IAAK;EACjE,MAAMgC,uBAAuB,GAAGjD,2BAA2B,CAAC+C,GAAG,CAAC9B,QAAQ,CAAC;EACzE,IAAIgC,uBAAuB,EAAE;IAC3BA,uBAAuB,CAACC,OAAO,CAAEC,EAAE,IAAKA,EAAE,CAAC,CAAC,CAAC;IAC7CnD,2BAA2B,CAACoD,MAAM,CAACnC,QAAQ,CAAC;EAC9C;AACF,CAAC;;AAED;AACA;AACA;AACA;AACA,OAAO,MAAMoC,4BAA0D,GAAG;EACxEC,OAAO,EAAE;AACX,CAAC","ignoreList":[]}
@@ -1,7 +1,7 @@
1
1
  import { Platform } from 'react-native';
2
2
  import { pushNonRingingCallData$ } from './internal/rxSubjects';
3
3
  import { getExpoNotificationsLib, getNotifeeLibThrowIfNotInstalledForPush, getPushNotificationIosLib } from './libs';
4
- import { getLogger } from '@stream-io/video-client';
4
+ import { videoLoggerSystem } from '@stream-io/video-client';
5
5
  import { setPushLogoutCallback } from '../internal/pushLogoutCallback';
6
6
  import { StreamVideoRN } from '../StreamVideoRN';
7
7
  let lastApnToken = {
@@ -12,8 +12,8 @@ function processNonRingingNotificationStreamPayload(streamPayload) {
12
12
  if (streamPayload?.sender === 'stream.video' && streamPayload?.type !== 'call.ring') {
13
13
  const cid = streamPayload.call_cid;
14
14
  const type = streamPayload.type;
15
- const logger = getLogger(['processNonRingingNotificationStreamPayload']);
16
- logger('trace', `cid, type - ${cid}, ${type}`);
15
+ const logger = videoLoggerSystem.getLogger('processNonRingingNotificationStreamPayload');
16
+ logger.trace(`cid, type - ${cid}, ${type}`);
17
17
  pushNonRingingCallData$.next({
18
18
  cid,
19
19
  type
@@ -31,8 +31,8 @@ export const oniOSExpoNotificationEvent = event => {
31
31
  const trigger = event.request.trigger;
32
32
  if (trigger && typeof trigger === 'object' && 'type' in trigger && trigger.type === 'push' && trigger.payload?.stream) {
33
33
  const streamPayload = trigger.payload.stream;
34
- const logger = getLogger(['processNonRingingNotificationStreamPayload']);
35
- logger('trace', `processNonRingingNotificationStreamPayload - ${JSON.stringify(streamPayload)}`);
34
+ const logger = videoLoggerSystem.getLogger('processNonRingingNotificationStreamPayload');
35
+ logger.trace(`processNonRingingNotificationStreamPayload - ${JSON.stringify(streamPayload)}`);
36
36
  processNonRingingNotificationStreamPayload(streamPayload);
37
37
  }
38
38
  }
@@ -51,8 +51,8 @@ export const oniOSNotifeeEvent = ({
51
51
  const streamPayload = detail.notification?.data?.stream;
52
52
  const result = processNonRingingNotificationStreamPayload(streamPayload);
53
53
  if (result) {
54
- const logger = getLogger(['oniOSNotifeeEvent']);
55
- logger('debug', `onTapNonRingingCallNotification?.(${result.cid}, ${result.type})`);
54
+ const logger = videoLoggerSystem.getLogger('oniOSNotifeeEvent');
55
+ logger.debug(`onTapNonRingingCallNotification?.(${result.cid}, ${result.type})`);
56
56
  pushConfig.onTapNonRingingCallNotification?.(result.cid, result.type);
57
57
  }
58
58
  }
@@ -61,22 +61,22 @@ export function onPushNotificationiOSStreamVideoEvent(notification) {
61
61
  const pushNotificationIosLib = getPushNotificationIosLib();
62
62
  const data = notification.getData();
63
63
  const streamPayload = data?.stream;
64
- const logger = getLogger(['onPushNotificationiOSStreamVideoEvent']);
64
+ const logger = videoLoggerSystem.getLogger('onPushNotificationiOSStreamVideoEvent');
65
65
  if (!streamPayload) {
66
- logger('trace', `skipping process: no stream payload found in notification data - ${JSON.stringify(data)}`);
66
+ logger.trace(`skipping process: no stream payload found in notification data - ${JSON.stringify(data)}`);
67
67
  return;
68
68
  }
69
69
  const isClicked = data.userInteraction === 1;
70
70
  const pushConfig = StreamVideoRN.getConfig().push;
71
71
  if (!isClicked || !pushConfig) {
72
- logger('debug', `notification.finish called and returning - isClicked: ${isClicked}, pushConfig: ${!!pushConfig}`);
72
+ logger.debug(`notification.finish called and returning - isClicked: ${isClicked}, pushConfig: ${!!pushConfig}`);
73
73
  notification.finish(pushNotificationIosLib.FetchResult.NoData);
74
74
  return;
75
75
  }
76
76
  // listen to foreground notifications
77
77
  const result = processNonRingingNotificationStreamPayload(streamPayload);
78
78
  if (result) {
79
- logger('debug', `onTapNonRingingCallNotification?.(${result.cid}, ${result.type})`);
79
+ logger.debug(`onTapNonRingingCallNotification?.(${result.cid}, ${result.type})`);
80
80
  pushConfig.onTapNonRingingCallNotification?.(result.cid, result.type);
81
81
  }
82
82
  notification.finish(pushNotificationIosLib.FetchResult.NoData);
@@ -87,11 +87,11 @@ export async function initIosNonVoipToken(client, pushConfig, setUnsubscribeList
87
87
  if (Platform.OS !== 'ios' || !pushConfig.ios.pushProviderName || !pushConfig.onTapNonRingingCallNotification) {
88
88
  return;
89
89
  }
90
- const logger = getLogger(['initIosNonVoipToken']);
90
+ const logger = videoLoggerSystem.getLogger('initIosNonVoipToken');
91
91
  const setDeviceToken = async token => {
92
92
  const userId = client.streamClient._user?.id ?? '';
93
93
  if (lastApnToken.token === token && lastApnToken.userId === userId) {
94
- logger('debug', 'Skipped sending device token to stream as it was already sent', token);
94
+ logger.debug('Skipped sending device token to stream as it was already sent', token);
95
95
  return;
96
96
  }
97
97
  setPushLogoutCallback(async () => {
@@ -100,47 +100,47 @@ export async function initIosNonVoipToken(client, pushConfig, setUnsubscribeList
100
100
  userId: ''
101
101
  };
102
102
  try {
103
- logger('debug', 'Remove device token - setPushLogoutCallback', token);
103
+ logger.debug('Remove device token - setPushLogoutCallback', token);
104
104
  await client.removeDevice(token);
105
105
  } catch (err) {
106
- logger('warn', 'setPushLogoutCallback - Failed to remove apn token from stream', err);
106
+ logger.warn('setPushLogoutCallback - Failed to remove apn token from stream', err);
107
107
  }
108
108
  });
109
109
  const push_provider_name = pushConfig.ios.pushProviderName;
110
- logger('debug', 'Add device token to stream', token);
110
+ logger.debug('Add device token to stream', token);
111
111
  await client.addDevice(token, 'apn', push_provider_name).then(() => {
112
112
  lastApnToken = {
113
113
  token,
114
114
  userId
115
115
  };
116
116
  }).catch(err => {
117
- logger('warn', 'Failed to add apn token to stream', err);
117
+ logger.warn('Failed to add apn token to stream', err);
118
118
  });
119
119
  };
120
120
  if (pushConfig.isExpo) {
121
121
  const expoNotificationsLib = getExpoNotificationsLib();
122
122
  if (expoNotificationsLib) {
123
123
  expoNotificationsLib.getDevicePushTokenAsync().then(devicePushToken => {
124
- logger('debug', 'Got device token - expoNotificationsLib.getDevicePushTokenAsync', devicePushToken.data);
124
+ logger.debug('Got device token - expoNotificationsLib.getDevicePushTokenAsync', devicePushToken.data);
125
125
  setDeviceToken(devicePushToken.data);
126
126
  });
127
127
  const subscription = expoNotificationsLib.addPushTokenListener(devicePushToken => {
128
- logger('debug', 'Got device token - expoNotificationsLib.addPushTokenListener', devicePushToken.data);
128
+ logger.debug('Got device token - expoNotificationsLib.addPushTokenListener', devicePushToken.data);
129
129
  setDeviceToken(devicePushToken.data);
130
130
  });
131
131
  setUnsubscribeListener(() => {
132
- logger('debug', `removed expo addPushTokenListener`);
132
+ logger.debug(`removed expo addPushTokenListener`);
133
133
  subscription.remove();
134
134
  });
135
135
  }
136
136
  } else {
137
137
  const pushNotificationIosLib = getPushNotificationIosLib();
138
138
  pushNotificationIosLib.addEventListener('register', token => {
139
- logger('debug', `Got device token - pushNotificationIosLib.addEventListener('register')`, token);
139
+ logger.debug(`Got device token - pushNotificationIosLib.addEventListener('register')`, token);
140
140
  setDeviceToken(token);
141
141
  });
142
142
  setUnsubscribeListener(() => {
143
- logger('debug', `pushNotificationIosLib.removeEventListener('register')`);
143
+ logger.debug(`pushNotificationIosLib.removeEventListener('register')`);
144
144
  pushNotificationIosLib.removeEventListener('register');
145
145
  });
146
146
  }
@@ -1 +1 @@
1
- {"version":3,"names":["Platform","pushNonRingingCallData$","getExpoNotificationsLib","getNotifeeLibThrowIfNotInstalledForPush","getPushNotificationIosLib","getLogger","setPushLogoutCallback","StreamVideoRN","lastApnToken","token","userId","processNonRingingNotificationStreamPayload","streamPayload","sender","type","cid","call_cid","logger","next","undefined","oniOSExpoNotificationEvent","event","pushConfig","getConfig","push","trigger","request","payload","stream","JSON","stringify","oniOSNotifeeEvent","OS","detail","notifeeLib","EventType","PRESS","notification","data","result","onTapNonRingingCallNotification","onPushNotificationiOSStreamVideoEvent","pushNotificationIosLib","getData","isClicked","userInteraction","finish","FetchResult","NoData","initIosNonVoipToken","client","setUnsubscribeListener","ios","pushProviderName","setDeviceToken","streamClient","_user","id","removeDevice","err","push_provider_name","addDevice","then","catch","isExpo","expoNotificationsLib","getDevicePushTokenAsync","devicePushToken","subscription","addPushTokenListener","remove","addEventListener","removeEventListener"],"sourceRoot":"../../../../src","sources":["utils/push/ios.ts"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,cAAc;AAEvC,SAASC,uBAAuB,QAAQ,uBAAuB;AAC/D,SAEEC,uBAAuB,EACvBC,uCAAuC,EACvCC,yBAAyB,QAEpB,QAAQ;AACf,SAASC,SAAS,QAA2B,yBAAyB;AACtE,SAASC,qBAAqB,QAAQ,gCAAgC;AAEtE,SAASC,aAAa,QAAQ,kBAAkB;AAKhD,IAAIC,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,GAAGZ,SAAS,CAAC,CAAC,4CAA4C,CAAC,CAAC;IACxEY,MAAM,CAAC,OAAO,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EACP,wEAAwE,EACxER,KACF,CAAC;MACD6C,cAAc,CAAC7C,KAAK,CAAC;IACvB,CAAC,CAAC;IACF0C,sBAAsB,CAAC,MAAM;MAC3BlC,MAAM,CAAC,OAAO,EAAE,wDAAwD,CAAC;MACzEyB,sBAAsB,CAAC8B,mBAAmB,CAAC,UAAU,CAAC;IACxD,CAAC,CAAC;EACJ;AACF","ignoreList":[]}
1
+ {"version":3,"names":["Platform","pushNonRingingCallData$","getExpoNotificationsLib","getNotifeeLibThrowIfNotInstalledForPush","getPushNotificationIosLib","videoLoggerSystem","setPushLogoutCallback","StreamVideoRN","lastApnToken","token","userId","processNonRingingNotificationStreamPayload","streamPayload","sender","type","cid","call_cid","logger","getLogger","trace","next","undefined","oniOSExpoNotificationEvent","event","pushConfig","getConfig","push","trigger","request","payload","stream","JSON","stringify","oniOSNotifeeEvent","OS","detail","notifeeLib","EventType","PRESS","notification","data","result","debug","onTapNonRingingCallNotification","onPushNotificationiOSStreamVideoEvent","pushNotificationIosLib","getData","isClicked","userInteraction","finish","FetchResult","NoData","initIosNonVoipToken","client","setUnsubscribeListener","ios","pushProviderName","setDeviceToken","streamClient","_user","id","removeDevice","err","warn","push_provider_name","addDevice","then","catch","isExpo","expoNotificationsLib","getDevicePushTokenAsync","devicePushToken","subscription","addPushTokenListener","remove","addEventListener","removeEventListener"],"sourceRoot":"../../../../src","sources":["utils/push/ios.ts"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,cAAc;AAEvC,SAASC,uBAAuB,QAAQ,uBAAuB;AAC/D,SAEEC,uBAAuB,EACvBC,uCAAuC,EACvCC,yBAAyB,QAEpB,QAAQ;AACf,SAA4BC,iBAAiB,QAAQ,yBAAyB;AAC9E,SAASC,qBAAqB,QAAQ,gCAAgC;AAEtE,SAASC,aAAa,QAAQ,kBAAkB;AAKhD,IAAIC,YAAY,GAAG;EAAEC,KAAK,EAAE,EAAE;EAAEC,MAAM,EAAE;AAAG,CAAC;AAE5C,SAASC,0CAA0CA,C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ACF,CAAC;MACDc,sBAAsB,CAAC,MAAM;QAC3BrC,MAAM,CAACyB,KAAK,CAAC,mCAAmC,CAAC;QACjD8B,YAAY,CAACE,MAAM,CAAC,CAAC;MACvB,CAAC,CAAC;IACJ;EACF,CAAC,MAAM;IACL,MAAM7B,sBAAsB,GAAGzC,yBAAyB,CAAC,CAAC;IAC1DyC,sBAAsB,CAAC8B,gBAAgB,CAAC,UAAU,EAAGlE,KAAK,IAAK;MAC7DQ,MAAM,CAACyB,KAAK,CACV,wEAAwE,EACxEjC,KACF,CAAC;MACDgD,cAAc,CAAChD,KAAK,CAAC;IACvB,CAAC,CAAC;IACF6C,sBAAsB,CAAC,MAAM;MAC3BrC,MAAM,CAACyB,KAAK,CAAC,wDAAwD,CAAC;MACtEG,sBAAsB,CAAC+B,mBAAmB,CAAC,UAAU,CAAC;IACxD,CAAC,CAAC;EACJ;AACF","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import { getLogger } from '@stream-io/video-client';
1
+ import { videoLoggerSystem } from '@stream-io/video-client';
2
2
  let expoNotificationsLib;
3
3
  try {
4
4
  expoNotificationsLib = require('expo-notifications');
@@ -11,7 +11,7 @@ export function getExpoNotificationsLib() {
11
11
  }
12
12
  export function getExpoNotificationsLibNoThrow() {
13
13
  if (!expoNotificationsLib) {
14
- getLogger(['getExpoNotificationsLibNoThrow'])('debug', 'expo-notifications library is not installed. It is required for non ringing push notifications and not for ringing');
14
+ videoLoggerSystem.getLogger('getExpoNotificationsLibNoThrow').debug('expo-notifications library is not installed. It is required for non ringing push notifications and not for ringing');
15
15
  }
16
16
  return expoNotificationsLib;
17
17
  }
@@ -1 +1 @@
1
- {"version":3,"names":["getLogger","expoNotificationsLib","require","getExpoNotificationsLib","Error","getExpoNotificationsLibNoThrow"],"sourceRoot":"../../../../../src","sources":["utils/push/libs/expoNotifications.ts"],"mappings":"AAAA,SAASA,SAAS,QAAQ,yBAAyB;AAOnD,IAAIC,oBAAsD;AAE1D,IAAI;EACFA,oBAAoB,GAAGC,OAAO,CAAC,oBAAoB,CAAC;AACtD,CAAC,CAAC,MAAM,CAAC;AAET,OAAO,SAASC,uBAAuBA,CAAA,EAAG;EACxC,IAAI,CAACF,oBAAoB,EAAE;IACzB,MAAMG,KAAK,CACT,oMACF,CAAC;EACH;EACA,OAAOH,oBAAoB;AAC7B;AAEA,OAAO,SAASI,8BAA8BA,CAAA,EAAG;EAC/C,IAAI,CAACJ,oBAAoB,EAAE;IACzBD,SAAS,CAAC,CAAC,gCAAgC,CAAC,CAAC,CAC3C,OAAO,EACP,oHACF,CAAC;EACH;EACA,OAAOC,oBAAoB;AAC7B","ignoreList":[]}
1
+ {"version":3,"names":["videoLoggerSystem","expoNotificationsLib","require","getExpoNotificationsLib","Error","getExpoNotificationsLibNoThrow","getLogger","debug"],"sourceRoot":"../../../../../src","sources":["utils/push/libs/expoNotifications.ts"],"mappings":"AACA,SAASA,iBAAiB,QAAQ,yBAAyB;AAM3D,IAAIC,oBAAsD;AAE1D,IAAI;EACFA,oBAAoB,GAAGC,OAAO,CAAC,oBAAoB,CAAC;AACtD,CAAC,CAAC,MAAM,CAAC;AAET,OAAO,SAASC,uBAAuBA,CAAA,EAAG;EACxC,IAAI,CAACF,oBAAoB,EAAE;IACzB,MAAMG,KAAK,CACT,oMACF,CAAC;EACH;EACA,OAAOH,oBAAoB;AAC7B;AAEA,OAAO,SAASI,8BAA8BA,CAAA,EAAG;EAC/C,IAAI,CAACJ,oBAAoB,EAAE;IACzBD,iBAAiB,CACdM,SAAS,CAAC,gCAAgC,CAAC,CAC3CC,KAAK,CACJ,oHACF,CAAC;EACL;EACA,OAAON,oBAAoB;AAC7B","ignoreList":[]}
@@ -1,5 +1,5 @@
1
- import { getLogger } from '@stream-io/video-client';
2
1
  import { lib } from './lib';
2
+ import { videoLoggerSystem } from '@stream-io/video-client';
3
3
  const INSTALLATION_INSTRUCTION = 'Please see https://rnfirebase.io/messaging/usage#installation for installation instructions';
4
4
  export function getFirebaseMessagingLib() {
5
5
  if (!lib) {
@@ -9,8 +9,8 @@ export function getFirebaseMessagingLib() {
9
9
  }
10
10
  export function getFirebaseMessagingLibNoThrow(isExpo) {
11
11
  if (!lib) {
12
- const logger = getLogger(['getFirebaseMessagingLibNoThrow']);
13
- logger('debug', `${isExpo ? 'In Expo, @react-native-firebase/messaging library is required to receive ringing notifications in app killed state for Android.' : ''}${INSTALLATION_INSTRUCTION}`);
12
+ const logger = videoLoggerSystem.getLogger('getFirebaseMessagingLibNoThrow');
13
+ logger.debug(`${isExpo ? 'In Expo, @react-native-firebase/messaging library is required to receive ringing notifications in app killed state for Android.' : ''}${INSTALLATION_INSTRUCTION}`);
14
14
  }
15
15
  return lib;
16
16
  }
@@ -1 +1 @@
1
- {"version":3,"names":["getLogger","lib","INSTALLATION_INSTRUCTION","getFirebaseMessagingLib","Error","getFirebaseMessagingLibNoThrow","isExpo","logger"],"sourceRoot":"../../../../../../src","sources":["utils/push/libs/firebaseMessaging/index.ts"],"mappings":"AAAA,SAASA,SAAS,QAAQ,yBAAyB;AACnD,SAASC,GAAG,QAAmB,OAAO;AAKtC,MAAMC,wBAAwB,GAC5B,6FAA6F;AAE/F,OAAO,SAASC,uBAAuBA,CAAA,EAAG;EACxC,IAAI,CAACF,GAAG,EAAE;IACR,MAAMG,KAAK,CACT,qDAAqD,GACnDF,wBACJ,CAAC;EACH;EACA,OAAOD,GAAG;AACZ;AAEA,OAAO,SAASI,8BAA8BA,CAACC,MAAe,EAAE;EAC9D,IAAI,CAACL,GAAG,EAAE;IACR,MAAMM,MAAM,GAAGP,SAAS,CAAC,CAAC,gCAAgC,CAAC,CAAC;IAC5DO,MAAM,CACJ,OAAO,EACP,GACED,MAAM,GACF,iIAAiI,GACjI,EAAE,GACLJ,wBAAwB,EAC7B,CAAC;EACH;EACA,OAAOD,GAAG;AACZ","ignoreList":[]}
1
+ {"version":3,"names":["lib","videoLoggerSystem","INSTALLATION_INSTRUCTION","getFirebaseMessagingLib","Error","getFirebaseMessagingLibNoThrow","isExpo","logger","getLogger","debug"],"sourceRoot":"../../../../../../src","sources":["utils/push/libs/firebaseMessaging/index.ts"],"mappings":"AAAA,SAASA,GAAG,QAAmB,OAAO;AACtC,SAASC,iBAAiB,QAAQ,yBAAyB;AAK3D,MAAMC,wBAAwB,GAC5B,6FAA6F;AAE/F,OAAO,SAASC,uBAAuBA,CAAA,EAAG;EACxC,IAAI,CAACH,GAAG,EAAE;IACR,MAAMI,KAAK,CACT,qDAAqD,GACnDF,wBACJ,CAAC;EACH;EACA,OAAOF,GAAG;AACZ;AAEA,OAAO,SAASK,8BAA8BA,CAACC,MAAe,EAAE;EAC9D,IAAI,CAACN,GAAG,EAAE;IACR,MAAMO,MAAM,GAAGN,iBAAiB,CAACO,SAAS,CACxC,gCACF,CAAC;IACDD,MAAM,CAACE,KAAK,CACV,GACEH,MAAM,GACF,iIAAiI,GACjI,EAAE,GACLJ,wBAAwB,EAC7B,CAAC;EACH;EACA,OAAOF,GAAG;AACZ","ignoreList":[]}
@@ -1,6 +1,6 @@
1
- import { getLogger } from '@stream-io/video-client';
2
1
  import { PermissionsAndroid } from 'react-native';
3
2
  import { lib } from './lib';
3
+ import { videoLoggerSystem } from '@stream-io/video-client';
4
4
  var AndroidForegroundServiceType = /*#__PURE__*/function (AndroidForegroundServiceType) {
5
5
  AndroidForegroundServiceType[AndroidForegroundServiceType["FOREGROUND_SERVICE_TYPE_CAMERA"] = 64] = "FOREGROUND_SERVICE_TYPE_CAMERA";
6
6
  AndroidForegroundServiceType[AndroidForegroundServiceType["FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE"] = 16] = "FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE";
@@ -28,8 +28,8 @@ export function getNotifeeLibThrowIfNotInstalledForPush() {
28
28
  }
29
29
  export function getNotifeeLibNoThrowForKeepCallAlive() {
30
30
  if (!lib) {
31
- const logger = getLogger(['getNotifeeLibNoThrow']);
32
- logger('info', `${'@notifee/react-native library not installed. It is required to keep call alive in the background for Android. '}${INSTALLATION_INSTRUCTION}`);
31
+ const logger = videoLoggerSystem.getLogger('getNotifeeLibNoThrow');
32
+ logger.info(`${'@notifee/react-native library not installed. It is required to keep call alive in the background for Android. '}${INSTALLATION_INSTRUCTION}`);
33
33
  }
34
34
  return lib;
35
35
  }
@@ -1 +1 @@
1
- {"version":3,"names":["getLogger","PermissionsAndroid","lib","AndroidForegroundServiceType","INSTALLATION_INSTRUCTION","getNotifeeLibThrowIfNotInstalledForPush","Error","getNotifeeLibNoThrowForKeepCallAlive","logger","getKeepCallAliveForegroundServiceTypes","types","hasCameraPermission","check","PERMISSIONS","CAMERA","push","FOREGROUND_SERVICE_TYPE_CAMERA","hasMicrophonePermission","RECORD_AUDIO","FOREGROUND_SERVICE_TYPE_MICROPHONE","hasConnectionPermission","BLUETOOTH_CONNECT","FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE","length","FOREGROUND_SERVICE_TYPE_DATA_SYNC","getIncomingCallForegroundServiceTypes","FOREGROUND_SERVICE_TYPE_SHORT_SERVICE"],"sourceRoot":"../../../../../../src","sources":["utils/push/libs/notifee/index.ts"],"mappings":"AAAA,SAASA,SAAS,QAAQ,yBAAyB;AACnD,SAASC,kBAAkB,QAAQ,cAAc;AACjD,SAASC,GAAG,QAAmB,OAAO;AAAC,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,CAA5B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mB,wCAC/B,CAAC;EACH;EACA,IAAIZ,KAAK,CAACa,MAAM,KAAK,CAAC,EAAE;IACtBb,KAAK,CAACK,IAAI,CAACZ,4BAA4B,CAACqB,iCAAiC,CAAC;EAC5E;EACA,OAAOd,KAAK;AACd;AAEA,OAAO,SAASe,qCAAqCA,CAAA,EAAG;EACtD,MAAMf,KAAqC,GAAG,CAC5CP,4BAA4B,CAACuB,qCAAqC,CACnE;EACD,OAAOhB,KAAK;AACd","ignoreList":[]}
1
+ {"version":3,"names":["PermissionsAndroid","lib","videoLoggerSystem","AndroidForegroundServiceType","INSTALLATION_INSTRUCTION","getNotifeeLibThrowIfNotInstalledForPush","Error","getNotifeeLibNoThrowForKeepCallAlive","logger","getLogger","info","getKeepCallAliveForegroundServiceTypes","types","hasCameraPermission","check","PERMISSIONS","CAMERA","push","FOREGROUND_SERVICE_TYPE_CAMERA","hasMicrophonePermission","RECORD_AUDIO","FOREGROUND_SERVICE_TYPE_MICROPHONE","hasConnectionPermission","BLUETOOTH_CONNECT","FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE","length","FOREGROUND_SERVICE_TYPE_DATA_SYNC","getIncomingCallForegroundServiceTypes","FOREGROUND_SERVICE_TYPE_SHORT_SERVICE"],"sourceRoot":"../../../../../../src","sources":["utils/push/libs/notifee/index.ts"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,cAAc;AACjD,SAASC,GAAG,QAAmB,OAAO;AACtC,SAASC,iBAAiB,QAAQ,yBAAyB;AAAC,IAIvDC,4BAA4B,0BAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA4B;EAA5BA,4BAA4B,CAA5BA,4BAA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KAAK,CAC5Dd,kBAAkB,CAACe,WAAW,CAACQ,iBACjC,CAAC;EACD,IAAID,uBAAuB,EAAE;IAC3BV,KAAK,CAACK,IAAI,CACRd,4BAA4B,CAACqB,wCAC/B,CAAC;EACH;EACA,IAAIZ,KAAK,CAACa,MAAM,KAAK,CAAC,EAAE;IACtBb,KAAK,CAACK,IAAI,CAACd,4BAA4B,CAACuB,iCAAiC,CAAC;EAC5E;EACA,OAAOd,KAAK;AACd;AAEA,OAAO,SAASe,qCAAqCA,CAAA,EAAG;EACtD,MAAMf,KAAqC,GAAG,CAC5CT,4BAA4B,CAACyB,qCAAqC,CACnE;EACD,OAAOhB,KAAK;AACd","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  import { pushAcceptedIncomingCallCId$, voipCallkeepAcceptedCallOnNativeDialerMap$, voipCallkeepCallOnForegroundMap$, voipPushNotificationCallCId$ } from './internal/rxSubjects';
2
- import { getLogger, RxUtils } from '@stream-io/video-client';
2
+ import { RxUtils, videoLoggerSystem } from '@stream-io/video-client';
3
3
  import { getCallKeepLib, getVoipPushNotificationLib } from './libs';
4
4
  import { clearPushWSEventSubscriptions, processCallFromPushInBackground } from './internal/utils';
5
5
  import { AppState, NativeModules, Platform } from 'react-native';
@@ -13,10 +13,10 @@ export function setupIosCallKeepEvents(pushConfig) {
13
13
  }
14
14
  if (!pushConfig.android.incomingCallChannel) {
15
15
  // TODO: remove this check and find a better way once we have telecom integration for android
16
- getLogger(['setupIosCallKeepEvents'])('debug', 'android incomingCallChannel is not defined, so skipping the setupIosCallKeepEvents');
16
+ videoLoggerSystem.getLogger('setupIosCallKeepEvents').debug('android incomingCallChannel is not defined, so skipping the setupIosCallKeepEvents');
17
17
  return;
18
18
  }
19
- const logger = getLogger(['setupIosCallKeepEvents']);
19
+ const logger = videoLoggerSystem.getLogger('setupIosCallKeepEvents');
20
20
  const callkeep = getCallKeepLib();
21
21
  async function getCallCid(callUUID) {
22
22
  try {
@@ -25,24 +25,24 @@ export function setupIosCallKeepEvents(pushConfig) {
25
25
  // update it with this call_cid
26
26
  const voipPushNotificationCallCId = RxUtils.getCurrentValue(voipPushNotificationCallCId$);
27
27
  if (!voipPushNotificationCallCId) {
28
- logger('debug', `voipPushNotificationCallCId$ is empty, updating it with the call_cid: ${call_cid} for callUUID: ${callUUID}`);
28
+ logger.debug(`voipPushNotificationCallCId$ is empty, updating it with the call_cid: ${call_cid} for callUUID: ${callUUID}`);
29
29
  voipPushNotificationCallCId$.next(call_cid);
30
30
  }
31
31
  return call_cid;
32
32
  } catch {
33
- logger('debug', `Error in getting call cid from native module for callUUID: ${callUUID} - probably the call was already processed, so ignoring this callkeep event`);
33
+ logger.debug(`Error in getting call cid from native module for callUUID: ${callUUID} - probably the call was already processed, so ignoring this callkeep event`);
34
34
  }
35
35
  return undefined;
36
36
  }
37
37
  function answerCall(callUUID) {
38
38
  getCallCid(callUUID).then(call_cid => {
39
- logger('debug', `answerCall event with call_cid: ${call_cid}`);
39
+ logger.debug(`answerCall event with call_cid: ${call_cid}`);
40
40
  iosCallkeepAcceptCall(call_cid, callUUID);
41
41
  });
42
42
  }
43
43
  function endCall(callUUID) {
44
44
  getCallCid(callUUID).then(call_cid => {
45
- logger('debug', `endCall event with call_cid: ${call_cid}`);
45
+ logger.debug(`endCall event with call_cid: ${call_cid}`);
46
46
  iosCallkeepRejectCall(call_cid, callUUID, pushConfig);
47
47
  });
48
48
  }
@@ -50,7 +50,7 @@ export function setupIosCallKeepEvents(pushConfig) {
50
50
  const voipPushNotification = getVoipPushNotificationLib();
51
51
  // @ts-expect-error - call_cid is not part of RNCallKeepEventPayload
52
52
  const call_cid = payload?.call_cid;
53
- logger('debug', `didDisplayIncomingCall event with callUUID: ${callUUID} call_cid: ${call_cid}`);
53
+ logger.debug(`didDisplayIncomingCall event with callUUID: ${callUUID} call_cid: ${call_cid}`);
54
54
  if (call_cid) {
55
55
  if (AppState.currentState === 'background') {
56
56
  processCallFromPushInBackground(pushConfig, call_cid, 'backgroundDelivered');
@@ -1 +1 @@
1
- {"version":3,"names":["pushAcceptedIncomingCallCId$","voipCallkeepAcceptedCallOnNativeDialerMap$","voipCallkeepCallOnForegroundMap$","voipPushNotificationCallCId$","getLogger","RxUtils","getCallKeepLib","getVoipPushNotificationLib","clearPushWSEventSubscriptions","processCallFromPushInBackground","AppState","NativeModules","Platform","setPushLogoutCallback","setupIosCallKeepEvents","pushConfig","OS","ios","pushProviderName","android","incomingCallChannel","logger","callkeep","getCallCid","callUUID","call_cid","StreamVideoReactNative","getIncomingCallCid","voipPushNotificationCallCId","getCurrentValue","next","undefined","answerCall","then","iosCallkeepAcceptCall","endCall","iosCallkeepRejectCall","didDisplayIncomingCall","payload","voipPushNotification","currentState","uuid","cid","onVoipNotificationCompleted","remove","removeAnswerCall","addEventListener","removeEndCall","removeDisplayIncomingCall","removeDidLoadWithEvents","events","Array","isArray","length","forEach","event","name","data","callUUIDFromCallkeep","shouldProcessCallFromCallkeep","removeIncomingCall"],"sourceRoot":"../../../../src","sources":["utils/push/setupIosCallKeepEvents.ts"],"mappings":"AAAA,SACEA,4BAA4B,EAC5BC,0CAA0C,EAC1CC,gCAAgC,EAChCC,4BAA4B,QACvB,uBAAuB;AAC9B,SAASC,SAAS,EAAEC,OAAO,QAAQ,yBAAyB;AAC5D,SAASC,cAAc,EAAEC,0BAA0B,QAAQ,QAAQ;AAEnE,SACEC,6BAA6B,EAC7BC,+BAA+B,QAC1B,kBAAkB;AACzB,SAASC,QAAQ,EAAEC,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAChE,SAASC,qBAAqB,QAAQ,gCAAgC;AAItE;AACA;AACA;AACA,OAAO,SAASC,sBAAsBA,CACpCC,UAAkD,EAClD;EACA,IAAIH,QAAQ,CAACI,EAAE,KAAK,KAAK,IAAI,CAACD,UAAU,CAACE,GAAG,CAACC,gBAAgB,EAAE;IAC7D;EACF;EACA,IAAI,CAACH,UAAU,CAACI,OAAO,CAACC,mBAAmB,EAAE;IAC3C;IACAhB,SA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AAC4C,6BAA6B,CAAClC,QAAQ,EAAEiC,oBAAoB,CAAC,EAAE;IAClE;EACF;EACAlD,6BAA6B,CAACiB,QAAQ,CAAC;EACvC;EACA,MAAMG,2BAA2B,GAAGvB,OAAO,CAACwB,eAAe,CACzD1B,4BACF,CAAC;EACD,IAAIyB,2BAA2B,KAAKH,QAAQ,EAAE;IAC5CxB,0CAA0C,CAAC6B,IAAI,CAACC,SAAS,CAAC;IAC1D7B,gCAAgC,CAAC4B,IAAI,CAACC,SAAS,CAAC;IAChD5B,4BAA4B,CAAC2B,IAAI,CAACC,SAAS,CAAC;EAC9C;EAEA,MAAMtB,+BAA+B,CAACM,UAAU,EAAEU,QAAQ,EAAE,SAAS,CAAC;EACtE,MAAMd,aAAa,CAACe,sBAAsB,EAAEkC,kBAAkB,CAACnC,QAAQ,CAAC;AAC1E,CAAC;;AAED;AACA;AACA;AACA;AACA,MAAMkC,6BAA6B,GAAGA,CACpClC,QAA4B,EAC5BiC,oBAA4B,KACL;EACvB,IAAI,CAACjC,QAAQ,IAAI,CAACiC,oBAAoB,EAAE;IACtC,OAAO,KAAK;EACd;EACA,OAAO,IAAI;AACb,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["pushAcceptedIncomingCallCId$","voipCallkeepAcceptedCallOnNativeDialerMap$","voipCallkeepCallOnForegroundMap$","voipPushNotificationCallCId$","RxUtils","videoLoggerSystem","getCallKeepLib","getVoipPushNotificationLib","clearPushWSEventSubscriptions","processCallFromPushInBackground","AppState","NativeModules","Platform","setPushLogoutCallback","setupIosCallKeepEvents","pushConfig","OS","ios","pushProviderName","android","incomingCallChannel","getLogger","debug","logger","callkeep","getCallCid","callUUID","call_cid","StreamVideoReactNative","getIncomingCallCid","voipPushNotificationCallCId","getCurrentValue","next","undefined","answerCall","then","iosCallkeepAcceptCall","endCall","iosCallkeepRejectCall","didDisplayIncomingCall","payload","voipPushNotification","currentState","uuid","cid","onVoipNotificationCompleted","remove","removeAnswerCall","addEventListener","removeEndCall","removeDisplayIncomingCall","removeDidLoadWithEvents","events","Array","isArray","length","forEach","event","name","data","callUUIDFromCallkeep","shouldProcessCallFromCallkeep","removeIncomingCall"],"sourceRoot":"../../../../src","sources":["utils/push/setupIosCallKeepEvents.ts"],"mappings":"AAAA,SACEA,4BAA4B,EAC5BC,0CAA0C,EAC1CC,gCAAgC,EAChCC,4BAA4B,QACvB,uBAAuB;AAC9B,SAASC,OAAO,EAAEC,iBAAiB,QAAQ,yBAAyB;AACpE,SAASC,cAAc,EAAEC,0BAA0B,QAAQ,QAAQ;AAEnE,SACEC,6BAA6B,EAC7BC,+BAA+B,QAC1B,kBAAkB;AACzB,SAASC,QAAQ,EAAEC,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAChE,SAASC,qBAAqB,QAAQ,gCAAgC;AAItE;AACA;AACA;AACA,OAAO,SAASC,sBAAsBA,CACpCC,UAAkD,EAClD;EACA,IAAIH,QAAQ,CAACI,EAAE,KAAK,KAAK,IAAI,CAACD,UAAU,CAACE,GAAG,CAACC,gBAAgB,EAAE;IAC7D;EACF;EACA,IAAI,CAACH,UAAU,CAACI,OAAO,CAACC,mBAAmB,EAAE;IAC3C;IACAf,iBAAiB,CACdgB,SAAS,CAAC,wBAAwB,CAAC,CACnCC,KAAK,CACJ,oFACF,CAAC;IACH;EACF;EACA,MAAMC,MAAM,GAAGlB,iBAAiB,CAACgB,SAAS,CAAC,wBAAwB,CAAC;EACpE,MAAMG,QAAQ,GAAGlB,cAAc,CAAC,CAAC;EAEjC,eAAemB,UAAUA,CAACC,QAAgB,EAA+B;IACvE,IAAI;MACF,MAAMC,QAAQ,GACZ,MAAMhB,aAAa,CAACiB,sBAAsB,CAACC,kBAAkB,CAACH,QAAQ,CAAC;MACzE;MACA;MACA,MAAMI,2BAA2B,GAAG1B,OAAO,CAAC2B,eAAe,CACzD5B,4BACF,CAAC;MACD,IAAI,CAAC2B,2BAA2B,EAAE;QAChCP,MAAM,CAACD,KAAK,CACV,yEAAyEK,QAAQ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,kBAAkB,CAACnC,QAAQ,CAAC;AAC1E,CAAC;;AAED;AACA;AACA;AACA;AACA,MAAMkC,6BAA6B,GAAGA,CACpClC,QAA4B,EAC5BiC,oBAA4B,KACL;EACvB,IAAI,CAACjC,QAAQ,IAAI,CAACiC,oBAAoB,EAAE;IACtC,OAAO,KAAK;EACd;EACA,OAAO,IAAI;AACb,CAAC","ignoreList":[]}
@@ -2,24 +2,24 @@ import { getVoipPushNotificationLib } from './libs';
2
2
  import { Platform } from 'react-native';
3
3
  import { onVoipNotificationReceived } from './internal/ios';
4
4
  import { setPushLogoutCallback } from '../internal/pushLogoutCallback';
5
- import { getLogger } from '@stream-io/video-client';
5
+ import { videoLoggerSystem } from '@stream-io/video-client';
6
6
  export function setupIosVoipPushEvents(pushConfig) {
7
7
  if (Platform.OS !== 'ios' || !pushConfig.ios?.pushProviderName) {
8
8
  return;
9
9
  }
10
- const logger = getLogger(['setupIosVoipPushEvents']);
10
+ const logger = videoLoggerSystem.getLogger('setupIosVoipPushEvents');
11
11
  if (!pushConfig.ios.pushProviderName) {
12
12
  // TODO: remove this check and find a better way once we have telecom integration for android
13
- logger('debug', 'ios pushProviderName is not defined, so skipping the setupIosVoipPushEvents');
13
+ logger.debug('ios pushProviderName is not defined, so skipping the setupIosVoipPushEvents');
14
14
  return;
15
15
  }
16
16
  const voipPushNotification = getVoipPushNotificationLib();
17
- logger('debug', 'notification event listener added');
17
+ logger.debug('notification event listener added');
18
18
  voipPushNotification.addEventListener('notification', notification => {
19
19
  onVoipNotificationReceived(notification, pushConfig);
20
20
  });
21
21
  setPushLogoutCallback(async () => {
22
- getLogger(['setPushLogoutCallback'])('debug', 'notification event listener removed');
22
+ videoLoggerSystem.getLogger('setPushLogoutCallback').debug('notification event listener removed');
23
23
  voipPushNotification.removeEventListener('notification');
24
24
  });
25
25
  }
@@ -1 +1 @@
1
- {"version":3,"names":["getVoipPushNotificationLib","Platform","onVoipNotificationReceived","setPushLogoutCallback","getLogger","setupIosVoipPushEvents","pushConfig","OS","ios","pushProviderName","logger","voipPushNotification","addEventListener","notification","removeEventListener"],"sourceRoot":"../../../../src","sources":["utils/push/setupIosVoipPushEvents.ts"],"mappings":"AAAA,SAASA,0BAA0B,QAAQ,QAAQ;AAEnD,SAASC,QAAQ,QAAQ,cAAc;AACvC,SAASC,0BAA0B,QAAQ,gBAAgB;AAC3D,SAASC,qBAAqB,QAAQ,gCAAgC;AACtE,SAASC,SAAS,QAAQ,yBAAyB;AAGnD,OAAO,SAASC,sBAAsBA,CACpCC,UAAkD,EAClD;EACA,IAAIL,QAAQ,CAACM,EAAE,KAAK,KAAK,IAAI,CAACD,UAAU,CAACE,GAAG,EAAEC,gBAAgB,EAAE;IAC9D;EACF;EACA,MAAMC,MAAM,GAAGN,SAAS,CAAC,CAAC,wBAAwB,CAAC,CAAC;EACpD,IAAI,CAACE,UAAU,CAACE,GAAG,CAACC,gBAAgB,EAAE;IACpC;IACAC,MAAM,CACJ,OAAO,EACP,6EACF,CAAC;IACD;EACF;EACA,MAAMC,oBAAoB,GAAGX,0BAA0B,CAAC,CAAC;EAEzDU,MAAM,CAAC,OAAO,EAAE,mCAAmC,CAAC;EACpDC,oBAAoB,CAACC,gBAAgB,CAAC,cAAc,EAAGC,YAAY,IAAK;IACtEX,0BAA0B,CAACW,YAAY,EAAEP,UAAU,CAAC;EACtD,CAAC,CAAC;EACFH,qBAAqB,CAAC,YAAY;IAChCC,SAAS,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAClC,OAAO,EACP,qCACF,CAAC;IACDO,oBAAoB,CAACG,mBAAmB,CAAC,cAAc,CAAC;EAC1D,CAAC,CAAC;AACJ","ignoreList":[]}
1
+ {"version":3,"names":["getVoipPushNotificationLib","Platform","onVoipNotificationReceived","setPushLogoutCallback","videoLoggerSystem","setupIosVoipPushEvents","pushConfig","OS","ios","pushProviderName","logger","getLogger","debug","voipPushNotification","addEventListener","notification","removeEventListener"],"sourceRoot":"../../../../src","sources":["utils/push/setupIosVoipPushEvents.ts"],"mappings":"AAAA,SAASA,0BAA0B,QAAQ,QAAQ;AAEnD,SAASC,QAAQ,QAAQ,cAAc;AACvC,SAASC,0BAA0B,QAAQ,gBAAgB;AAC3D,SAASC,qBAAqB,QAAQ,gCAAgC;AAEtE,SAASC,iBAAiB,QAAQ,yBAAyB;AAE3D,OAAO,SAASC,sBAAsBA,CACpCC,UAAkD,EAClD;EACA,IAAIL,QAAQ,CAACM,EAAE,KAAK,KAAK,IAAI,CAACD,UAAU,CAACE,GAAG,EAAEC,gBAAgB,EAAE;IAC9D;EACF;EACA,MAAMC,MAAM,GAAGN,iBAAiB,CAACO,SAAS,CAAC,wBAAwB,CAAC;EACpE,IAAI,CAACL,UAAU,CAACE,GAAG,CAACC,gBAAgB,EAAE;IACpC;IACAC,MAAM,CAACE,KAAK,CACV,6EACF,CAAC;IACD;EACF;EACA,MAAMC,oBAAoB,GAAGb,0BAA0B,CAAC,CAAC;EAEzDU,MAAM,CAACE,KAAK,CAAC,mCAAmC,CAAC;EACjDC,oBAAoB,CAACC,gBAAgB,CAAC,cAAc,EAAGC,YAAY,IAAK;IACtEb,0BAA0B,CAACa,YAAY,EAAET,UAAU,CAAC;EACtD,CAAC,CAAC;EACFH,qBAAqB,CAAC,YAAY;IAChCC,iBAAiB,CACdO,SAAS,CAAC,uBAAuB,CAAC,CAClCC,KAAK,CAAC,qCAAqC,CAAC;IAC/CC,oBAAoB,CAACG,mBAAmB,CAAC,cAAc,CAAC;EAC1D,CAAC,CAAC;AACJ","ignoreList":[]}