-
Notifications
You must be signed in to change notification settings - Fork 64
Description
I am using Twilio voice RN sdk 1.14.0 and developing the mobile app to receive the incoming calls. I have used setIncomingCallContactHandleTemplate function to set the template for callerId of incoming call. It is working fine if the app is in foreground or background state. The callerId is getting updated properly. But if I kill the app, then for the incoming call, instead of callerId, number is coming.
React native - 0.77
Expo used - No
Platform - ios
Sample codebase used -
//getting token
await TwilioVoiceService.voice.register(token);
addLog('Twilio Voice registered');
if(Platform.OS === 'ios'){
TwilioVoiceService.voice.setCallKitConfiguration(callKitConfig);
}
const template = '${displayName}';
TwilioVoiceService.voice.setIncomingCallContactHandleTemplate(template);
this.addEventListeners();
// Rest of the init code
I am calling above codebase in useEffect of App.tsx (as the app is initialised)