Comments (12)
from twilio_voice.
Yes, all certificates are are correct. I already have a (Swift) iOS app using the same Twilio server, and that is showing the CallKit UI correctly - I am trying to migrate this app to Flutter.
from twilio_voice.
well that's strange then, If you already know how to setup for native, Flutter is no different.
So you are already calling your server to register your user?
Maybe try running the flutter iOS project and debug the plugin, you should be receiving the "successfully registering for notifications" log
from twilio_voice.
Thanks...
I was indeed not getting the registered for remote notifications.
Annoyingly, a clean and rebuild of everything fixed that issue.
However, I'm now never receiving the "CallEvent.answer" event.
Any idea why?
from twilio_voice.
The answer event is only received by the callee, not the caller. (with default answer_on_bridge setting)
Is the call actually taking place?
from twilio_voice.
Yes, the call takes place, but neither caller or callee gets the CallEvent.answer event. Both get hangup event.
from twilio_voice.
Weird, can you check if you have the same bug running the example project?
from twilio_voice.
So here's a debug log (this is on iOS)
LOG|pushRegistry:didReceiveIncomingPushWithPayload:forType:completion:
flutter: pushRegistry:didReceiveIncomingPushWithPayload:forType:completion:
LOG|callInviteReceived:
flutter: voip-onCallStateChanged CallEvent.log
flutter: callInviteReceived:
Ringing|e613bb99_af6c_4afb_bc63_1909a19c8b92|client:11d3399a_47c1_42c6_ae60_9dcb20f908bf|Incoming
flutter: voip-onCallStateChanged CallEvent.log
flutter: Ringing - From: e613bb99_af6c_4afb_bc63_1909a19c8b92, To: 11d3399a_47c1_42c6_ae60_9dcb20f908bf, Direction: CallDirection.outgoing
flutter: voip-onCallStateChanged CallEvent.ringing
LOG|Incoming call successfully reported.
flutter: Incoming call successfully reported.
flutter: voip-onCallStateChanged CallEvent.log
[connection] nw_endpoint_handler_set_adaptive_read_handler [C5.1 52.21.15.69:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] unregister notification for read_timeout failed
[connection] nw_endpoint_handler_set_adaptive_write_handler [C5.1 52.21.15.69:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] unregister notification for write_timeout failed
LOG|provider:performAnswerCallAction:
LOG|performAnswerVoiceCall: answering call
flutter: provider:performAnswerCallAction:
flutter: voip-onCallStateChanged CallEvent.log
flutter: performAnswerVoiceCall: answering call
flutter: voip-onCallStateChanged CallEvent.log
flutter: Answer - From: e613bb99_af6c_4afb_bc63_1909a19c8b92, To: 11d3399a_47c1_42c6_ae60_9dcb20f908bf, Direction: CallDirection.incoming
flutter: voip-onCallStateChanged CallEvent.answer
LOG|provider:didActivateAudioSession:
flutter: provider:didActivateAudioSession:
flutter: voip-onCallStateChanged CallEvent.log
flutter: provider:didActivateAudioSession:
flutter: voip-onCallStateChanged CallEvent.log
flutter: CallEvent.log e613bb99_af6c_4afb_bc63_1909a19c8b92
Connected|client:e613bb99_af6c_4afb_bc63_1909a19c8b92|client:11d3399a_47c1_42c6_ae60_9dcb20f908bf|Incoming
LOG|provider:performAnswerVoiceCall() successful
flutter: Connected - From: e613bb99_af6c_4afb_bc63_1909a19c8b92, To: 11d3399a_47c1_42c6_ae60_9dcb20f908bf, StartOn: 2021-06-23 09:39:40.336905, Direction: CallDirection.incoming
flutter: voip-onCallStateChanged CallEvent.connected
flutter: Connected - From: e613bb99_af6c_4afb_bc63_1909a19c8b92, To: 11d3399a_47c1_42c6_ae60_9dcb20f908bf, StartOn: 2021-06-23 09:39:40.337722, Direction: CallDirection.incoming
flutter: voip-onCallStateChanged CallEvent.connected
flutter: provider:performAnswerVoiceCall() successful
flutter: voip-onCallStateChanged CallEvent.log
flutter: provider:performAnswerVoiceCall() successful
flutter: voip-onCallStateChanged CallEvent.log
flutter: ATG in switch:: CallEvent.log call from e613bb99_af6c_4afb_bc63_1909a19c8b92
As you can see, the TwilioVoice reports all the correct stages of the call, but those events are not being received by the running Flutter app while the CallKit UI is active, in the 'switch (event)'. As soon as the call is accepted (and the CallKit ui has gone), then the Flutter app receives the events eg the debug 'flutter: ATG in switch:: CallEvent.log call from e613bb99_af6c_4afb_bc63_1909a19c8b92'
This means there is no way of retrieving the id of the caller until the call is answered.
Is this expected behaviour?
from twilio_voice.
Hi, thanks for your help so far.
I now have iOS working.
On Android, I can make and receive calls, but the identity of the caller is not shown
The Twilio_voice logs show 'null' as the 'to' and 'from'. Is there any extra initialisation that should be done?
I/flutter (18065): Ringing - From: null, To: null, Direction: CallDirection.outgoing
I/flutter (18065): voip-onCallStateChanged CallEvent.ringing
I/flutter (18065): Ringing - From: null, To: null, Direction: CallDirection.outgoing
from twilio_voice.
Hi, I think there was an issue for Android that I recently fixed, let me see if I'm missing a commit
from twilio_voice.
I have submitted the fix on 0.0.7, if it is still not fixed, check that the posted params on your server are the ones you expect.
from twilio_voice.
Closing this for now, if there are any further issues pleas feel free to reopen this or open a new one
from twilio_voice.
Related Issues (20)
- feat: Showing an image on callkit / answer activity HOT 4
- call success but getting From null and To null and when connecting call getting url music playing continuously HOT 2
- RECONNECTING Status and Callee event not work on Caller side HOT 4
- App Crashes In iOS(Duplicate plugin key: twilio_voice) HOT 3
- How can i do a conference call? like forwarding a call to another HOT 1
- Unable to receive incoming calls. HOT 1
- App crashes when receiving incoming call on Android HOT 2
- Bug ios: aborting call before answer will not interrupt it HOT 11
- FOREGROUND answering call HOT 6
- Keep getting Invalid Token HOT 3
- Mic is not working when phone is locked and app running foreground HOT 3
- "Duplicate plugin key: twilio_voice" HOT 23
- Release Build fails with splash_icon on drawable folder HOT 8
- this plugin not working i tested it on andriod device HOT 8
- When app is closed only vibration % ringing. There is no Call Screen UI or Intent Triggered...any solution HOT 1
- Is there a way to call another when i have a current call? HOT 1
- Android 12 , problem HOT 5
- ANDROID 10, 11, 12 speaker always remain opened HOT 3
- access token can not be null, and display still showing connecting. HOT 2
- Mobile phone is locked then call is not working properly not mic or not speaker HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twilio_voice.