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

Way to check if user being called is busy #282

Closed alphazrexx closed 2 years ago

alphazrexx commented 2 years ago

Hi,

I am integrating your sample code for 1-1 chat and video calling service in an existing react native app

I am using remote and local push notification to alert the call receiver of an incoming call but when some other user calls the receiver, the current call is sometimes stopped (because of notification reloading the app for navigating to call screen) or a new call alert is received in the existing call ?

So before I call is there a way to check whether the user being called is busy and if so redirect the user to another caller ?

DaveLomber commented 2 years ago

Potentially you could share a state of call somewhere and check it before initiating a call

But this could lead to sone collisions, e.g. in some case you will be getting false positive states

What I recommend is the following:

ccvlad commented 2 years ago

Closed due to inactivity. Please create a new issue if needed.