-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Labels
iosAffects the iOS platform.Affects the iOS platform.needs more infoNeeds more info from the issue author.Needs more info from the issue author.
Description
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
Labels
iosAffects the iOS platform.Affects the iOS platform.needs more infoNeeds more info from the issue author.Needs more info from the issue author.