Skip to content

setIncomingCallContactHandleTemplate function not working if I kill the app and then incoming call comes. #512

@aditya-sevaro

Description

@aditya-sevaro

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    VBLOCKS-4518androidAffects the Android platform.backlogInitial triage done, backlog ticket filed for further work.iosAffects the iOS platform.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions