Skip to content

Commit

Permalink
Update trackReceivedEvent to allow Firebase influence
Browse files Browse the repository at this point in the history
Cherry pick of #1241
  • Loading branch information
emawby committed Aug 10, 2023
1 parent 9ef9c26 commit ae76e1f
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,6 @@ + (void)trackReceivedEvent:(OSNotification*)notification {
}

+ (void)trackInfluenceOpenEvent {
if (!trackingEnabled)
return;

OneSignalUserDefaults *sharedUserDefaults = OneSignalUserDefaults.initShared;
NSTimeInterval lastTimeReceived = [sharedUserDefaults getSavedDoubleForKey:ONESIGNAL_FB_LAST_TIME_RECEIVED defaultValue:0];

Expand All @@ -144,14 +141,6 @@ + (void)trackInfluenceOpenEvent {

NSString *notificationId = [sharedUserDefaults getSavedStringForKey:ONESIGNAL_FB_LAST_NOTIFICATION_ID_RECEIVED defaultValue:nil];
NSString *campaign = [sharedUserDefaults getSavedStringForKey:ONESIGNAL_FB_LAST_GAF_CAMPAIGN_RECEIVED defaultValue:nil];

[self logEventWithName:@"os_notification_influence_open"
parameters:@{
@"source": @"OneSignal",
@"medium": @"notification",
@"notification_id": notificationId,
@"campaign": campaign
}];
}

@end

0 comments on commit ae76e1f

Please sign in to comment.