Skip to content

Commit

Permalink
Merge pull request #1306 from BranchMetrics/SDK-2045-add-EU-endpoint-…
Browse files Browse the repository at this point in the history
…helper-method

Add public API to route requests to EU endpoints
  • Loading branch information
echo-branch authored Oct 10, 2023
2 parents dbb498f + 2ef5da1 commit 5e937d5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions BranchSDK/Branch.h
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,13 @@ extern NSString * __nonnull const BNCSpotlightFeature;
*/
- (void)enableLogging;

/**
Send requests to EU endpoints.
This feature must also be enabled on the server side, otherwise the server will drop requests. Contact your account manager for details.
*/
- (void)useEUEndpoints;

/**
setDebug is deprecated and all functionality has been disabled.
Expand Down
4 changes: 4 additions & 0 deletions BranchSDK/Branch.m
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,10 @@ - (void)enableLogging {
BNCLogSetDisplayLevel(BNCLogLevelDebug);
}

- (void)useEUEndpoints {
[BNCServerAPI sharedInstance].useEUServers = YES;
}

- (void)setDebug {
NSLog(@"Branch setDebug is deprecated and all functionality has been disabled. "
"If you wish to enable logging, please invoke enableLogging. "
Expand Down

0 comments on commit 5e937d5

Please sign in to comment.