Skip to content

Commit 9a5c38b

Browse files
authored
Updated sharing events to fire. (#801)
1 parent b8eb87d commit 9a5c38b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Branch-SDK/Branch-SDK/Branch.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1842,7 +1842,7 @@ - (void)registerViewWithParams:(NSDictionary *)params andCallback:(callbackWithP
18421842
[self initSessionIfNeededAndNotInProgress];
18431843
BranchUniversalObject *buo = [[BranchUniversalObject alloc] init];
18441844
buo.contentMetadata.customMetadata = (id) params;
1845-
[BranchEvent standardEvent:BranchStandardEventViewItem withContentItem:buo];
1845+
[[BranchEvent standardEvent:BranchStandardEventViewItem withContentItem:buo] logEvent];
18461846
if (callback) callback(@{}, nil);
18471847
}
18481848

Branch-SDK/Branch-SDK/BranchShareLink.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ - (void) shareDidComplete:(BOOL)completed activityError:(NSError*)error {
8181
[self.delegate branchShareLink:self didComplete:completed withError:error];
8282
}
8383
if (completed && !error)
84-
[BranchEvent customEventWithName:BNCShareCompletedEvent contentItem:self.universalObject];
84+
[[BranchEvent customEventWithName:BNCShareCompletedEvent contentItem:self.universalObject] logEvent];
8585
NSDictionary *attributes = [self.universalObject getDictionaryWithCompleteLinkProperties:self.linkProperties];
8686
[BNCFabricAnswers sendEventWithName:@"Branch Share" andAttributes:attributes];
8787
}
@@ -110,7 +110,7 @@ - (void) shareDidComplete:(BOOL)completed activityError:(NSError*)error {
110110
}
111111

112112
// Log share initiated event
113-
[BranchEvent customEventWithName:BNCShareInitiatedEvent contentItem:self.universalObject];
113+
[[BranchEvent customEventWithName:BNCShareInitiatedEvent contentItem:self.universalObject] logEvent];
114114

115115
_activityItems = [NSMutableArray new];
116116
BranchShareActivityItem *item = nil;

0 commit comments

Comments
 (0)