cybex-dev / twilio_voice

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

Incoming Caller name from a client shows "Unkown Caller" on Android #215

Open zamargab opened 7 months ago

zamargab commented 7 months ago

Great job with this package, it really simplified the Twilio Voice Integration, However, I'm facing an issue, When i place a client call, the recipient does not see the name of the person that's making the call, Just "Unknown caller" or the default caller name, Please how do I remedy this?

TwilioVoice.instance.registerClient("1", "John");

From the code above, we register a user with ID of "1" and named "John", in placing a call, the "from" field, am i supposed to supply, "client:1", "client:John", "1", or "John".

Thanks

zamargab commented 7 months ago

From my research i found out that i can supply some parameters in the extraOptions field that could be used to modify the incoming call UI. I found out that "__TWI_CALLER_NAME" parameter is used to display incoming call name. But the issue I'm having with this is that even when i supply the extraOptions to look like below, It still does not work

 extraOptions: {

              "__TWI_CALLER_NAME": "Peter"
              },

Additionally, when i try to print out the parameters i included in extraOptions, it just gives an empty map.

TwilioVoice.instance.call.activeCall.customParams
zamargab commented 7 months ago

update:

I have tested on an Android 9 physical device and the correct caller name is being displayed but on an Android 14 physical device, it shows either Unknown caller or the default caller name if set

cybex-dev commented 7 months ago

Hi @zamargab,

Thanks for reaching out and posting the issue - apologies for getting back so late. I'll be reviewing issues over the weekend.