eopeter / flutter_twilio_voice Goto Github PK
View Code? Open in Web Editor NEWLicense: BSD 3-Clause "New" or "Revised" License
License: BSD 3-Clause "New" or "Revised" License
Need to update to TwilioVoice 5.x for iOS 13 support. Details at https://github.com/twilio/twilio-voice-ios/blob/Releases/iOS-13-Migration-Guide.md
I run the results of the clone and I find errors like this
[ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: MissingPluginException(No implementation found for method makeCall on channel flutter_twilio_voice)
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)?'
The package page, found here has the homepage set to dormmom.com. This is problematic for trying to find this github repository to see the source code implementation of the pub package.
Will this package provide a complete solution for making one-to-one calls?
Will it actually use voip to notify users of incoming calls and allow them to pick up? Or will it just create a channel for all sides to join, while the rest of the logic will not be implemented by this package?
If the former - how can it be done without a server side? Will the logic of connecting one-to-one calls be handled by twilio? (e.g. call states - outgoing call, incoming call, picking up, etc.)
Hi dear
I'd like to thank you for this package. But When I try to install your package I'm getting couple of error. Please check this and let me know how can I fix this.
Launching lib/main.dart on iPhone 11 Pro Max in debug mode...
Running pod install...
Running Xcode build...
Xcode build done. 15.0s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
/Users/johnsmith/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_twilio_voice-0.0.3/ios/Classes/SwiftFlutterTwilioVoicePlugin.swift:42:51: error: 'UIImagePNGRepresentation' has been replaced by instance method 'UIImage.pngData()'
configuration.iconTemplateImageData = UIImagePNGRepresentation(callKitIcon)
^~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~
callKitIcon.pngData
UIKit.UIImagePNGRepresentation:2:13: note: 'UIImagePNGRepresentation' was obsoleted in Swift 3
public func UIImagePNGRepresentation(_ image: UIImage) -> Data?
^
/Users/johnsmith/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_twilio_voice-0.0.3/ios/Classes/SwiftFlutterTwilioVoicePlugin.swift:162:67: error: 'UIApplicationOpenSettingsURLString' has been renamed to 'UIApplication.openSettingsURLString'
UIApplication.shared.open(URL(string: UIApplicationOpenSettingsURLString)!,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
UIApplication.openSettingsURLString
UIKit.UIApplicationOpenSettingsURLString:3:12: note: 'UIApplicationOpenSettingsURLString' was obsoleted in Swift 4.2
public let UIApplicationOpenSettingsURLString: String
^
/Users/johnsmith/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_twilio_voice-0.0.3/ios/Classes/SwiftFlutterTwilioVoicePlugin.swift:163:65: error: 'UIApplicationOpenURLOptionUniversalLinksOnly' has been renamed to 'UIApplicationOpenExternalURLOptionsKey.universalLinksOnly'
options: [UIApplicationOpenURLOptionUniversalLinksOnly: false],
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
UIApplicationOpenExternalURLOptionsKey.universalLinksOnly
UIKit.UIApplicationOpenURLOptionUniversalLinksOnly:3:12: note: 'UIApplicationOpenURLOptionUniversalLinksOnly' was obsoleted in Swift 3
public let UIApplicationOpenURLOptionUniversalLinksOnly: UIApplication.OpenExternalURLOptionsKey
^
/Users/johnsmith/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_twilio_voice-0.0.3/ios/Classes/SwiftFlutterTwilioVoicePlugin.swift:197:31: error: 'AVAudioSessionRecordPermission' has been renamed to 'AVAudioSession.RecordPermission'
let permissionStatus: AVAudioSessionRecordPermission = AVAudioSession.sharedInstance().recordPermission()
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
AVAudioSession.RecordPermission
AVFoundation.AVAudioSessionRecordPermission:2:18: note: 'AVAudioSessionRecordPermission' was obsoleted in Swift 4.2
public typealias AVAudioSessionRecordPermission = AVAudioSession.RecordPermission
^
/Users/johnsmith/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_twilio_voice-0.0.3/ios/Classes/SwiftFlutterTwilioVoicePlugin.swift:309:101: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
NSLog("A CallInvite is already in progress. Ignoring the incoming CallInvite from (callInvite.from)")
^~~~~~~~~~~~~~~
/Users/johnsmith/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_twilio_voice-0.0.3/ios/Classes/SwiftFlutterTwilioVoicePlugin.swift:309:112: note: use 'String(describing:)' to silence this warning
NSLog("A CallInvite is already in progress. Ignoring the incoming CallInvite from (callInvite.from)")
~~~~~~~~~~~^~~~
String(describing: )
/Users/johnsmith/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_twilio_voice-0.0.3/ios/Classes/SwiftFlutterTwilioVoicePlugin.swift:309:112: note: provide a default value to avoid this warning
NSLog("A CallInvite is already in progress. Ignoring the incoming CallInvite from (callInvite.from)")
~~~~~~~~~~~^~~~
?? <#default value#>
note: Using new build system
note: Planning build
note: Constructing build description
Could not build the application for the simulator.
Error launching application on iPhone 11 Pro Max.
the function makeCall does not work, i test with a valid token server, and i haver this error when i call the function:
onPressed: () async {
// FlutterTwilioVoice.phoneCallEventSubscription.listen(_onEvent, onError: _onError);
//FlutterTwilioVoice.receiveCalls(_fromController.text);
FlutterTwilioVoice.makeCall(
from: "+1********",
to: _toController.text,
accessTokenUrl: "https://valid_token_server",
toDisplayName: "Jhon_Doe");
},
E/flutter ( 1695): [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 ( 1695): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:156:7)
E/flutter ( 1695): <asynchronous suspension>
E/flutter ( 1695): #1 FlutterTwilioVoice.makeCall (package:flutter_twilio_voice/flutter_twilio_voice.dart:34:5)
E/flutter ( 1695): <asynchronous suspension>
MissingPluginException(No implementation found for method listen on channel flutter_twilio_voice)
Need a method added to the channel to invoke TwilioVoice.registerWithAccessToken(...) and TwilioVoice.unregisterWithAccessToken(...) to properly receives call notifications without having to make a call first.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.