Skip to content

Commit fc9332c

Browse files
benmotanotidoranteseduardo
authored andcommitted
fix: pass endpoint
1 parent dfac38c commit fc9332c

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

ios/ViroKit/VROARSessioniOS.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,7 @@ void VROARSessioniOS::setCloudAnchorProvider(VROCloudAnchorProvider provider) {
528528
NSString *apiKey = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"RVApiKey"];
529529
NSString *projectId = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"RVProjectId"];
530530
NSString *endpoint = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"RVEndpoint"];
531+
531532
if (apiKey.length && projectId.length) {
532533
if (_cloudAnchorProviderRV == nil) {
533534
_cloudAnchorProviderRV = [[VROCloudAnchorProviderReactVision alloc]

ios/ViroKit/VROCloudAnchorProviderReactVision.mm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ - (nullable instancetype)initWithApiKey:(NSString *)apiKey
297297
ReactVisionCCA::RVCCACloudAnchorProvider::Config cfg;
298298
cfg.apiKey = apiKey.UTF8String;
299299
cfg.projectId = projectId.UTF8String;
300+
if (endpoint.length) cfg.endpoint = endpoint.UTF8String;
300301
cfg.enableLogging = YES; // DEBUG: enable to trace SIFT pipeline
301302

302303
try {

0 commit comments

Comments
 (0)