Answer and HangUp do not work for ringing Incoming Call on iOS.
Issue Summary
Nothing happens on calling TwilioVoicePlatform.call.answer() and TwilioVoicePlatform.call.hangUp() when an incoming call is ringing on iOS.
Steps to Reproduce
- Incoming Call arrives
- Ringing event is invoked
- Call
TwilioVoicePlatform.call.answer()orTwilioVoicePlatform.call.hangUp() - Those method return true but no new event such as declined or answer emitted
Any other relevant information. For example, why do you consider this a bug and what did you expect to happen instead? Testing Device: iPhone 14 (iOS 17.5.1)
hi @agent515
I apologize for the delay in response.
Thank you for reaching out and bringing this issue to my attention - I'll investigate this issue.
Hi @agent515
Thank you for reaching out and creating this issue. I see there is certainly work that needs to be done on the iOS package. hangUp() may only work with existing calls and answer() has a wonderful piece added to it, check it out:
else if flutterCall.method == "answer" {
// nuthin
}
😆
--
I'll address this package rewrite as soon as I finish the web update.