Coder Social home page Coder Social logo

Emergency help. SIGABRT: __NSCFNumber > Could not cast value of type '__NSCFNumber' (0x1f1c58d28) to 'NSString' (0x1f1c58cf8). > NSString about react-native-twilio-phone HOT 10 CLOSED

mrhertal avatar mrhertal commented on May 20, 2024 3
Emergency help. SIGABRT: __NSCFNumber > Could not cast value of type '__NSCFNumber' (0x1f1c58d28) to 'NSString' (0x1f1c58cf8). > NSString

from react-native-twilio-phone.

Comments (10)

MrHertal avatar MrHertal commented on May 20, 2024 5

This should work now with v1.8.1 (see #74)

The bug was due to the fact that in its incoming push, Twilio sends a twi_answer_timeout field as an integer but the module code was expecting a string ... while on the Android side,twi_answer_timeout is indeed a string 😭

from react-native-twilio-phone.

duypxd avatar duypxd commented on May 20, 2024 2

This is not a good firecracker solution. But it works fine for me. cc: @MrHertal

image

from react-native-twilio-phone.

therealemjy avatar therealemjy commented on May 20, 2024 1

Same thing happening with our app.

from react-native-twilio-phone.

MrHertal avatar MrHertal commented on May 20, 2024 1

Thanks to all of you for reporting this nasty bug.

I am currently working on a fix.

from react-native-twilio-phone.

jorgeavaldez avatar jorgeavaldez commented on May 20, 2024

Same here

from react-native-twilio-phone.

jorgeavaldez avatar jorgeavaldez commented on May 20, 2024

Broke in our app in production, just checked. After digging through the internals, one thing that stands out is that the PKPushPayload includes a number value under a timeout key. By the time it crashes, it's trying to dispatch the received payload from Twilio in our case back to TwilioPhone.

from react-native-twilio-phone.

dchannell avatar dchannell commented on May 20, 2024

Same here. App immediately crashes on incoming calls. It seems to be something related to the handling of the Voip Push Notification and serializing the push payload data.

The culprit seems to be related with:

[RNVoipPushNotificationManager didReceiveIncomingPushWithPayload:payload forType:[NSString stringWithFormat:@"%@", type]];

Note: I noticed that the only value in the payload that is of type __NSCFNumber is the twi_timeout property.

from react-native-twilio-phone.

duypxd avatar duypxd commented on May 20, 2024

Thanks so much for the support. @MrHertal 🏆

from react-native-twilio-phone.

therealemjy avatar therealemjy commented on May 20, 2024

Thanks for the quick update! Much appreciated.

from react-native-twilio-phone.

manjotssd avatar manjotssd commented on May 20, 2024

thank you for quick fix @MrHertal

from react-native-twilio-phone.

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.