Giter VIP home page Giter VIP logo

Comments (7)

nkarman avatar nkarman commented on June 8, 2024

@hoxfon @jrperson Have either of you experienced this issue? Thanks!

from react-native-twilio-programmable-voice.

fabriziomoscon avatar fabriziomoscon commented on June 8, 2024

@nkarman is there any chance that you are passing to the listener an undefined reference?

In my JS app I have something like this:

 //...
       TwilioVoice.addEventListener('deviceReady', _deviceReady)
        if (Platform.OS !== 'ios') {
            TwilioVoice.addEventListener('deviceNotReady', _deviceNotReady)
        }
 //...
        if (Platform.OS !== 'ios') {
            TwilioVoice.addEventListener('deviceDidReceiveIncoming', _deviceDidReceiveIncoming)
        }
        if (Platform.OS === 'ios') {
            TwilioVoice.addEventListener('callRejected', _deviceCallRejected)
        }
        TwilioVoice.addEventListener('connectionDidConnect', _connectionDidConnect)
        TwilioVoice.addEventListener('connectionDidDisconnect', _connectionDidDisconnect)

let me know if that helps

from react-native-twilio-programmable-voice.

nkarman avatar nkarman commented on June 8, 2024

@fabriziomoscon I have something very similar. Do you think you could possibly provide an example of where the listeners are defined? such as _deviceReady or _connectionDidConnect? In my code, I have them defined as such

  _connectionDidConnect (args) {
    console.tron.log('connectionDidConnect', args)
  }

  _connectionDidDisconnectHandler (error) {
    console.log('connectionDidDisconnectHandler', error)
  }

from react-native-twilio-programmable-voice.

benminer avatar benminer commented on June 8, 2024

I am also getting this issue.

from react-native-twilio-programmable-voice.

fabriziomoscon avatar fabriziomoscon commented on June 8, 2024

Please paste your file, there is really nothing special in my _ handlers

from react-native-twilio-programmable-voice.

benminer avatar benminer commented on June 8, 2024

Hey @fabriziomoscon, thanks for replying. I actually figured it out shortly after posting, should of deleted it. Thank you very much for writing this module!

from react-native-twilio-programmable-voice.

fabriziomoscon avatar fabriziomoscon commented on June 8, 2024

My pleasure, maybe you could post your solution anyway for others.

from react-native-twilio-programmable-voice.

Related Issues (20)

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.