Open danstepanov opened 3 years ago
Thank you for reporting this. I am personally not proficient on Objective-C, but I rely on the official Twilio quickstart code: https://github.com/twilio/voice-quickstart-ios/blob/master/ObjcVoiceQuickstart/ViewController.m#L231
I would suggest you to open an issue there and see what Twilio engineers suggest.
Please include the following information for better support
The more context you provide around this issue the faster the community can help you
Did you follow all the instructions as specified in the Twilio Quickstart repositories? Yes What version of React Native are you running? ~0.63.4 What version of react-native-twilio-programmable-voice are you running? ^4.3.0 What device are you using? (e.g iOS10 simulator, Android 7 device)? iPhone Xs Is your app running in foreground, background or not running? foreground Is there any relevant message in the log? N/A If using iOS, which pod version are you using? ~> 5.2.0
Step to reproduce
configureCallKit()
using your identity-generated clientconfigureCallKit()
Advanced: Have you tried adding break point using AndroidStudio or XCode and analyse the logs? yes can share a project with issue? yes Did you try to reinstall the pods completely? yes
Presumably against Apple's docs, this library stores the device token in local storage via NSUserDefaults. While this makes it easier to re-establish a connection with the device on subsequent launches, it causes issues if you sign into the same account from a different device.
My understanding is that the person implementing this library should store the token on their own servers or via bindings in Twilio. Please let me know if I'm mistaken.