Skip to content

Commit

Permalink
Merge pull request #404 from Pushwoosh/bugfix/SDK-242-minor-changes-f…
Browse files Browse the repository at this point in the history
…or-delegate-iOS

[bugfix][SDK-242] minor changes for delegate iOS
  • Loading branch information
wfhm authored Mar 4, 2024
2 parents 8382aed + 97f61a7 commit 9531f55
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/ios/PushNotification.m
Original file line number Diff line number Diff line change
Expand Up @@ -252,16 +252,10 @@ - (void)userNotificationCenter:(UNUserNotificationCenter *)center
if (![response.actionIdentifier isEqualToString:UNNotificationDefaultActionIdentifier] && [[PushNotificationManager pushManager].delegate respondsToSelector:@selector(onActionIdentifierReceived:withNotification:)]) {
[[PushNotificationManager pushManager].delegate onActionIdentifierReceived:response.actionIdentifier withNotification:[self pushPayloadFromContent:response.notification.request.content]];
}

[[Pushwoosh sharedInstance] handlePushReceived:[self pushPayloadFromContent:response.notification.request.content]];
}
};

if ([self isRemoteNotification:response.notification] && [PWMessage isPushwooshMessage:response.notification.request.content.userInfo]) {
if (![self isContentAvailablePush:response.notification.request.content.userInfo]) {
[[Pushwoosh sharedInstance] handlePushReceived:[self pushPayloadFromContent:response.notification.request.content]];
}

handlePushAcceptanceBlock();
} else if ([response.notification.request.content.userInfo objectForKey:@"pw_push"]) {
handlePushAcceptanceBlock();
Expand Down

0 comments on commit 9531f55

Please sign in to comment.