Skip to content

Commit 3a579fe

Browse files
author
Edward Smith
committed
Updated comments and fixed appleSearchAdDetails setter.
1 parent 54a7afd commit 3a579fe

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Branch-SDK/Branch-SDK/BNCPreferenceHelper.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,10 @@ - (void)setInstallParams:(NSString *)installParams {
421421
}
422422

423423
- (void) setAppleSearchAdDetails:(NSDictionary*)details {
424-
[self writeObjectToDefaults:BRANCH_PREFS_KEY_APPLE_SEARCH_ADS_INFO value:details];
424+
if (details == nil || [details isKindOfClass:[NSDictionary class]]) {
425+
_appleSearchAdDetails = details;
426+
[self writeObjectToDefaults:BRANCH_PREFS_KEY_APPLE_SEARCH_ADS_INFO value:details];
427+
}
425428
}
426429

427430
- (NSDictionary*) appleSearchAdDetails {

Branch-SDK/Branch-SDK/Branch.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,8 @@ - (void)initSessionWithLaunchOptions:(NSDictionary *)options isReferrable:(BOOL)
374374

375375
self.asyncRequestCount = 0;
376376

377+
// These methods will increment self.asyncRequestCount if they make an async call:
378+
377379
// If Facebook SDK is present, call deferred app link check here which will later on call initUserSession
378380
[self checkFacebookAppLinks];
379381
// If developer opted in, call deferred apple search attribution API here which will later on call initUserSession

0 commit comments

Comments
 (0)