Skip to content

Commit 5e937d5

Browse files
authored
Merge pull request #1306 from BranchMetrics/SDK-2045-add-EU-endpoint-helper-method
Add public API to route requests to EU endpoints
2 parents dbb498f + 2ef5da1 commit 5e937d5

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

BranchSDK/Branch.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,13 @@ extern NSString * __nonnull const BNCSpotlightFeature;
568568
*/
569569
- (void)enableLogging;
570570

571+
/**
572+
Send requests to EU endpoints.
573+
574+
This feature must also be enabled on the server side, otherwise the server will drop requests. Contact your account manager for details.
575+
*/
576+
- (void)useEUEndpoints;
577+
571578
/**
572579
setDebug is deprecated and all functionality has been disabled.
573580

BranchSDK/Branch.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,10 @@ - (void)enableLogging {
419419
BNCLogSetDisplayLevel(BNCLogLevelDebug);
420420
}
421421

422+
- (void)useEUEndpoints {
423+
[BNCServerAPI sharedInstance].useEUServers = YES;
424+
}
425+
422426
- (void)setDebug {
423427
NSLog(@"Branch setDebug is deprecated and all functionality has been disabled. "
424428
"If you wish to enable logging, please invoke enableLogging. "

0 commit comments

Comments
 (0)