callkeep icon indicating copy to clipboard operation
callkeep copied to clipboard

How stop the call when caller ends call?

Open ScottLee97 opened this issue 3 years ago • 3 comments

A user calls someone and the backend would send out an FCM data-only message to the receiver which triggers the call. But what if the caller ends the call before the receiver picks up the call? Is there a way to end the call on the receiver's side when the caller ends call?

ScottLee97 avatar Jul 30 '21 02:07 ScottLee97

No, you must control it by yourself.

I start calls with FCM data push messages (the app can be closed) and end them with Firestore Database (app is open and listening call-room changes).

efraespada avatar Sep 02 '21 16:09 efraespada

Is it possible to start and end the call when the app is in the background? In other words, can the listening of call-room changes be done even when the app is in the background??

ScottLee97 avatar Sep 03 '21 02:09 ScottLee97

No, when the app is terminated or backgrounded (even iOS) your listeners will stop receiving changes. Use push data messages to do that.

efraespada avatar Sep 05 '21 17:09 efraespada