Skip to content

On ios - I am having issue on create call for the first time untill and unless I reopen the app by killing #569

@aditya-sevaro

Description

@aditya-sevaro

RN version - 0.78
SDK version - 1.5.0
Expo used - No

My issue is similar to this issue - #505
In my case what happening is that after successfully initialising / registering the sdk with token - if I try to make a call, nothing happens, I can see the ios Call UI in the background but it stuck in 0s and no call starts. even in twilio dashboard, I see no call logs or attempt of call.
When I reload the app (kill and reopen), it start working.

......code from initialise function

const token = await this.getAccessToken(); // Access token from Backend
addLog('Fetched Twilio access token:', token);
if (!token) {
  throw new Error('Failed to get Twilio access token');
}

if (Platform.OS === 'ios') {
  addLog('Initializing Twilio Voice - initializePushRegistry...');
  await TwilioVoiceService.voice.initializePushRegistry();
}

addLog('Registering Twilio voice with token...');
await TwilioVoiceService.voice.register(token);

..... code from create call function -

addLog('Create call', phoneNumber, facilityId, tag, callMeta);
const token = await this.getAccessToken(); // token from backend or locally stored token fetched earlier
const call = await TwilioVoiceService.voice.connect(token as string, {
  params: {
    phoneNumber,
    facility: facilityId,
  }
});
addLog('Call created:', call);

It is not logging the last line. Looks like it is stuck in await permanently

Metadata

Metadata

Assignees

No one assigned

    Labels

    iosAffects the iOS platform.needs more infoNeeds more info from the issue author.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions