@stream-io/video-react-native-sdk 1.10.17 → 1.10.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +718 -687
- package/dist/commonjs/components/Call/CallContent/RTCViewPipIOS.js +1 -0
- package/dist/commonjs/components/Call/CallContent/RTCViewPipIOS.js.map +1 -1
- package/dist/commonjs/components/Call/CallContent/RTCViewPipNative.js +5 -5
- package/dist/commonjs/components/Call/CallContent/RTCViewPipNative.js.map +1 -1
- package/dist/commonjs/components/Call/Lobby/Lobby.js.map +1 -1
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js +1 -1
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js.map +1 -1
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js +5 -3
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js.map +1 -1
- package/dist/commonjs/contexts/BackgroundFilters.js +1 -1
- package/dist/commonjs/contexts/BackgroundFilters.js.map +1 -1
- package/dist/commonjs/hooks/internal/useCallMediaStreamCleanup.js +0 -1
- package/dist/commonjs/hooks/internal/useCallMediaStreamCleanup.js.map +1 -1
- package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js +4 -4
- package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js +11 -5
- package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
- package/dist/commonjs/hooks/useScreenShareButton.js +1 -3
- package/dist/commonjs/hooks/useScreenShareButton.js.map +1 -1
- package/dist/commonjs/hooks/useTrackDimensions.js +1 -1
- package/dist/commonjs/hooks/useTrackDimensions.js.map +1 -1
- package/dist/commonjs/providers/StreamCall/DeviceStats.js +2 -2
- package/dist/commonjs/providers/StreamCall/DeviceStats.js.map +1 -1
- package/dist/commonjs/utils/internal/optionallibs/gestureHandler.js +1 -1
- package/dist/commonjs/utils/internal/optionallibs/gestureHandler.js.map +1 -1
- package/dist/commonjs/utils/internal/optionallibs/reanimated.js +1 -1
- package/dist/commonjs/utils/internal/optionallibs/reanimated.js.map +1 -1
- package/dist/commonjs/utils/internal/pushLogoutCallback.js +1 -1
- package/dist/commonjs/utils/internal/pushLogoutCallback.js.map +1 -1
- package/dist/commonjs/utils/push/internal/ios.js +104 -0
- package/dist/commonjs/utils/push/internal/ios.js.map +1 -0
- package/dist/commonjs/utils/push/ios.js +15 -107
- package/dist/commonjs/utils/push/ios.js.map +1 -1
- package/dist/commonjs/utils/push/libs/callkeep.js +1 -1
- package/dist/commonjs/utils/push/libs/callkeep.js.map +1 -1
- package/dist/commonjs/utils/push/libs/expoNotifications.js +1 -1
- package/dist/commonjs/utils/push/libs/expoNotifications.js.map +1 -1
- package/dist/commonjs/utils/push/libs/firebaseMessaging/lib.js +1 -1
- package/dist/commonjs/utils/push/libs/firebaseMessaging/lib.js.map +1 -1
- package/dist/commonjs/utils/push/libs/iosPushNotification.js +1 -1
- package/dist/commonjs/utils/push/libs/iosPushNotification.js.map +1 -1
- package/dist/commonjs/utils/push/libs/notifee/lib.js +1 -1
- package/dist/commonjs/utils/push/libs/notifee/lib.js.map +1 -1
- package/dist/commonjs/utils/push/libs/voipPushNotification.js +1 -1
- package/dist/commonjs/utils/push/libs/voipPushNotification.js.map +1 -1
- package/dist/commonjs/utils/push/setupIosCallKeepEvents.js +2 -2
- package/dist/commonjs/utils/push/setupIosCallKeepEvents.js.map +1 -1
- package/dist/commonjs/utils/push/setupIosVoipPushEvents.js +2 -2
- package/dist/commonjs/utils/push/setupIosVoipPushEvents.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/module/components/Call/CallContent/CallContent.js +2 -2
- package/dist/module/components/Call/CallContent/CallContent.js.map +1 -1
- package/dist/module/components/Call/CallContent/RTCViewPipIOS.js +2 -1
- package/dist/module/components/Call/CallContent/RTCViewPipIOS.js.map +1 -1
- package/dist/module/components/Call/CallContent/RTCViewPipNative.js +6 -6
- package/dist/module/components/Call/CallContent/RTCViewPipNative.js.map +1 -1
- package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js +1 -1
- package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
- package/dist/module/components/Call/Lobby/Lobby.js.map +1 -1
- package/dist/module/components/Call/Lobby/LobbyFooter.js +1 -1
- package/dist/module/components/Call/Lobby/LobbyFooter.js.map +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js +4 -4
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js.map +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js +7 -5
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantReaction.js +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantReaction.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/SpeechIndicator.js +1 -1
- package/dist/module/components/Participant/ParticipantView/SpeechIndicator.js.map +1 -1
- package/dist/module/contexts/BackgroundFilters.js +1 -1
- package/dist/module/contexts/BackgroundFilters.js.map +1 -1
- package/dist/module/hooks/internal/useCallMediaStreamCleanup.js +0 -1
- package/dist/module/hooks/internal/useCallMediaStreamCleanup.js.map +1 -1
- package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js +4 -4
- package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js +12 -6
- package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
- package/dist/module/hooks/push/useProcessPushCallEffect.js +1 -1
- package/dist/module/hooks/push/useProcessPushCallEffect.js.map +1 -1
- package/dist/module/hooks/useAndroidKeepCallAliveEffect.js +2 -2
- package/dist/module/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
- package/dist/module/hooks/usePermissionRequest.js +1 -1
- package/dist/module/hooks/usePermissionRequest.js.map +1 -1
- package/dist/module/hooks/useScreenShareButton.js +3 -5
- package/dist/module/hooks/useScreenShareButton.js.map +1 -1
- package/dist/module/hooks/useTrackDimensions.js +2 -2
- package/dist/module/hooks/useTrackDimensions.js.map +1 -1
- package/dist/module/providers/StreamCall/DeviceStats.js +4 -4
- package/dist/module/providers/StreamCall/DeviceStats.js.map +1 -1
- package/dist/module/utils/internal/optionallibs/gestureHandler.js +1 -1
- package/dist/module/utils/internal/optionallibs/gestureHandler.js.map +1 -1
- package/dist/module/utils/internal/optionallibs/reanimated.js +1 -1
- package/dist/module/utils/internal/optionallibs/reanimated.js.map +1 -1
- package/dist/module/utils/internal/pushLogoutCallback.js +1 -1
- package/dist/module/utils/internal/pushLogoutCallback.js.map +1 -1
- package/dist/module/utils/push/android.js +3 -3
- package/dist/module/utils/push/android.js.map +1 -1
- package/dist/module/utils/push/internal/ios.js +97 -0
- package/dist/module/utils/push/internal/ios.js.map +1 -0
- package/dist/module/utils/push/internal/utils.js +1 -1
- package/dist/module/utils/push/internal/utils.js.map +1 -1
- package/dist/module/utils/push/ios.js +18 -109
- package/dist/module/utils/push/ios.js.map +1 -1
- package/dist/module/utils/push/libs/callkeep.js +1 -1
- package/dist/module/utils/push/libs/callkeep.js.map +1 -1
- package/dist/module/utils/push/libs/expoNotifications.js +1 -1
- package/dist/module/utils/push/libs/expoNotifications.js.map +1 -1
- package/dist/module/utils/push/libs/firebaseMessaging/index.js.map +1 -1
- package/dist/module/utils/push/libs/firebaseMessaging/lib.js +1 -1
- package/dist/module/utils/push/libs/firebaseMessaging/lib.js.map +1 -1
- package/dist/module/utils/push/libs/iosPushNotification.js +1 -1
- package/dist/module/utils/push/libs/iosPushNotification.js.map +1 -1
- package/dist/module/utils/push/libs/notifee/index.js.map +1 -1
- package/dist/module/utils/push/libs/notifee/lib.js +1 -1
- package/dist/module/utils/push/libs/notifee/lib.js.map +1 -1
- package/dist/module/utils/push/libs/voipPushNotification.js +1 -1
- package/dist/module/utils/push/libs/voipPushNotification.js.map +1 -1
- package/dist/module/utils/push/setupIosCallKeepEvents.js +3 -4
- package/dist/module/utils/push/setupIosCallKeepEvents.js.map +1 -1
- package/dist/module/utils/push/setupIosVoipPushEvents.js +2 -2
- package/dist/module/utils/push/setupIosVoipPushEvents.js.map +1 -1
- package/dist/module/version.js +1 -1
- package/dist/typescript/components/Call/CallContent/CallContent.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallContent/RTCViewPipIOS.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallContent/RTCViewPipNative.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/AcceptCallButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/CallControls.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/CallControlsButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/HangupCallButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/IncomingCallControls.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/OutgoingCallControls.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/ReactionsButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/RejectCallButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/ScreenShareToggleButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/ToggleAudioPreviewButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/ToggleAudioPublishingButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/ToggleCameraFaceButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/ToggleVideoPreviewButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/ToggleVideoPublishingButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/internal/ReactionsPicker.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallLayout/CallParticipantsGrid.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallLayout/CallParticipantsSpotlight.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallParticipantsList/CallParticipantsList.d.ts.map +1 -1
- package/dist/typescript/components/Call/Lobby/JoinCallButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/Lobby/Lobby.d.ts.map +1 -1
- package/dist/typescript/components/Call/Lobby/LobbyFooter.d.ts.map +1 -1
- package/dist/typescript/components/Call/RingingCallContent/CallLeftIndicator.d.ts.map +1 -1
- package/dist/typescript/components/Call/RingingCallContent/CallPreparingIndicator.d.ts.map +1 -1
- package/dist/typescript/components/Call/RingingCallContent/IncomingCall.d.ts.map +1 -1
- package/dist/typescript/components/Call/RingingCallContent/OutgoingCall.d.ts.map +1 -1
- package/dist/typescript/components/Call/RingingCallContent/RingingCallContent.d.ts.map +1 -1
- package/dist/typescript/components/Call/RingingCallContent/TextBasedIndicator.d.ts.map +1 -1
- package/dist/typescript/components/Call/RingingCallContent/UserInfo.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/HostLivestream/HostLivestream.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamControls/HostLivestreamControls.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamControls/HostStartStreamButton.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamControls/LivestreamMediaControls.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamControls/ViewerLivestreamControls.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamLayout/LivestreamLayout.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamPlayer/LivestreamPlayer.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamTopView/DurationBadge.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamTopView/FollowerCount.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamTopView/HostLivestreamTopView.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamTopView/LiveIndicator.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/ViewerLivestream/ViewerLivestream.d.ts.map +1 -1
- package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.d.ts.map +1 -1
- package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.d.ts.map +1 -1
- package/dist/typescript/components/Participant/FloatingParticipantView/index.d.ts.map +1 -1
- package/dist/typescript/components/Participant/ParticipantView/ParticipantLabel.d.ts.map +1 -1
- package/dist/typescript/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.d.ts.map +1 -1
- package/dist/typescript/components/Participant/ParticipantView/ParticipantReaction.d.ts.map +1 -1
- package/dist/typescript/components/Participant/ParticipantView/ParticipantVideoFallback.d.ts.map +1 -1
- package/dist/typescript/components/Participant/ParticipantView/ParticipantView.d.ts.map +1 -1
- package/dist/typescript/components/Participant/ParticipantView/SpeechIndicator.d.ts.map +1 -1
- package/dist/typescript/components/Participant/ParticipantView/VideoRenderer.d.ts.map +1 -1
- package/dist/typescript/components/utility/Avatar.d.ts.map +1 -1
- package/dist/typescript/components/utility/ScreenShareOverlay.d.ts.map +1 -1
- package/dist/typescript/contexts/BackgroundFilters.d.ts.map +1 -1
- package/dist/typescript/contexts/ThemeContext.d.ts.map +1 -1
- package/dist/typescript/hooks/internal/useCallMediaStreamCleanup.d.ts.map +1 -1
- package/dist/typescript/hooks/push/useIosVoipPushEventsSetupEffect.d.ts.map +1 -1
- package/dist/typescript/hooks/usePaginatedLayoutSortPreset.d.ts.map +1 -1
- package/dist/typescript/hooks/usePermissionNotification.d.ts.map +1 -1
- package/dist/typescript/hooks/useScreenShareButton.d.ts +21 -1
- package/dist/typescript/hooks/useScreenShareButton.d.ts.map +1 -1
- package/dist/typescript/icons/Back.d.ts.map +1 -1
- package/dist/typescript/icons/CameraSwitch.d.ts.map +1 -1
- package/dist/typescript/icons/IconWrapper.d.ts.map +1 -1
- package/dist/typescript/icons/Lock.d.ts.map +1 -1
- package/dist/typescript/icons/Mic.d.ts.map +1 -1
- package/dist/typescript/icons/MicOff.d.ts.map +1 -1
- package/dist/typescript/icons/Phone.d.ts.map +1 -1
- package/dist/typescript/icons/PhoneDown.d.ts.map +1 -1
- package/dist/typescript/icons/PinVertical.d.ts.map +1 -1
- package/dist/typescript/icons/Reaction.d.ts.map +1 -1
- package/dist/typescript/icons/ScreenShare.d.ts.map +1 -1
- package/dist/typescript/icons/ScreenShareIndicator.d.ts.map +1 -1
- package/dist/typescript/icons/Settings.d.ts.map +1 -1
- package/dist/typescript/icons/Spotlight.d.ts.map +1 -1
- package/dist/typescript/icons/StopScreenShare.d.ts.map +1 -1
- package/dist/typescript/icons/ThreeDots.d.ts.map +1 -1
- package/dist/typescript/icons/TopViewBackground.d.ts.map +1 -1
- package/dist/typescript/icons/Video.d.ts.map +1 -1
- package/dist/typescript/icons/VideoSlash.d.ts.map +1 -1
- package/dist/typescript/providers/StreamCall/index.d.ts.map +1 -1
- package/dist/typescript/providers/StreamVideo.d.ts.map +1 -1
- package/dist/typescript/utils/hooks/usePrevious.d.ts.map +1 -1
- package/dist/typescript/utils/index.d.ts.map +1 -1
- package/dist/typescript/utils/internal/optionallibs/gestureHandler.d.ts.map +1 -1
- package/dist/typescript/utils/internal/optionallibs/reanimated.d.ts.map +1 -1
- package/dist/typescript/utils/internal/pushLogoutCallback.d.ts +1 -1
- package/dist/typescript/utils/internal/pushLogoutCallback.d.ts.map +1 -1
- package/dist/typescript/utils/push/android.d.ts +1 -1
- package/dist/typescript/utils/push/android.d.ts.map +1 -1
- package/dist/typescript/utils/push/internal/ios.d.ts +3 -0
- package/dist/typescript/utils/push/internal/ios.d.ts.map +1 -0
- package/dist/typescript/utils/push/internal/utils.d.ts.map +1 -1
- package/dist/typescript/utils/push/ios.d.ts +0 -1
- package/dist/typescript/utils/push/ios.d.ts.map +1 -1
- package/dist/typescript/utils/push/libs/expoNotifications.d.ts +1 -1
- package/dist/typescript/utils/push/libs/expoNotifications.d.ts.map +1 -1
- package/dist/typescript/utils/push/libs/firebaseMessaging/index.d.ts.map +1 -1
- package/dist/typescript/utils/push/libs/iosPushNotification.d.ts +1 -1
- package/dist/typescript/utils/push/libs/iosPushNotification.d.ts.map +1 -1
- package/dist/typescript/utils/push/libs/notifee/index.d.ts.map +1 -1
- package/dist/typescript/utils/push/setupIosCallKeepEvents.d.ts.map +1 -1
- package/dist/typescript/version.d.ts +1 -1
- package/expo-config-plugin/dist/withAndroidManifest.js +0 -1
- package/expo-config-plugin/dist/withAppDelegate.js +1 -1
- package/expo-config-plugin/dist/withIosScreenCapture/withPlistUpdates.js +1 -1
- package/expo-config-plugin/dist/withiOSInfoPlist.js +3 -1
- package/package.json +21 -23
- package/src/components/Call/CallContent/CallContent.tsx +3 -3
- package/src/components/Call/CallContent/RTCViewPipIOS.tsx +6 -4
- package/src/components/Call/CallContent/RTCViewPipNative.tsx +5 -5
- package/src/components/Call/CallControls/CallControlsButton.tsx +1 -1
- package/src/components/Call/CallControls/LobbyControls.tsx +1 -1
- package/src/components/Call/CallControls/ScreenShareToggleButton.tsx +1 -1
- package/src/components/Call/CallControls/internal/ReactionsPicker.tsx +4 -4
- package/src/components/Call/CallLayout/CallParticipantsSpotlight.tsx +1 -1
- package/src/components/Call/CallParticipantsList/CallParticipantsList.tsx +5 -5
- package/src/components/Call/Lobby/JoinCallButton.tsx +1 -1
- package/src/components/Call/Lobby/Lobby.tsx +2 -2
- package/src/components/Call/Lobby/LobbyFooter.tsx +2 -2
- package/src/components/Call/RingingCallContent/UserInfo.tsx +1 -1
- package/src/components/Livestream/HostLivestream/HostLivestream.tsx +1 -1
- package/src/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.tsx +1 -1
- package/src/components/Livestream/LivestreamLayout/LivestreamLayout.tsx +1 -1
- package/src/components/Livestream/LivestreamTopView/DurationBadge.tsx +1 -1
- package/src/components/Livestream/ViewerLivestream/ViewerLivestream.tsx +1 -1
- package/src/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.tsx +10 -10
- package/src/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.tsx +15 -13
- package/src/components/Participant/ParticipantView/ParticipantLabel.tsx +1 -1
- package/src/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.tsx +1 -1
- package/src/components/Participant/ParticipantView/ParticipantReaction.tsx +3 -3
- package/src/components/Participant/ParticipantView/ParticipantView.tsx +1 -1
- package/src/components/Participant/ParticipantView/SpeechIndicator.tsx +3 -3
- package/src/components/Participant/ParticipantView/VideoRenderer.tsx +1 -1
- package/src/contexts/BackgroundFilters.tsx +7 -7
- package/src/contexts/StreamVideoContext.tsx +3 -3
- package/src/contexts/ThemeContext.tsx +2 -2
- package/src/hooks/internal/useCallMediaStreamCleanup.ts +2 -6
- package/src/hooks/push/useInitAndroidTokenAndRest.ts +1 -1
- package/src/hooks/push/useIosCallkeepWithCallingStateEffect.ts +25 -25
- package/src/hooks/push/useIosVoipPushEventsSetupEffect.ts +28 -19
- package/src/hooks/push/useProcessPushCallEffect.ts +8 -8
- package/src/hooks/push/useProcessPushNonRingingCallEffect.ts +1 -1
- package/src/hooks/useAndroidKeepCallAliveEffect.ts +10 -10
- package/src/hooks/useAutoEnterPiPEffect.tsx +2 -2
- package/src/hooks/useIsIosScreenshareBroadcastStarted.ts +2 -2
- package/src/hooks/usePaginatedLayoutSortPreset.ts +1 -1
- package/src/hooks/usePermissionNotification.tsx +1 -1
- package/src/hooks/usePermissionRequest.tsx +4 -4
- package/src/hooks/useScreenShareButton.ts +9 -10
- package/src/hooks/useTrackDimensions.ts +3 -3
- package/src/providers/StreamCall/AppStateListener.tsx +6 -6
- package/src/providers/StreamCall/DeviceStats.tsx +8 -8
- package/src/providers/StreamVideo.tsx +1 -1
- package/src/utils/StreamVideoRN/index.ts +4 -4
- package/src/utils/StreamVideoRN/types.ts +2 -2
- package/src/utils/enterPiPAndroid.ts +1 -1
- package/src/utils/index.ts +2 -2
- package/src/utils/internal/newNotificationCallbacks.ts +3 -3
- package/src/utils/internal/optionallibs/gestureHandler.ts +1 -1
- package/src/utils/internal/optionallibs/reanimated.ts +1 -1
- package/src/utils/internal/pushLogoutCallback.ts +1 -1
- package/src/utils/push/android.ts +33 -33
- package/src/utils/push/internal/ios.ts +133 -0
- package/src/utils/push/internal/utils.ts +10 -10
- package/src/utils/push/ios.ts +38 -164
- package/src/utils/push/libs/callkeep.ts +2 -2
- package/src/utils/push/libs/expoNotifications.ts +5 -5
- package/src/utils/push/libs/firebaseMessaging/index.ts +3 -3
- package/src/utils/push/libs/firebaseMessaging/lib.ts +1 -1
- package/src/utils/push/libs/iosPushNotification.ts +4 -4
- package/src/utils/push/libs/notifee/index.ts +7 -7
- package/src/utils/push/libs/notifee/lib.ts +1 -1
- package/src/utils/push/libs/voipPushNotification.ts +2 -2
- package/src/utils/push/setupIosCallKeepEvents.ts +17 -18
- package/src/utils/push/setupIosVoipPushEvents.ts +5 -5
- package/src/utils/push/utils.ts +2 -2
- package/src/version.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["getLogger","OwnCapability","useCall","useCallStateHooks","useCallback","useEffect","Alert","usePermissionRequest","call","useHasPermissions","userHasUpdateCallPermissionsCapability","UPDATE_CALL_PERMISSIONS","messageForPermission","userName","permission","SEND_AUDIO","SEND_VIDEO","SCREENSHARE","handleUpdatePermission","request","allow","user","permissions","grantPermissions","id","revokePermissions","err","logger","on","event","type","forEach","alert","name","text","onPress"],"sourceRoot":"../../../src","sources":["hooks/usePermissionRequest.tsx"],"mappings":"AAAA,SACEA,SAAS,EACTC,aAAa,QAER,yBAAyB;AAChC,SAASC,OAAO,EAAEC,iBAAiB,QAAQ,iCAAiC;AAC5E,SAASC,WAAW,EAAEC,SAAS,QAAQ,OAAO;AAC9C,SAASC,KAAK,QAAQ,cAAc;AAEpC,OAAO,MA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D;IACF;IACA,OAAOF,IAAI,CAACoB,EAAE,CAAC,yBAAyB,EAAGC,KAAK,IAAK;MACnD,IAAIA,KAAK,CAACC,IAAI,KAAK,yBAAyB,EAAE;QAC5C;MACF;MACA,MAAM;QAAET,IAAI;QAAEC;MAAY,CAAC,GAAGO,KAAK;MACnCP,WAAW,CAACS,OAAO,CAAEjB,UAAU,IAAK;QAClC,OAAOR,KAAK,CAAC0B,KAAK,CAChB,qBAAqB,EACrBpB,oBAAoB,CAACS,IAAI,CAACY,IAAI,IAAIZ,IAAI,CAACG,EAAE,EAAEV,UAAU,CAAC,EACtD,CACE;UACEoB,IAAI,EAAE,QAAQ;UACdC,OAAO,EAAEjB,sBAAsB,CAACW,KAAK,EAAE,KAAK;QAC9C,CAAC,EACD;UACEK,IAAI,EAAE,OAAO;UACbC,OAAO,EAAEjB,sBAAsB,CAACW,KAAK,EAAE,IAAI;QAC7C,CAAC,CAEL,CAAC;MACH,CAAC,CAAC;IACJ,CAAC,CAAC;EACJ,CAAC,EAAE,CAACrB,IAAI,EAAEE,sCAAsC,EAAEQ,sBAAsB,CAAC,CAAC;AAC5E,CAAC","ignoreList":[]}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { getLogger, hasScreenShare, OwnCapability } from '@stream-io/video-client';
|
|
2
2
|
import { useCall, useCallStateHooks } from '@stream-io/video-react-bindings';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { useEffect, useRef } from 'react';
|
|
4
|
+
import { findNodeHandle, NativeModules, Platform } from 'react-native';
|
|
5
5
|
import { usePrevious } from '../utils/hooks';
|
|
6
6
|
import { useIsIosScreenshareBroadcastStarted } from './useIsIosScreenshareBroadcastStarted';
|
|
7
7
|
|
|
8
8
|
// ios >= 14.0 or android - platform restrictions
|
|
9
|
-
const CanDeviceScreenShare =
|
|
10
|
-
// @ts-ignore
|
|
11
|
-
Number.parseInt(Platform.Version.split('.')[0], 10) >= 14, 10) || Platform.OS === 'android';
|
|
9
|
+
const CanDeviceScreenShare = Platform.OS === 'ios' && Number.parseInt(Platform.Version.split('.')[0], 10) >= 14 || Platform.OS === 'android';
|
|
12
10
|
export const useScreenShareButton = (screenCapturePickerViewiOSRef, onScreenShareStartedHandler, onScreenShareStoppedHandler, onMissingScreenShareStreamPermission) => {
|
|
13
11
|
const call = useCall();
|
|
14
12
|
const {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getLogger","hasScreenShare","OwnCapability","useCall","useCallStateHooks","
|
|
1
|
+
{"version":3,"names":["getLogger","hasScreenShare","OwnCapability","useCall","useCallStateHooks","useEffect","useRef","findNodeHandle","NativeModules","Platform","usePrevious","useIsIosScreenshareBroadcastStarted","CanDeviceScreenShare","OS","Number","parseInt","Version","split","useScreenShareButton","screenCapturePickerViewiOSRef","onScreenShareStartedHandler","onScreenShareStoppedHandler","onMissingScreenShareStreamPermission","call","useLocalParticipant","useCallSettings","useOwnCapabilities","callSettings","ownCapabilities","hasScreenSharingPermissions","includes","SCREENSHARE","isScreenSharingEnabledInCall","screensharing","enabled","onScreenShareStartedHandlerRef","current","onScreenShareStoppedHandlerRef","iosScreenShareStartedFromSystem","prevIosScreenShareStartedFromSystem","localParticipant","hasPublishedScreenShare","screenShare","enable","disable","onPress","logger","reactTag","ScreenCapturePickerViewManager","show","error","undefined"],"sourceRoot":"../../../src","sources":["hooks/useScreenShareButton.ts"],"mappings":"AAAA,SACEA,SAAS,EACTC,cAAc,EACdC,aAAa,QACR,yBAAyB;AAChC,SAASC,OAAO,EAAEC,iBAAiB,QAAQ,iCAAiC;AAC5E,SAAgBC,SAAS,EAAEC,MAAM,QAAQ,OAAO;AAChD,SAASC,cAAc,EAAEC,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AACtE,SAASC,WAAW,QAAQ,gBAAgB;AAC5C,SAASC,mCAAmC,QAAQ,uCAAuC;;AAE3F;AACA,MAAMC,oBAAoB,GACvBH,QAAQ,CAACI,EAAE,KAAK,KAAK,IACpBC,M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,IAAI,CAACZ,4BAA4B,IAAI,CAACpB,oBAAoB,EAAE;IAC1D,OAAO;MAAEiC,OAAO,EAAEM,SAAS;MAAEV,uBAAuB,EAAE;IAAM,CAAC;EAC/D;EACA,OAAO;IAAEI,OAAO;IAAEJ;EAAwB,CAAC;AAC7C,CAAC","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCall } from '@stream-io/video-react-bindings';
|
|
2
|
-
import {
|
|
2
|
+
import { useEffect, useState } from 'react';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* This is a utility hook to get the dimensions of the video track of the participant.
|
|
@@ -24,7 +24,7 @@ export function useTrackDimensions(participant, trackType) {
|
|
|
24
24
|
if (call && isLocalParticipant) {
|
|
25
25
|
const stream = trackType === 'screenShareTrack' ? screenShareStream : videoStream;
|
|
26
26
|
if (!stream) return;
|
|
27
|
-
const [track] = stream
|
|
27
|
+
const [track] = stream.getVideoTracks();
|
|
28
28
|
if (!track) return;
|
|
29
29
|
const {
|
|
30
30
|
width = 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useCall","
|
|
1
|
+
{"version":3,"names":["useCall","useEffect","useState","useTrackDimensions","participant","trackType","trackDimensions","setTrackDimensions","width","height","call","isLocalParticipant","sessionId","videoStream","screenShareStream","stream","track","getVideoTracks","getSettings","prev","startReportingStatsFor","stopReportingStatsFor","sub","state","callStatsReport$","subscribe","report","reportForTracks","participants","trackStats","flatMap","r","streams","filter","kind","stat","frameWidth","frameHeight","unsubscribe"],"sourceRoot":"../../../src","sources":["hooks/useTrackDimensions.ts"],"mappings":"AAIA,SAASA,OAAO,QAAQ,iCAAiC;AACzD,SAASC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;;AAE3C;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,kBAAkBA,CAChCC,WAAmC,EACnCC,SAAyB,EACzB;EACA,MAAM,CAACC,eAAe,EAAEC,kBAAkB,CAAC,GAAGL,QAA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EAAE;IACX,MAAMY,GAAG,GAAGZ,IAAI,CAACa,KAAK,CAACC,gBAAgB,CAACC,SAAS,CAAEC,MAAM,IAAK;MAC5D,IAAI,CAACA,MAAM,EAAE;MACb,MAAMC,eAAe,GAAGD,MAAM,CAACE,YAAY,CAAChB,SAAS,CAAC;MACtD,MAAMiB,UAAU,GAAGF,eAAe,EAC9BG,OAAO,CAAEC,CAAC,IAAKA,CAAC,CAACC,OAAO,CAAC,CAC1BC,MAAM,CAAEjB,KAAK,IAAKA,KAAK,CAACkB,IAAI,KAAK,OAAO,CAAC;MAC5C,IAAI,CAACL,UAAU,EAAE;MACjB,MAAMM,IAAI,GAAGN,UAAU,CAAC,CAAC,CAAC;MAC1B,IAAIM,IAAI,EAAE;QACR,MAAM;UAAEC,UAAU,GAAG,CAAC;UAAEC,WAAW,GAAG;QAAE,CAAC,GAAGF,IAAI;QAChD5B,kBAAkB,CAAEY,IAAI,IAAK;UAC3B,IAAIA,IAAI,CAACX,KAAK,KAAK4B,UAAU,IAAIjB,IAAI,CAACV,MAAM,KAAK4B,WAAW,EAAE;YAC5D,OAAO;cAAE7B,KAAK,EAAE4B,UAAU;cAAE3B,MAAM,EAAE4B;YAAY,CAAC;UACnD;UACA,OAAOlB,IAAI;QACb,CAAC,CAAC;MACJ;IACF,CAAC,CAAC;IACF,OAAO,MAAMG,GAAG,CAACgB,WAAW,CAAC,CAAC;EAChC,CAAC,EAAE,CAAC5B,IAAI,EAAEE,SAAS,CAAC,CAAC;EAErB,OAAON,eAAe;AACxB","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCallStateHooks } from '@stream-io/video-react-bindings';
|
|
2
2
|
import { useEffect } from 'react';
|
|
3
|
-
import { CallingState,
|
|
4
|
-
import { NativeModules, Platform
|
|
3
|
+
import { CallingState, setPowerState, setThermalState } from '@stream-io/video-client';
|
|
4
|
+
import { NativeEventEmitter, NativeModules, Platform } from 'react-native';
|
|
5
5
|
const eventEmitter = NativeModules?.StreamVideoReactNative ? new NativeEventEmitter(NativeModules?.StreamVideoReactNative) : undefined;
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -17,9 +17,9 @@ export const DeviceStats = () => {
|
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
19
|
NativeModules?.StreamVideoReactNative.isLowPowerModeEnabled().then(initialPowerMode => setPowerState(initialPowerMode));
|
|
20
|
-
|
|
20
|
+
const powerModeSubscription = eventEmitter?.addListener('isLowPowerModeEnabled', isLowPowerMode => setPowerState(isLowPowerMode));
|
|
21
21
|
NativeModules?.StreamVideoReactNative.currentThermalState().then(initialState => setThermalState(initialState));
|
|
22
|
-
|
|
22
|
+
const thermalStateSubscription = eventEmitter?.addListener('thermalStateDidChange', thermalState => setThermalState(thermalState));
|
|
23
23
|
|
|
24
24
|
// on android we need to explicitly start and stop the thermal status updates
|
|
25
25
|
if (Platform.OS === 'android') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useCallStateHooks","useEffect","CallingState","setThermalState","
|
|
1
|
+
{"version":3,"names":["useCallStateHooks","useEffect","CallingState","setPowerState","setThermalState","NativeEventEmitter","NativeModules","Platform","eventEmitter","StreamVideoReactNative","undefined","DeviceStats","useCallCallingState","callingState","JOINED","isLowPowerModeEnabled","then","initialPowerMode","powerModeSubscription","addListener","isLowPowerMode","currentThermalState","initialState","thermalStateSubscription","thermalState","OS","startThermalStatusUpdates","remove","stopThermalStatusUpdates"],"sourceRoot":"../../../../src","sources":["providers/StreamCall/DeviceStats.tsx"],"mappings":"AAAA,SAASA,iBAAiB,QAAQ,iCAAiC;AACnE,SAASC,SAAS,QAAQ,OAAO;AACjC,SACEC,YAAY,EACZC,aAAa,EACbC,eAAe,QACV,yBAAyB;AAChC,SAASC,kBAAkB,EAAEC,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAE1E,MAAMC,YAAY,GAAGF,aAAa,EAAEG,sBAAsB,GACtD,IAAIJ,kBAAkB,CAACC,aAAa,EA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|
-
{"version":3,"names":["gestureHandler","require","
|
|
1
|
+
{"version":3,"names":["gestureHandler","require","getGestureHandlerLib","onPackageNotFound"],"sourceRoot":"../../../../../src","sources":["utils/internal/optionallibs/gestureHandler.ts"],"mappings":"AAEA,IAAIA,cAA8C;AAElD,IAAI;EACFA,cAAc,GAAGC,OAAO,CAAC,8BAA8B,CAAC;AAC1D,CAAC,CAAC,MAAM,CAAC;AAET,OAAO,MAAMC,oBAAoB,GAAGA,CAACC,iBAAiB,GAAGA,CAAA,KAAM,CAAC,CAAC,KAAK;EACpE,IAAI,CAACH,cAAc,EAAE;IACnBG,iBAAiB,CAAC,CAAC;EACrB;EACA,OAAOH,cAAc;AACvB,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["reanimated","require","
|
|
1
|
+
{"version":3,"names":["reanimated","require","getReanimatedLib","onPackageNotFound"],"sourceRoot":"../../../../../src","sources":["utils/internal/optionallibs/reanimated.ts"],"mappings":"AAEA,IAAIA,UAAsC;AAE1C,IAAI;EACFA,UAAU,GAAGC,OAAO,CAAC,yBAAyB,CAAC;AACjD,CAAC,CAAC,MAAM,CAAC;AAET,OAAO,MAAMC,gBAAgB,GAAGA,CAACC,iBAAiB,GAAGA,CAAA,KAAM,CAAC,CAAC,KAAK;EAChE,IAAI,CAACH,UAAU,EAAE;IACfG,iBAAiB,CAAC,CAAC;EACrB;EACA,OAAOH,UAAU;AACnB,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["pushLogoutCallbacks","setPushLogoutCallback","callback","current","push"],"sourceRoot":"../../../../src","sources":["utils/internal/pushLogoutCallback.ts"],"mappings":"AAMA,
|
|
1
|
+
{"version":3,"names":["pushLogoutCallbacks","setPushLogoutCallback","callback","current","push"],"sourceRoot":"../../../../src","sources":["utils/internal/pushLogoutCallback.ts"],"mappings":"AAMA,MAAMA,mBAAwC,GAAG,CAAC,CAAC;AAEnD,OAAO,MAAMC,qBAAqB,GAAIC,QAAkB,IAAK;EAC3D,IAAI,CAACF,mBAAmB,CAACG,OAAO,EAAE;IAChCH,mBAAmB,CAACG,OAAO,GAAG,CAACD,QAAQ,CAAC;EAC1C,CAAC,MAAM;IACLF,mBAAmB,CAACG,OAAO,CAACC,IAAI,CAACF,QAAQ,CAAC;EAC5C;AACF,CAAC;AAED,eAAeF,mBAAmB","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CallingState,
|
|
1
|
+
import { CallingState, getLogger, RxUtils } from '@stream-io/video-client';
|
|
2
2
|
import { AppState, Platform } from 'react-native';
|
|
3
|
-
import {
|
|
4
|
-
import { pushAcceptedIncomingCallCId$,
|
|
3
|
+
import { getExpoNotificationsLib, getExpoNotificationsLibNoThrow, getFirebaseMessagingLib, getFirebaseMessagingLibNoThrow, getIncomingCallForegroundServiceTypes, getNotifeeLibThrowIfNotInstalledForPush } from './libs';
|
|
4
|
+
import { pushAcceptedIncomingCallCId$, pushAndroidBackgroundDeliveredIncomingCallCId$, pushNonRingingCallData$, pushRejectedIncomingCallCId$, pushTappedIncomingCallCId$, pushUnsubscriptionCallbacks$ } from './internal/rxSubjects';
|
|
5
5
|
import { canAddPushWSSubscriptionsRef, clearPushWSEventSubscriptions, processCallFromPushInBackground, shouldCallBeEnded } from './internal/utils';
|
|
6
6
|
import { setPushLogoutCallback } from '../internal/pushLogoutCallback';
|
|
7
7
|
import { getAndroidDefaultRingtoneUrl } from '../getAndroidDefaultRingtoneUrl';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["CallingState","RxUtils","getLogger","AppState","Platform","getFirebaseMessagingLib","getFirebaseMessagingLibNoThrow","getExpoNotificationsLib","getExpoNotificationsLibNoThrow","getNotifeeLibThrowIfNotInstalledForPush","getIncomingCallForegroundServiceTypes","pushAcceptedIncomingCallCId$","pushRejectedIncomingCallCId$","pushTappedIncomingCallCId$","pushNonRingingCallData$","pushUnsubscriptionCallbacks$","pushAndroidBackgroundDeliveredIncomingCallCId$","canAddPushWSSubscriptionsRef","clearPushWSEventSubscriptions","processCallFromPushInBackground","shouldCallBeEnded","setPushLogoutCallback","getAndroidDefaultRingtoneUrl","StreamVideoRN","ACCEPT_CALL_ACTION_ID","DECLINE_CALL_ACTION_ID","lastFirebaseToken","token","userId","initAndroidPushToken","client","pushConfig","setUnsubscribeListener","OS","android","pushProviderName","logger","setDeviceToken","streamClient","_user","id","removeDevice","err","push_provider_name","addDevice","isExpo","expoNotificationsLib","onTapNonRingingCallNotification","subscription","addPushTokenListener","devicePushToken","data","remove","getDevicePushTokenAsync","messaging","incomingCallChannel","unsubscribe","onTokenRefresh","refreshedToken","getToken","firebaseDataHandler","getConfig","push","sender","notifeeLib","notifee","default","settings","getNotificationSettings","authorizationStatus","type","call_cid","created_by_id","receiver_id","shouldCallBeClosed","callToCheck","mustEndCall","canListenToWS","current","currentState","asForegroundService","registerForegroundService","Promise","createStreamVideoClient","stopForegroundService","callFromPush","onRingingCall","_shouldCallBeClosed","unsubscribeFunctions","on","event","_canListenToWS","forEach","fn","state","callingState$","subscribe","callingState","IDLE","LEFT","unsubscriptionCallbacks","getCurrentValue","next","incomingCallNotificationTextGetters","sound","createChannel","getTitle","getBody","createdUserName","created_by_display_name","title","body","channelId","displayNotification","smallIcon","importance","foregroundServiceTypes","ongoing","vibrationPattern","pressAction","launchActivity","actions","category","AndroidCategory","CALL","fullScreenAction","timeoutAfter","cancelDisplayedNotification","callChannel","callNotificationTextGetters","cid","onAndroidNotifeeEvent","isBackground","detail","notification","notificationId","hasObservers","observed","didPressDecline","EventType","ACTION_PRESS","didDismiss","DISMISSED","mustDecline","mustAccept","PRESS","DELIVERED"],"sourceRoot":"../../../../src","sources":["utils/push/android.ts"],"mappings":"AAAA,SAEEA,YAAY,EACZC,OAAO,EAEPC,SAAS,QACJ,yBAAyB;AAChC,SAASC,QAAQ,EAAEC,QAAQ,QAAQ,cAAc;AAKjD,SACEC,uBAAuB,EACvBC,8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vC/I,SAAS,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAClC,OAAO,EACP,kDAAkDqE,QAAQ,EAC5D,CAAC;QACD1D,0BAA0B,CAACyF,IAAI,CAAC/B,QAAQ,CAAC;QACzC;MACF,CAAC,MAAM,IAAI6D,YAAY,IAAI9D,IAAI,KAAKN,UAAU,CAAC2E,SAAS,CAACO,SAAS,EAAE;QAClEhJ,SAAS,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAClC,OAAO,EACP,sEAAsEqE,QAAQ,EAChF,CAAC;QACDvD,8CAA8C,CAACsF,IAAI,CAAC/B,QAAQ,CAAC;QAC7D;MACF;IACF;EACF,CAAC,MAAM;IACL,MAAMP,UAAU,GAAGvD,uCAAuC,CAAC,CAAC;IAC5D,IAAI6D,IAAI,KAAKN,UAAU,CAAC2E,SAAS,CAACM,KAAK,EAAE;MACvC/I,SAAS,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAClC,OAAO,EACP,iDAAiDqE,QAAQ,EAC3D,CAAC;MACDxC,UAAU,CAACgB,+BAA+B,GACxCwB,QAAQ,EACRpB,IAAI,CAACmB,IACP,CAAC;IACH;EACF;AACF,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["CallingState","getLogger","RxUtils","AppState","Platform","getExpoNotificationsLib","getExpoNotificationsLibNoThrow","getFirebaseMessagingLib","getFirebaseMessagingLibNoThrow","getIncomingCallForegroundServiceTypes","getNotifeeLibThrowIfNotInstalledForPush","pushAcceptedIncomingCallCId$","pushAndroidBackgroundDeliveredIncomingCallCId$","pushNonRingingCallData$","pushRejectedIncomingCallCId$","pushTappedIncomingCallCId$","pushUnsubscriptionCallbacks$","canAddPushWSSubscriptionsRef","clearPushWSEventSubscriptions","processCallFromPushInBackground","shouldCallBeEnded","setPushLogoutCallback","getAndroidDefaultRingtoneUrl","StreamVideoRN","ACCEPT_CALL_ACTION_ID","DECLINE_CALL_ACTION_ID","lastFirebaseToken","token","userId","initAndroidPushToken","client","pushConfig","setUnsubscribeListener","OS","android","pushProviderName","logger","setDeviceToken","streamClient","_user","id","removeDevice","err","push_provider_name","addDevice","isExpo","expoNotificationsLib","onTapNonRingingCallNotification","subscription","addPushTokenListener","devicePushToken","data","remove","getDevicePushTokenAsync","messaging","incomingCallChannel","unsubscribe","onTokenRefresh","refreshedToken","getToken","firebaseDataHandler","getConfig","push","sender","notifeeLib","notifee","default","settings","getNotificationSettings","authorizationStatus","type","call_cid","created_by_id","receiver_id","shouldCallBeClosed","callToCheck","mustEndCall","canListenToWS","current","currentState","asForegroundService","registerForegroundService","Promise","createStreamVideoClient","stopForegroundService","callFromPush","onRingingCall","_shouldCallBeClosed","unsubscribeFunctions","on","event","_canListenToWS","forEach","fn","state","callingState$","subscribe","callingState","IDLE","LEFT","unsubscriptionCallbacks","getCurrentValue","next","incomingCallNotificationTextGetters","sound","createChannel","getTitle","getBody","createdUserName","created_by_display_name","title","body","channelId","displayNotification","smallIcon","importance","foregroundServiceTypes","ongoing","vibrationPattern","pressAction","launchActivity","actions","category","AndroidCategory","CALL","fullScreenAction","timeoutAfter","cancelDisplayedNotification","callChannel","callNotificationTextGetters","cid","onAndroidNotifeeEvent","isBackground","detail","notification","notificationId","hasObservers","observed","didPressDecline","EventType","ACTION_PRESS","didDismiss","DISMISSED","mustDecline","mustAccept","PRESS","DELIVERED"],"sourceRoot":"../../../../src","sources":["utils/push/android.ts"],"mappings":"AAAA,SAEEA,YAAY,EACZC,SAAS,EACTC,OAAO,QAEF,yBAAyB;AAChC,SAASC,QAAQ,EAAEC,QAAQ,QAAQ,cAAc;AAKjD,SAEEC,uBAAuB,EACvBC,8BAA8B,EAC9BC,uBAAuB,EACvBC,8BAA8B,EAC9BC,qCAAqC,EACrCC,uCAAuC,QAElC,QAAQ;AACf,SACEC,4BAA4B,EAC5BC,8CAA8C,EAC9CC,uBAAuB,EACvBC,4BAA4B,EAC5BC,0BAA0B,EAC1BC,4BAA4B,QACvB,uBAAuB;AAC9B,SACEC,4BAA4B,EA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O,SAAS,EAAE;QAClEjJ,SAAS,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAClC,OAAO,EACP,sEAAsEsE,QAAQ,EAChF,CAAC;QACD3D,8CAA8C,CAAC0F,IAAI,CAAC/B,QAAQ,CAAC;QAC7D;MACF;IACF;EACF,CAAC,MAAM;IACL,MAAMP,UAAU,GAAGtD,uCAAuC,CAAC,CAAC;IAC5D,IAAI4D,IAAI,KAAKN,UAAU,CAAC2E,SAAS,CAACM,KAAK,EAAE;MACvChJ,SAAS,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAClC,OAAO,EACP,iDAAiDsE,QAAQ,EAC3D,CAAC;MACDxC,UAAU,CAACgB,+BAA+B,GACxCwB,QAAQ,EACRpB,IAAI,CAACmB,IACP,CAAC;IACH;EACF;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { getLogger, RxUtils } from '@stream-io/video-client';
|
|
2
|
+
import { AppState, NativeModules, Platform } from 'react-native';
|
|
3
|
+
import { getCallKeepLib, getVoipPushNotificationLib } from '../libs';
|
|
4
|
+
import { pushUnsubscriptionCallbacks$, voipPushNotificationCallCId$ } from './rxSubjects';
|
|
5
|
+
import { canAddPushWSSubscriptionsRef, shouldCallBeEnded } from './utils';
|
|
6
|
+
export const onVoipNotificationReceived = async (notification, pushConfig) => {
|
|
7
|
+
/* --- Example payload ---
|
|
8
|
+
{
|
|
9
|
+
"aps": {
|
|
10
|
+
"alert": {
|
|
11
|
+
"body": "",
|
|
12
|
+
"title": "Vishal Narkhede is calling you"
|
|
13
|
+
},
|
|
14
|
+
"badge": 0,
|
|
15
|
+
"category": "stream.video",
|
|
16
|
+
"mutable-content": 1
|
|
17
|
+
},
|
|
18
|
+
"stream": {
|
|
19
|
+
"call_cid": "default:ixbm7y0k74pbjnq",
|
|
20
|
+
"call_display_name": "",
|
|
21
|
+
"created_by_display_name": "Vishal Narkhede",
|
|
22
|
+
"created_by_id": "vishalexpo",
|
|
23
|
+
"receiver_id": "santhoshexpo",
|
|
24
|
+
"sender": "stream.video",
|
|
25
|
+
"type": "call.ring",
|
|
26
|
+
"version": "v2"
|
|
27
|
+
}
|
|
28
|
+
} */
|
|
29
|
+
const sender = notification?.stream?.sender;
|
|
30
|
+
const type = notification?.stream?.type;
|
|
31
|
+
// do not process any other notifications other than stream.video or ringing
|
|
32
|
+
if (sender !== 'stream.video' && type !== 'call.ring') {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
const call_cid = notification?.stream?.call_cid;
|
|
36
|
+
if (!call_cid || Platform.OS !== 'ios' || !pushConfig.ios.pushProviderName) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
const logger = getLogger(['setupIosVoipPushEvents']);
|
|
40
|
+
const client = await pushConfig.createStreamVideoClient();
|
|
41
|
+
if (!client) {
|
|
42
|
+
logger('debug', 'client not found, not processing call.ring voip push notification');
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
const callFromPush = await client.onRingingCall(call_cid);
|
|
46
|
+
let uuid = '';
|
|
47
|
+
try {
|
|
48
|
+
uuid = await NativeModules?.StreamVideoReactNative?.getIncomingCallUUid(call_cid);
|
|
49
|
+
} catch (error) {
|
|
50
|
+
logger('error', 'Error in getting call uuid from native module', error);
|
|
51
|
+
}
|
|
52
|
+
if (!uuid) {
|
|
53
|
+
logger('error', `Not processing call.ring push notification, as no uuid found for call_cid: ${call_cid}`);
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
const created_by_id = notification?.stream?.created_by_id;
|
|
57
|
+
const receiver_id = notification?.stream?.receiver_id;
|
|
58
|
+
function closeCallIfNecessary() {
|
|
59
|
+
const {
|
|
60
|
+
mustEndCall,
|
|
61
|
+
callkeepReason
|
|
62
|
+
} = shouldCallBeEnded(callFromPush, created_by_id, receiver_id);
|
|
63
|
+
if (mustEndCall) {
|
|
64
|
+
const callkeep = getCallKeepLib();
|
|
65
|
+
logger('debug', `callkeep.reportEndCallWithUUID for uuid: ${uuid}, call_cid: ${call_cid}, reason: ${callkeepReason}`);
|
|
66
|
+
callkeep.reportEndCallWithUUID(uuid, callkeepReason);
|
|
67
|
+
const voipPushNotification = getVoipPushNotificationLib();
|
|
68
|
+
voipPushNotification.onVoipNotificationCompleted(uuid);
|
|
69
|
+
return true;
|
|
70
|
+
}
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
73
|
+
const closed = closeCallIfNecessary();
|
|
74
|
+
const canListenToWS = () => canAddPushWSSubscriptionsRef.current && AppState.currentState !== 'active';
|
|
75
|
+
if (!closed && canListenToWS()) {
|
|
76
|
+
const unsubscribe = callFromPush.on('all', event => {
|
|
77
|
+
const _canListenToWS = canListenToWS();
|
|
78
|
+
if (!_canListenToWS) {
|
|
79
|
+
logger('debug', `unsubscribe due to event callCid: ${call_cid} canListenToWS: ${_canListenToWS}`, event);
|
|
80
|
+
unsubscribe();
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
const _closed = closeCallIfNecessary();
|
|
84
|
+
if (_closed) {
|
|
85
|
+
logger('debug', `unsubscribe due to event callCid: ${call_cid} canListenToWS: ${_canListenToWS} shouldCallBeClosed: ${_closed}`, event);
|
|
86
|
+
unsubscribe();
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
const unsubscriptionCallbacks = RxUtils.getCurrentValue(pushUnsubscriptionCallbacks$) ?? [];
|
|
90
|
+
pushUnsubscriptionCallbacks$.next([...unsubscriptionCallbacks, unsubscribe]);
|
|
91
|
+
}
|
|
92
|
+
// send the info to this subject, it is listened by callkeep events
|
|
93
|
+
// callkeep events will then accept/reject the call
|
|
94
|
+
logger('debug', `call_cid:${call_cid} uuid:${uuid} received and processed from call.ring push notification`);
|
|
95
|
+
voipPushNotificationCallCId$.next(call_cid);
|
|
96
|
+
};
|
|
97
|
+
//# sourceMappingURL=ios.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getLogger","RxUtils","AppState","NativeModules","Platform","getCallKeepLib","getVoipPushNotificationLib","pushUnsubscriptionCallbacks$","voipPushNotificationCallCId$","canAddPushWSSubscriptionsRef","shouldCallBeEnded","onVoipNotificationReceived","notification","pushConfig","sender","stream","type","call_cid","OS","ios","pushProviderName","logger","client","createStreamVideoClient","callFromPush","onRingingCall","uuid","StreamVideoReactNative","getIncomingCallUUid","error","created_by_id","receiver_id","closeCallIfNecessary","mustEndCall","callkeepReason","callkeep","reportEndCallWithUUID","voipPushNotification","onVoipNotificationCompleted","closed","canListenToWS","current","currentState","unsubscribe","on","event","_canListenToWS","_closed","unsubscriptionCallbacks","getCurrentValue","next"],"sourceRoot":"../../../../../src","sources":["utils/push/internal/ios.ts"],"mappings":"AAAA,SAASA,SAAS,EAAEC,OAAO,QAAQ,yBAAyB;AAC5D,SAASC,QAAQ,EAAEC,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAChE,SAASC,cAAc,EAAEC,0BAA0B,QAAQ,SAAS;AACpE,SACEC,4BAA4B,EAC5BC,4BAA4B,QACvB,cAAc;AACrB,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;EACA,IAAIF,MAAM,KAAK,cAAc,IAAIE,IAAI,KAAK,WAAW,EAAE;IACrD;EACF;EACA,MAAMC,QAAQ,GAAGL,YAAY,EAAEG,MAAM,EAAEE,QAAQ;EAC/C,IAAI,CAACA,QAAQ,IAAIb,QAAQ,CAACc,EAAE,KAAK,KAAK,IAAI,CAACL,UAAU,CAACM,GAAG,CAACC,gB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OAAO,KAAK;EACd;EACA,MAAMa,MAAM,GAAGP,oBAAoB,CAAC,CAAC;EACrC,MAAMQ,aAAa,GAAGA,CAAA,KACpB/B,4BAA4B,CAACgC,OAAO,IAAIvC,QAAQ,CAACwC,YAAY,KAAK,QAAQ;EAC5E,IAAI,CAACH,MAAM,IAAIC,aAAa,CAAC,CAAC,EAAE;IAC9B,MAAMG,WAAW,GAAGnB,YAAY,CAACoB,EAAE,CAAC,KAAK,EAAGC,KAAK,IAAK;MACpD,MAAMC,cAAc,GAAGN,aAAa,CAAC,CAAC;MACtC,IAAI,CAACM,cAAc,EAAE;QACnBzB,MAAM,CACJ,OAAO,EACP,qCAAqCJ,QAAQ,mBAAmB6B,cAAc,EAAE,EAChFD,KACF,CAAC;QACDF,WAAW,CAAC,CAAC;QACb;MACF;MACA,MAAMI,OAAO,GAAGf,oBAAoB,CAAC,CAAC;MACtC,IAAIe,OAAO,EAAE;QACX1B,MAAM,CACJ,OAAO,EACP,qCAAqCJ,QAAQ,mBAAmB6B,cAAc,wBAAwBC,OAAO,EAAE,EAC/GF,KACF,CAAC;QACDF,WAAW,CAAC,CAAC;MACf;IACF,CAAC,CAAC;IACF,MAAMK,uBAAuB,GAC3B/C,OAAO,CAACgD,eAAe,CAAC1C,4BAA4B,CAAC,IAAI,EAAE;IAC7DA,4BAA4B,CAAC2C,IAAI,CAAC,CAChC,GAAGF,uBAAuB,EAC1BL,WAAW,CACZ,CAAC;EACJ;EACA;EACA;EACAtB,MAAM,CACJ,OAAO,EACP,YAAYJ,QAAQ,SAASS,IAAI,0DACnC,CAAC;EACDlB,4BAA4B,CAAC0C,IAAI,CAACjC,QAAQ,CAAC;AAC7C,CAAC","ignoreList":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CallingState,
|
|
1
|
+
import { CallingState, getLogger, RxUtils } from '@stream-io/video-client';
|
|
2
2
|
import { onNewCallNotification } from '../../internal/newNotificationCallbacks';
|
|
3
3
|
import { pushUnsubscriptionCallbacks$ } from './rxSubjects';
|
|
4
4
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["CallingState","
|
|
1
|
+
{"version":3,"names":["CallingState","getLogger","RxUtils","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","getCurrentValue","forEach","cb","next","undefined","canAddPushWSSubscriptionsRef","current"],"sourceRoot":"../../../../../src","sources":["utils/push/internal/utils.ts"],"mappings":"AAAA,SAEEA,YAAY,EACZC,SAAS,EACTC,OAAO,QAEF,yBAAyB;AAKhC,SAASC,qBAAqB,QAAQ,yCAAyC;AAC/E,SAASC,4BAA4B,QAAQ,cAAc;AAM3D;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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AAI,CAAEC,CAAC,IAAKA,CAAC,CAAC1B,GAAG,KAAKG,QAAQ,CAAC;IACxE,IAAIoB,aAAa,EAAE;MACjBjC,YAAY,GAAGiC,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,GAAGvB,SAAS,CAAC,CAAC,gCAAgC,CAAC,CAAC;IAC5DuB,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,GAAGA,CAAA,KAAM;EACjD,MAAMC,uBAAuB,GAAG/C,OAAO,CAACgD,eAAe,CACrD9C,4BACF,CAAC;EACD,IAAI6C,uBAAuB,EAAE;IAC3BA,uBAAuB,CAACE,OAAO,CAAEC,EAAE,IAAKA,EAAE,CAAC,CAAC,CAAC;EAC/C;EACAhD,4BAA4B,CAACiD,IAAI,CAACC,SAAS,CAAC;AAC9C,CAAC;;AAED;AACA;AACA;AACA;AACA,OAAO,MAAMC,4BAA0D,GAAG;EACxEC,OAAO,EAAE;AACX,CAAC","ignoreList":[]}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { pushNonRingingCallData
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { Platform } from 'react-native';
|
|
2
|
+
import { pushNonRingingCallData$ } from './internal/rxSubjects';
|
|
3
|
+
import { getExpoNotificationsLib, getNotifeeLibThrowIfNotInstalledForPush, getPushNotificationIosLib } from './libs';
|
|
4
|
+
import { getLogger } from '@stream-io/video-client';
|
|
5
5
|
import { setPushLogoutCallback } from '../internal/pushLogoutCallback';
|
|
6
6
|
import { StreamVideoRN } from '../StreamVideoRN';
|
|
7
|
-
import { shouldCallBeEnded, canAddPushWSSubscriptionsRef } from './internal/utils';
|
|
8
7
|
let lastApnToken = {
|
|
9
8
|
token: '',
|
|
10
9
|
userId: ''
|
|
@@ -120,18 +119,20 @@ export async function initIosNonVoipToken(client, pushConfig, setUnsubscribeList
|
|
|
120
119
|
};
|
|
121
120
|
if (pushConfig.isExpo) {
|
|
122
121
|
const expoNotificationsLib = getExpoNotificationsLib();
|
|
123
|
-
expoNotificationsLib
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
122
|
+
if (expoNotificationsLib) {
|
|
123
|
+
expoNotificationsLib.getDevicePushTokenAsync().then(devicePushToken => {
|
|
124
|
+
logger('debug', 'Got device token - expoNotificationsLib.getDevicePushTokenAsync', devicePushToken.data);
|
|
125
|
+
setDeviceToken(devicePushToken.data);
|
|
126
|
+
});
|
|
127
|
+
const subscription = expoNotificationsLib.addPushTokenListener(devicePushToken => {
|
|
128
|
+
logger('debug', 'Got device token - expoNotificationsLib.addPushTokenListener', devicePushToken.data);
|
|
129
|
+
setDeviceToken(devicePushToken.data);
|
|
130
|
+
});
|
|
131
|
+
setUnsubscribeListener(() => {
|
|
132
|
+
logger('debug', `removed expo addPushTokenListener`);
|
|
133
|
+
subscription.remove();
|
|
134
|
+
});
|
|
135
|
+
}
|
|
135
136
|
} else {
|
|
136
137
|
const pushNotificationIosLib = getPushNotificationIosLib();
|
|
137
138
|
pushNotificationIosLib.addEventListener('register', token => {
|
|
@@ -144,96 +145,4 @@ export async function initIosNonVoipToken(client, pushConfig, setUnsubscribeList
|
|
|
144
145
|
});
|
|
145
146
|
}
|
|
146
147
|
}
|
|
147
|
-
export const onVoipNotificationReceived = async notification => {
|
|
148
|
-
/* --- Example payload ---
|
|
149
|
-
{
|
|
150
|
-
"aps": {
|
|
151
|
-
"alert": {
|
|
152
|
-
"body": "",
|
|
153
|
-
"title": "Vishal Narkhede is calling you"
|
|
154
|
-
},
|
|
155
|
-
"badge": 0,
|
|
156
|
-
"category": "stream.video",
|
|
157
|
-
"mutable-content": 1
|
|
158
|
-
},
|
|
159
|
-
"stream": {
|
|
160
|
-
"call_cid": "default:ixbm7y0k74pbjnq",
|
|
161
|
-
"call_display_name": "",
|
|
162
|
-
"created_by_display_name": "Vishal Narkhede",
|
|
163
|
-
"created_by_id": "vishalexpo",
|
|
164
|
-
"receiver_id": "santhoshexpo",
|
|
165
|
-
"sender": "stream.video",
|
|
166
|
-
"type": "call.ring",
|
|
167
|
-
"version": "v2"
|
|
168
|
-
}
|
|
169
|
-
} */
|
|
170
|
-
const sender = notification?.stream?.sender;
|
|
171
|
-
const type = notification?.stream?.type;
|
|
172
|
-
// do not process any other notifications other than stream.video or ringing
|
|
173
|
-
if (sender !== 'stream.video' && type !== 'call.ring') {
|
|
174
|
-
return;
|
|
175
|
-
}
|
|
176
|
-
const call_cid = notification?.stream?.call_cid;
|
|
177
|
-
const pushConfig = StreamVideoRN.getConfig().push;
|
|
178
|
-
if (!call_cid || Platform.OS !== 'ios' || !pushConfig) {
|
|
179
|
-
return;
|
|
180
|
-
}
|
|
181
|
-
const logger = getLogger(['setupIosVoipPushEvents']);
|
|
182
|
-
const client = await pushConfig.createStreamVideoClient();
|
|
183
|
-
if (!client) {
|
|
184
|
-
logger('debug', 'client not found, not processing call.ring voip push notification');
|
|
185
|
-
return;
|
|
186
|
-
}
|
|
187
|
-
const callFromPush = await client.onRingingCall(call_cid);
|
|
188
|
-
let uuid = '';
|
|
189
|
-
try {
|
|
190
|
-
uuid = await NativeModules?.StreamVideoReactNative?.getIncomingCallUUid(call_cid);
|
|
191
|
-
} catch (error) {
|
|
192
|
-
logger('error', 'Error in getting call uuid from native module', error);
|
|
193
|
-
}
|
|
194
|
-
if (!uuid) {
|
|
195
|
-
logger('error', `Not processing call.ring push notification, as no uuid found for call_cid: ${call_cid}`);
|
|
196
|
-
return;
|
|
197
|
-
}
|
|
198
|
-
const created_by_id = notification?.stream?.created_by_id;
|
|
199
|
-
const receiver_id = notification?.stream?.receiver_id;
|
|
200
|
-
function closeCallIfNecessary() {
|
|
201
|
-
const {
|
|
202
|
-
mustEndCall,
|
|
203
|
-
callkeepReason
|
|
204
|
-
} = shouldCallBeEnded(callFromPush, created_by_id, receiver_id);
|
|
205
|
-
if (mustEndCall) {
|
|
206
|
-
const callkeep = getCallKeepLib();
|
|
207
|
-
logger('debug', `callkeep.reportEndCallWithUUID for uuid: ${uuid}, call_cid: ${call_cid}, reason: ${callkeepReason}`);
|
|
208
|
-
callkeep.reportEndCallWithUUID(uuid, callkeepReason);
|
|
209
|
-
const voipPushNotification = getVoipPushNotificationLib();
|
|
210
|
-
voipPushNotification.onVoipNotificationCompleted(uuid);
|
|
211
|
-
return true;
|
|
212
|
-
}
|
|
213
|
-
return false;
|
|
214
|
-
}
|
|
215
|
-
const closed = closeCallIfNecessary();
|
|
216
|
-
const canListenToWS = () => canAddPushWSSubscriptionsRef.current && AppState.currentState !== 'active';
|
|
217
|
-
if (!closed && canListenToWS()) {
|
|
218
|
-
const unsubscribe = callFromPush.on('all', event => {
|
|
219
|
-
const _canListenToWS = canListenToWS();
|
|
220
|
-
if (!_canListenToWS) {
|
|
221
|
-
logger('debug', `unsubscribe due to event callCid: ${call_cid} canListenToWS: ${_canListenToWS}`, event);
|
|
222
|
-
unsubscribe();
|
|
223
|
-
return;
|
|
224
|
-
}
|
|
225
|
-
const _closed = closeCallIfNecessary();
|
|
226
|
-
if (_closed) {
|
|
227
|
-
logger('debug', `unsubscribe due to event callCid: ${call_cid} canListenToWS: ${_canListenToWS} shouldCallBeClosed: ${_closed}`, event);
|
|
228
|
-
unsubscribe();
|
|
229
|
-
}
|
|
230
|
-
});
|
|
231
|
-
const unsubscriptionCallbacks = RxUtils.getCurrentValue(pushUnsubscriptionCallbacks$) ?? [];
|
|
232
|
-
pushUnsubscriptionCallbacks$.next([...unsubscriptionCallbacks, unsubscribe]);
|
|
233
|
-
}
|
|
234
|
-
// send the info to this subject, it is listened by callkeep events
|
|
235
|
-
// callkeep events will then accept/reject the call
|
|
236
|
-
logger('debug', `call_cid:${call_cid} uuid:${uuid} received and processed from call.ring push notification`);
|
|
237
|
-
voipPushNotificationCallCId$.next(call_cid);
|
|
238
|
-
};
|
|
239
148
|
//# sourceMappingURL=ios.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
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,yBA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