Giter VIP home page Giter VIP logo

flutter_twilio_voice's People

Contributors

eopeter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

flutter_twilio_voice's Issues

error on UIApplicationOpenSettingsURLString

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 plugin homepage is dormmom.com

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.

Error No implementation found for method makeCall

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>

Is this a complete solution for one-on-one calls?

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.)

Exception

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)?'

Missing ability to register with an access token

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.