cybex-dev / twilio_voice

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

appears 'Desconocido' in the background #62

Closed victor-padovam closed 2 years ago

victor-padovam commented 2 years ago

When the app is completely closed, 'Disconocido' appears

alt text

What did I do to resolve.

I made changes to the role handleCallIntent of the file BackgroundCall....java (https://github.com/diegogarciar/twilio_voice/blob/master/android/src/main/java/com/twilio/twilio_voice/BackgroundCallJavaActivity.java#L99)

My solution to resolve this was.

in function: String caller = preferences.getString(fromId, preferences.getString("defaultCaller", "Desconocido")); changed To:

String fromId = intent.getStringExtra(Constants.CALL_FROM).replace("client:", "");
String caller = preferences.getString(fromId, preferences.getString("defaultCaller", fromId));

Result:

alt text

diegogarciar commented 2 years ago

Thanks I'll review this