Skip to content

Commit 5202ece

Browse files
committed
update latd method in Branch.m to handle error return
1 parent de847bf commit 5202ece

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Branch-SDK/Branch.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,7 @@ typedef NS_ENUM(NSUInteger, BranchCreditHistoryOrder) {
11201120
@param window attribution window in days. If the window is 0, the server will use the server side default. If the window is outside the server supported range, it will default to 30 days.
11211121
@param completion callback with attribution data
11221122
*/
1123-
- (void)lastAttributedTouchDataWithAttributionWindow:(NSInteger)window completion:(void(^) (BranchLastAttributedTouchData * _Nullable latd))completion;
1123+
- (void)lastAttributedTouchDataWithAttributionWindow:(NSInteger)window completion:(void(^) (BranchLastAttributedTouchData * _Nullable latd, NSError * _Nullable error))completion;
11241124

11251125
#pragma mark - Short Url Sync methods
11261126

Branch-SDK/Branch.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1285,7 +1285,7 @@ - (void)crossPlatformIdDataWithCompletion:(void(^) (BranchCrossPlatformID * _Nul
12851285
});
12861286
}
12871287

1288-
- (void)lastAttributedTouchDataWithAttributionWindow:(NSInteger)window completion:(void(^) (BranchLastAttributedTouchData * _Nullable latd))completion {
1288+
- (void)lastAttributedTouchDataWithAttributionWindow:(NSInteger)window completion:(void(^) (BranchLastAttributedTouchData * _Nullable latd, NSError * _Nullable error))completion {
12891289
[self initSafetyCheck];
12901290
dispatch_async(self.isolationQueue, ^(){
12911291
[BranchLastAttributedTouchData requestLastTouchAttributedData:self.serverInterface key:self.class.branchKey attributionWindow:window completion:completion];

0 commit comments

Comments
 (0)