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

Exception #10

Open
victor-padovam opened this issue Aug 30, 2021 · 1 comment
Open

Exception #10

victor-padovam opened this issue Aug 30, 2021 · 1 comment

Comments

@victor-padovam
Copy link

victor-padovam commented Aug 30, 2021

My function :

onPressed: () async {
                    FlutterTwilioVoice.phoneCallEventSubscription
                        .listen(_onEvent, onError: _onError);
                    FlutterTwilioVoice.receiveCalls(_fromController.text);
                    FlutterTwilioVoice.makeCall(
                      from: '+16789091622',
                      to: _toController.text,
                      accessTokenUrl:
                          "https://twillio-voice-prova.000webhostapp.com/voice-server-twilio-php/accessToken.php",
                      toDisplayName: "James Bond",
                    );
                  },

Exception:

════════ Exception caught by services library ══════════════════════════════════
MissingPluginException(No implementation found for method listen on channel flutter_twilio_voice)
════════════════════════════════════════════════════════════════════════════════
E/flutter (28315): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: MissingPluginException(No implementation found for method makeCall on channel flutter_twilio_voice)
E/flutter (28315): #0      MethodChannel._invokeMethod
package:flutter/…/services/platform_channel.dart:156
E/flutter (28315): <asynchronous suspension>
E/flutter (28315): #1      FlutterTwilioVoice.makeCall
package:flutter_twilio_voice/flutter_twilio_voice.dart:34
E/flutter (28315): <asynchronous suspension>
E/flutter (28315):

problem in : ( .listen(_onEvent, onError: _onError);)

void _onEvent(Object event)
package:twilio_voice_example/pages/voice_external.dart

The argument type 'void Function(Object)' can't be assigned to the parameter type 'void Function(dynamic)?'
@victor-padovam
Copy link
Author

any solutions ?

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