Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add public API to route requests to EU endpoints #1306

Merged
merged 3 commits into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
BNCLogSetDisplayLevel(BNCLogLevelDebug);
}

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

Check warning on line 424 in BranchSDK/Branch.m

View check run for this annotation

Codecov / codecov/patch

BranchSDK/Branch.m#L423-L424

Added lines #L423 - L424 were not covered by tests

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