Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twilio call is not working in ios and android #13

Open
somsin opened this issue Sep 27, 2016 · 5 comments
Open

Twilio call is not working in ios and android #13

somsin opened this issue Sep 27, 2016 · 5 comments

Comments

@somsin
Copy link

somsin commented Sep 27, 2016

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

@rogchap
Copy link
Owner

rogchap commented Sep 30, 2016

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

@robbiemoore
Copy link

robbiemoore commented Oct 14, 2016

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

@jigyasam
Copy link

jigyasam commented Feb 24, 2017

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

@naviocean
Copy link

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

@jigyasam
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants