Reputation: 412
I have integrated Twilio voice in an android app for one to one voice calling. I am able to connect with two identities successfully but I am not able to get any handle to pass caller name.
If I examine the content of incoming call notification there a weird number come which is not linked to my id. Also, I want to pass a URL of caller picture. is there any handle to achieve this?
Upvotes: 1
Views: 376
Reputation: 4825
One cannot add the image url and caller name in the incoming calling notification [REFERENCE]. However, you can do something like this
There is not a formal way of getting this information but you can overload the From field with the following: client:{callerName#}{callerNumber#} and then parse it on the receiving side. You can try the same workaround to pass the URL as well client:{callerName#}{callerNumber#}_{url}.
Note: I prefer sending userId as well so that I can fetch the details at other end or from the local database
Upvotes: 0