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

How to Call app when app has Closed (IOS & Android)? #107

Closed stephanoparaskeva closed 4 years ago

stephanoparaskeva commented 4 years ago

Description:

Question

How does one do this with ConnectyCube RNVideoChat?

banshiAnton commented 4 years ago

Hi @stephanoparaskeva you can use from IOS VOIP https://developers.connectycube.com/reactnative/push-notifications?id=callkit-and-voip-push-notifications for Android you can create push event https://developers.connectycube.com/js/videocalling?id=receive-a-call-in-background

stephanoparaskeva commented 4 years ago

Hi @stephanoparaskeva you can use from IOS VOIP https://developers.connectycube.com/reactnative/push-notifications?id=callkit-and-voip-push-notifications for Android you can create push event https://developers.connectycube.com/js/videocalling?id=receive-a-call-in-background

Does this work when the app is completely closed?

If user is logged out after 2 hours of inactivity, how do you get this to work after app being off for > 2 hours?

banshiAnton commented 4 years ago

Yes, after app is launched you need to authorization again (init sdk and createSession with credentials) https://developers.connectycube.com/js/authentication-and-users?id=create-session-token

If you use p2p calls you need connect to chat and set call listeners https://developers.connectycube.com/js/videocalling?id=accept-a-call

If you use videocalling-conference you need put roomId to push message (https://developers.connectycube.com/js/push-notifications?id=send-push-notifications) and then join to that room https://developers.connectycube.com/js/videocalling-conference?id=join-video-room

stephanoparaskeva commented 4 years ago

Yes, after app is launched you need to authorization again (init sdk and createSession with credentials) https://developers.connectycube.com/js/authentication-and-users?id=create-session-token

If you use p2p calls you need connect to chat and set call listeners https://developers.connectycube.com/js/videocalling?id=accept-a-call

If you use videocalling-conference you need put roomId to push message (https://developers.connectycube.com/js/push-notifications?id=send-push-notifications) and then join to that room https://developers.connectycube.com/js/videocalling-conference?id=join-video-room

Can we have an example implementation with react-native-callkeep of launching app after being closed and Receiving video call?

banshiAnton commented 4 years ago

Unfortunately we don't have react-native sample with implemented react-native-callkeep Perhaps we will do it in the future

yuduth88 commented 3 years ago

Unfortunately we don't have react-native sample with implemented react-native-callkeep Perhaps we will do it in the future

please create sample for react-native-callkeep integration for voip notification (background and kill apps)