Giter VIP home page Giter VIP logo

Comments (10)

Pagebakers avatar Pagebakers commented on June 8, 2024 1

Looks like this resolved the issue, thanks!

from react-native-twilio-programmable-voice.

Pagebakers avatar Pagebakers commented on June 8, 2024

Getting the same errors with RN 46.1 running on iPhone

from react-native-twilio-programmable-voice.

Pagebakers avatar Pagebakers commented on June 8, 2024

The crash was due to a connection error (unauthorized in my case)

Commenting this line fixes it.
https://github.com/hoxfon/react-native-twilio-programmable-voice/blob/master/ios/RNTwilioVoice/RNTwilioVoice.m#L304

from react-native-twilio-programmable-voice.

nkarman avatar nkarman commented on June 8, 2024

The root of my problem was that I was putting whitespace in my access token identity server side.

from react-native-twilio-programmable-voice.

Pagebakers avatar Pagebakers commented on June 8, 2024

I don't think this should be closed, since the error handler is handling thing improperly making the app crash.

from react-native-twilio-programmable-voice.

fabriziomoscon avatar fabriziomoscon commented on June 8, 2024

@nkarman could this issue be related to you trying to use a newer version of the Twilio SDK in your podfile?
As of version 2.5.0 I have integrated the callSid changes make in the SDK so you can use beta13 in your podfile.
Please let me know if that fixed the issue for you.

callSid changes:
https://www.twilio.com/docs/api/voice-sdk/ios/changelog#200-beta12-july-11-2017

from react-native-twilio-programmable-voice.

rochapablo avatar rochapablo commented on June 8, 2024

I'm getting Error handling FCM messagecom.twilio.voice.MessageException: No CallInvite with this CallSid even though the call had worked.

{
   call_to: 'client:User_1',
   call_from: '908908',
   call_state: 'DISCONNECTED',
   call_sid: 'CA...'
}

Shouldn't call_from have the client:User_2 instead those numbers?

Could I be missing something?

from react-native-twilio-programmable-voice.

fabriziomoscon avatar fabriziomoscon commented on June 8, 2024

Hi @rochapablo, are you sure you're issue is related to this one?
To me it sounds quite different. Anyway I really think we need more context around this issue.
Please open a new one and try to provide us with more information and step to reproduce.
Sorry for the inconvenience

from react-native-twilio-programmable-voice.

 avatar commented on June 8, 2024

We're on the team from @nkarman's original post and this is still happening for us

React-Native 0.49.0
React-Native-Twilio-Programmable-Voice 3.2.0
Twilio Voice 2.0.0-beta13 & 2.0.0-beta15
iPhone 6 running iOS 11.1.1
App in foreground
Pod version 1.3.0

The issues happens in the connectionDidConnect delegate method, so I have a feeling this may be something more related to the Twilio SDK or possibly connection errors as mentioned before.

We've been able to reproduce it where the first call succeeds and then every call after that fails with the same null sid error.

Do you have any insights?

from react-native-twilio-programmable-voice.

fabriziomoscon avatar fabriziomoscon commented on June 8, 2024

I would compile the example app from Twilio:
https://github.com/twilio/voice-quickstart-objc/tree/master/ObjCVoiceCallKitQuickstart
and run it with no significant changes to your backend.
If the crash persists, the problem lies with either your configuration of the server of Twilio SDK.

The crash originally reported means that call is nil

#pragma mark - TVOCallDelegate
- (void)callDidConnect:(TVOCall *)call {
  [...]
  NSMutableDictionary *callParams = [[NSMutableDictionary alloc] init];
  [callParams setObject:call.sid forKey:@"call_sid"];
  [...]
  [self sendEventWithName:@"connectionDidConnect" body:callParams];
}

I can't see how the TVOCallDelegate would pass a nil call.

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.