Skip to content
Merged
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
8 changes: 4 additions & 4 deletions iOS_SDK/OneSignalSDK/Source/OneSignal.m
Original file line number Diff line number Diff line change
Expand Up @@ -1930,10 +1930,7 @@ + (void)notificationReceived:(NSDictionary*)messageDict foreground:(BOOL)foregro
[OneSignalHelper lastMessageReceived:messageDict];

BOOL isPreview = [[OSNotification parseWithApns:messageDict] additionalData][ONESIGNAL_IAM_PREVIEW] != nil;
if (isPreview && [OneSignalHelper isIOSVersionLessThan:@"10.0"]) {
return;
}


if (opened) {
// Prevent duplicate calls
let newId = [self checkForProcessedDups:customDict lastMessageId:_lastnonActiveMessageId];
Expand All @@ -1951,6 +1948,9 @@ + (void)notificationReceived:(NSDictionary*)messageDict foreground:(BOOL)foregro

// Call Action Block
[OneSignal handleNotificationOpened:messageDict foreground:foreground isActive:isActive actionType:type];
} else if (isPreview && [OneSignalHelper isIOSVersionGreaterThanOrEqual:@"10.0"]) {
let notification = [OSNotification parseWithApns:messageDict];
[OneSignalHelper handleIAMPreview:notification];
}
}

Expand Down