Closed
Description
Issue Summary
When trying to call another Twilio registered Client from iOS device, this error pops up saying, StartCallAction transaction request failed: The operation couldn’t be completed. (com.apple.CallKit.error.requesttransaction error 2.)
. Calling used to work before (6-7 months back) so I don't know why is this failing now?
Here is a related SO answer.
Steps to Reproduce
- Call other Twilio registered Client from iOS device
- Notice the log when call fails
Future<Either<AppError, void>> place(
String from,
String to,
) async {
try {
await requestMicAccess();
bool? granted = await _instance.requestCallPhonePermission();
if (granted != true)
return Left(AppError(title: 'No call phone permission given.'));
bool? result = await _instance.call.place(
from: from,
to: to,
);
if (result != null && result) {
return Right(null);
}
return Left(AppError(title: 'Call placing failed.'));
} catch (e, st) {
print(e);
Sentry.captureException(e, stackTrace: st);
return Left(AppError(title: e.toString()));
}
}
flutter: ACTIVE CALL: VoipActiveCall(to: 4, from: 15, callDirection: CallDirection.outgoing, initiated: null, customParams: null)
[ERROR:flutter/shell/common/shell.cc(1055)] The 'twilio_voice/events' channel sent a message from native to Flutter on a non-platform thread. Platform channel messages must be sent on the platform thread. Failure to do so may result in data loss or crashes, and must be fixed in the plugin or application code creating that channel.
See https://docs.flutter.dev/platform-integration/platform-channels#channels-and-platform-threading for more information.
flutter: StartCallAction transaction request failed: The operation couldn’t be completed. (com.apple.CallKit.error.requesttransaction error 2.)
flutter: VOIP CALL EVENT: CallEvent.log
Metadata
Metadata
Assignees
Labels
No labels