react-native-twilio icon indicating copy to clipboard operation
react-native-twilio copied to clipboard

Twilio call is not working in ios and android

Open somsin opened this issue 9 years ago • 5 comments

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); } )); },

somsin avatar Sep 27 '16 05:09 somsin

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!*/ });

rogchap avatar Sep 30 '16 00:09 rogchap

@somsin I'm getting the same error. Did you manage to solve? The app crashes, but my phone still rings!

robbiemoore avatar Oct 14 '16 08:10 robbiemoore

@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 avatar Feb 24 '17 19:02 jigyasam

@jigyasam I've updated to latest SDK and fix some bit on android. Try again with #27

naviocean avatar Mar 18 '17 07:03 naviocean

Thanks @naviocean. I'll try it out and get back to you.

jigyasam avatar Mar 18 '17 15:03 jigyasam