Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Platform Channel Messages Sent on Non-Platform Thread in twilio_voice #256

Open
dunkeyyfong opened this issue Jan 14, 2025 · 0 comments

Comments

@dunkeyyfong
Copy link

When the app is terminated, if an incoming call comes in and I press “answer,” the app automatically opens, but the call ends immediately and throws the error mentioned above. I also tested this scenario when the app is running for the first time and when it’s in the background. The same issue occurs. Is there any quick and straightforward way to fix this? I’m in a rush to publish my app.

Flutter: provider:performAnswerCallAction: 
flutter: performAnswerVoiceCall: answering call 
flutter: Answer - From: 3, To: 2, Direction: CallDirection.incoming 3 
flutter: pushRegistry:attempting to register with twilio 
flutter: showIncomingCallScreen only for web flutter: rejecting call 3 
flutter: provider:didActivateAudioSession: 
3 flutter: hangUp method invoked 
3 flutter: performEndCallAction method invoked 
[ERROR:flutter/shell/common/shell.cc(1015)] 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: provider:performEndCallAction: 
flutter: provider:performEndCallAction: disconnecting call
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant