Skip to content

Commit 47e9faa

Browse files
committed
Clear lastpushpayload if app is not launched via a notification click
1 parent 375db1c commit 47e9faa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

swift-sdk/Internal/InternalIterableAPI.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,7 @@ final class InternalIterableAPI: NSObject, PushTrackerProtocol, AuthProvider {
587587

588588
private func handle(launchOptions: [UIApplication.LaunchOptionsKey: Any]?) {
589589
guard let launchOptions = launchOptions else {
590+
localStorage.saveLastPushPayload(nil, withExpiration: nil)
590591
return
591592
}
592593
if let remoteNotificationPayload = launchOptions[UIApplication.LaunchOptionsKey.remoteNotification] as? [AnyHashable: Any] {

0 commit comments

Comments
 (0)