react-native-webrtc / react-native-callkeep

iOS CallKit framework and Android ConnectionService for React Native
ISC License
926 stars 445 forks source link

Can CallKeep be used with WebRTC #363

Open esinanturan opened 3 years ago

esinanturan commented 3 years ago

I am building a video/audio call app and I am using react-native-webrtc module for this and I want to keep application running in the background and receive incoming calls to show users call ui to accept calls etc. but I am not sure if callkeep is the right module to use for this purpose ( both running foreground service and receiving calls in background or killed app )

sboily commented 3 years ago

Hello, yes you can use it to do that.

esinanturan commented 3 years ago

@sboily But why we have to give permission to PhoneAccounts stuff in android in Whatsapp and Telegram likes apps never ask such a permission

Jerome91410 commented 3 years ago

Take a look at self managed capability.

I patch the current module to avoid the phoneAccount permission based on this PR (with some modifications) https://github.com/react-native-webrtc/react-native-callkeep/pull/310

esinanturan commented 3 years ago

@Jerome91410 Is it possibile to share that patched version of it ?

Jerome91410 commented 3 years ago

It is better to use the PR pushed by luxiliu. My patch only responds to my use cases.

sboily commented 3 years ago

self managed support is now merged in master.