Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Qvadis opened this issue Jun 18, 2020 · 5 comments
Open

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

Qvadis opened this issue Jun 18, 2020 · 5 comments

Comments

@Qvadis
Copy link

Qvadis commented Jun 18, 2020

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
Copy link
Author

Qvadis commented Jun 30, 2020

Let me add: It happens since Android 10 update.

@Qvadis
Copy link
Author

Qvadis commented Jul 9, 2020

One note:

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

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

@jezeniel
Copy link

@Qvadis did you have any solution for this?

@Qvadis
Copy link
Author

Qvadis commented Nov 11, 2020

@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
Copy link
Author

Qvadis commented May 5, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants