cybex-dev / twilio_voice

Flutter Twilio Voice Plugin
https://twilio-voice-web.web.app/
MIT License
40 stars 86 forks source link

How to register a phone number that will be presented on background call screen #68

Closed Yahllil closed 1 year ago

Yahllil commented 2 years ago

Hello, I am trying to pass the phone number to TwilioVoice.instance.registerClient(...) in order to present the contact name instead of the number. But now, it always showing "Unknown caller" instead of showing the number.

How can we register a contact name for a phone number, and how can we achieve that when we don't have a contact connected to that number, the number itself will be presented instead of "Unknown caller"?

Thank you

cybex-dev commented 2 years ago

I'd suggest ensuring the client infact matches what you expect, review the code found here.

I'm working on a PR that will allow sending the caller name via TwiML application as a parameter that will automatically fill in on the call screen, making the pre-registration of a user redundant/not necessary.

Yahllil commented 2 years ago

I've tried TwilioVoice.instance.registerClient(...), but it seems it only works with a caller's userId (for example Firebase ID), and not with a regular phone number

Yahllil commented 2 years ago

Any update?

cybex-dev commented 2 years ago

Any update?

Will be pushing PR in a day or so

cybex-dev commented 1 year ago

Hi @Yahllil placeholder resolution will be added with next release.

cybex-dev commented 1 year ago

Closing for now.