Not sure if this is new (undocumented) behavior or a bug in iOS 18, but I'm seeing the UserNotifications willPresent
method being triggered twice in a row for a single push notification.
I've filed a feedback assistant ticket on this, but I'm curious if anyone else has encountered this with the new betas?
Thank you all for the feedback reports and bringing the issue to our attention. The reports are currently under investigation.
If this issue is critical for your apps in the meantime while a solution is pending, you can use UNNotificationRequest.identifier
or UNNotificationContent.threadIdentifier
for local notifications or the thread-id
key in the push notification payload (or any other notification related data) to try to recognize the two back to back callbacks may have been for the one single notification.
Unfortunately while the issue is under investigation we are not able to say when a resolution might be available.
Argun Tekant / DTS Engineer / Core Technologies