WebsiteBeaver / CordovaCall

Cordova CallKit & ConnectionService plugin for iOS/Android that displays the native call UI for VOIP apps
MIT License
196 stars 91 forks source link

Name showing as "Unknown" except for names starting with "N" #104

Open Qvadis opened 4 years ago

Qvadis commented 4 years ago

Hi,

I've come across a very weird issue in my application. I made a calling application that uses JsSIP and CordovaCall for making and receiving calls between users.

It works fine in most Android devices, but I'm struggling to make it work in a Xiaomi Pocophone F1.

When I receive a call from, let's say John, the CordovaCall UI says "Unknown". However, if I receive a call from Naomi, it says Naomi. Weird, uh?

I made two tests. One with a user called "Nborja Antona" and another one with "borja Antona". One is good and another one is unknown.

Let me show you two screen captures. Sorry it is in spanish, but you have to pay attention to the notification that says "Teléfono" (Phone), "Desconocido" (Unknown) and "Llamada entrante" (Incoming Call).

Screenshot_2020-06-18-14-03-34-640_com mi android globallauncher

Screenshot_2020-06-18-14-04-24-600_com android incallui

When "Nborja Antona" calls, CordovaCall shows a toast that displays "Call from 626752268622". When "borja Antona" calls, the toasts says "Call from unknown"

I tried different names and as long as it begins with "N", it is ok.

When "Nabcdefghijklmnopqrstuvwxyz" calls the numer is "6222333444555666677778889999". Each letter corresponds with the keys 1-9 we had to press before touch screens.

My guess is that, as long as it starts with 6, the phone guesses it is a valid mobile phone and it "parses" it.

Any thoughs on what may be the better solution for this?

Thank you and cheers.

Qvadis commented 4 years ago

Let me add: It happens since Android 10 update.

Qvadis commented 4 years ago

One note:

If I add any number to the name, it displays it correctly

"John" -> Unknown "John 1" -> John 1

jezeniel commented 3 years ago

@Qvadis did you have any solution for this?

Qvadis commented 3 years ago

@Qvadis did you have any solution for this?

I didn't. My solution was to put asterisks after and before the name so it looks like this: NAME and it can be displayed.

Qvadis commented 2 years ago

Just tested with Android 12. It seems to work again without the asterisks