ConnectyCube / connectycube-reactnative-samples

Chat and Video Chat code samples for React Native, ConnectyCube
https://connectycube.com
Apache License 2.0
125 stars 111 forks source link

Call the app when the phone is locked #223

Closed dozsolti closed 1 year ago

dozsolti commented 3 years ago

Hi,

How can I create a skype like screen when someone calls the app and that is closed and the phone is locked? Demo: https://www.youtube.com/watch?v=vZBwifiOCEI

I know I have to use CallKeep, but that's not clear enough.

A sample will be really helpful

DaveLomber commented 3 years ago

A good starting point is https://developers.connectycube.com/reactnative/videocalling?id=receive-a-call-in-background

Basically you ned to integrate CallKit & VOIP pushes for iOS.

For Android - you cam omit it and use standard pushes

DaveLomber commented 3 years ago

Basically we have WIP MR https://github.com/ConnectyCube/connectycube-reactnative-samples/pull/200

dozsolti commented 3 years ago

I have implemented that part, but I don't know how to show a custom component over the lock screen

DaveLomber commented 3 years ago

which platform?

dozsolti commented 3 years ago

For now just android, but in the future I'm planning iOS too

DaveLomber commented 3 years ago

ok, for this we need to develop a custom Activity and show it from Push plugin

dozsolti commented 3 years ago

@DaveLomber ok but:

DaveLomber commented 1 year ago

An updated video chat code sample with CallKit support is implemented