diff --git a/README.md b/README.md index a0b7e2b4..be1acb06 100644 --- a/README.md +++ b/README.md @@ -370,6 +370,12 @@ TwilioVoice.getCallInvite() // Unregister device with Twilio (iOS only) TwilioVoice.unregister() + +// Sets Twilio Voice edge location. +// See [Edge Reference](https://www.twilio.com/docs/voice/client/edges) for more information. +// See [Public Edge Locations](https://www.twilio.com/docs/global-infrastructure/edge-locations#public-edge-locations) for public edge locations. +// And [Private Interconnect Locations](https://www.twilio.com/docs/global-infrastructure/edge-locations#private-interconnect) for private connections. +TwilioVoice.setEdge(location) ``` ## Help wanted diff --git a/ios/RNTwilioVoice/RNTwilioVoice.h b/ios/RNTwilioVoice/RNTwilioVoice.h index 117b1d6f..28ebb626 100644 --- a/ios/RNTwilioVoice/RNTwilioVoice.h +++ b/ios/RNTwilioVoice/RNTwilioVoice.h @@ -7,5 +7,6 @@ #import @interface RNTwilioVoice : RCTEventEmitter - +- (void)initPushRegistry; +- (void)configureCallKit: (NSDictionary *)params; @end diff --git a/ios/RNTwilioVoice/RNTwilioVoice.m b/ios/RNTwilioVoice/RNTwilioVoice.m index e0b2bebd..1422ea47 100644 --- a/ios/RNTwilioVoice/RNTwilioVoice.m +++ b/ios/RNTwilioVoice/RNTwilioVoice.m @@ -258,6 +258,8 @@ - (void)pushRegistry:(PKPushRegistry *)registry didUpdatePushCredentials:(PKPush [self sendEventWithName:@"deviceReady" body:nil]; } }]; + } else { + [self sendEventWithName:@"deviceReady" body:nil]; } } }