Closed giangnt1 closed 3 years ago
Hi,
This is managed on iOS by RNTwilioPhone here
When token is updated, react-native-voip-push-notification is sending 'register' event. RNTwilioPhone will then fetch a new access token and call the register method.
Same thing happens on Android here, but the event is sent by react-native-firebase/messaging
That means I don't need to do anything, RNTwilioPhone already managed the device token updated event, is that right? I just got an issue with register/unregister the device token, unable to make a call until I completely remove the application then re-install it and register the token again. I asked Twilio for help and they suggested implementing the token updated login above. Do you have any idea?
Ok are you able to reproduce this issue? Tell me the steps you did so I can reproduce.
Thanks.
Twilio recommend implementing the following logic to check if the device token is updated or invalidated
Example: https://github.com/twilio/voice-quickstart-ios/blob/master/ObjcVoiceQuickstart/ViewController.m#L209
How can I implement this with react-native-twilio-phone? Is there any method to check the device token is updated?