react-native-twilio
react-native-twilio copied to clipboard
Twilio call is not working in ios and android
i am trying to use twilio in react native app. after done all setup with react native twilio .when i am calling a number getting issue . i used all steps give in this link .
[[tid:com.facebook.react.JavaScript] handler is not a function. (In 'handler(rtn)', 'handler' is undefined)
2016-09-27 11:00:57.857 [fatal][tid:com.facebook.react.RCTExceptionsManagerQueue] Unhandled JS Exception: handler is not a function. (In 'handler(rtn)', 'handler' is undefined). code is breaking in twilio app in index.js ](url)
addEventListener(type, handler) { _eventHandlers[type].set(handler, NativeAppEventEmitter.addListener( type, rtn => { handler(rtn); } )); },
The handler is your callback function. if it's undefined that means you don't have a callback function defined.
Twilio.addEventListener('deviceDidStartListening', () => { /*My callback handler here!*/ });
@somsin I'm getting the same error. Did you manage to solve? The app crashes, but my phone still rings!
@rogchap I have the same problem. The app crashes on connect in iOS, even in the RNTwilioExample app. Any pointers?
Checked again. It works fine on Android.
@jigyasam I've updated to latest SDK and fix some bit on android. Try again with #27
Thanks @naviocean. I'll try it out and get back to you.