From 02e9c375b00aabcfbb1149cd560bf6f6f1c1e370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Gadomski?= Date: Wed, 17 Jun 2026 15:26:46 +0200 Subject: [PATCH 01/19] WIP --- app.json | 5 +++++ .../fishjam-chat/app/room/[roomName].tsx | 1 + examples/mobile-client/voip-call/app/App.tsx | 11 ++++++++++- examples/mobile-client/voip-call/app/app.json | 3 ++- .../voip-call/app/src/callkit/useCallKit.ts | 2 +- 5 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 app.json diff --git a/app.json b/app.json new file mode 100644 index 00000000..c474f5ef --- /dev/null +++ b/app.json @@ -0,0 +1,5 @@ +{ + "android": { + "package": "com.anonymous.fishjamwebsdk" + } +} diff --git a/examples/mobile-client/fishjam-chat/app/room/[roomName].tsx b/examples/mobile-client/fishjam-chat/app/room/[roomName].tsx index 800868df..408b74a1 100644 --- a/examples/mobile-client/fishjam-chat/app/room/[roomName].tsx +++ b/examples/mobile-client/fishjam-chat/app/room/[roomName].tsx @@ -81,6 +81,7 @@ export default function RoomScreen() { enableCamera: true, enableMicrophone: true, enableScreenSharing: true, + onlyAlertOnce: true, }); useCallKitService({ diff --git a/examples/mobile-client/voip-call/app/App.tsx b/examples/mobile-client/voip-call/app/App.tsx index 20c278f9..86a69f0d 100644 --- a/examples/mobile-client/voip-call/app/App.tsx +++ b/examples/mobile-client/voip-call/app/App.tsx @@ -1,13 +1,16 @@ import { FishjamProvider } from '@fishjam-cloud/react-native-client'; import { StatusBar } from 'expo-status-bar'; import { useCallback } from 'react'; -import { StyleSheet, Text } from 'react-native'; +import { Button, StyleSheet, Text } from 'react-native'; import { SafeAreaProvider, SafeAreaView } from 'react-native-safe-area-context'; +import { useCallKit } from '@fishjam-cloud/react-native-webrtc'; import { useCallKitEvent } from './src/callkit'; const EventLog = () => { // TODO: Implement on the native side. + const { reportIncomingCall } = useCallKit(); + useCallKitEvent( 'incoming', useCallback((payload) => {}, []), @@ -29,6 +32,12 @@ const EventLog = () => { CallKit events +