Closed BoatFazWaz closed 2 years ago
I was confused between RNCallKeep UUID and RNTwilioPhone SID,
according to the Twilio Developer answer in my Stackoverflow question,
I can manage to end a call using SID provided by the CallConnected event with TwilioPhone.endCall(sid)
.
I'm on iOS and RNTwilioPhone.calls
returns []
inside the CallConnected
listener event. RNTwilioPhone.activeCall
does return a call. The call has an sid
but no uuid
. Have read in the code and there are different behaviors around adding calls to RNTwilioPhone.calls
depending on whether an sid
vs a uuid
are present. It's unclear to me why the behavior is different
I'm developing the React Native Android mobile apps with outbound calls feature, at the current state, it is able to make an outbound call to PSTN but cannot hang up. I tried to find the UUID after CallConnected according to the following quote, to use for
RNCallKeep.endCall(uuid)
, but still no luck.Event Listener
Console.log
Code snippet