# Native didReceiveNotificationResponse method not called when opening the app through push 

**URL:** <https://forums.unrealengine.com/t/native-didreceivenotificationresponse-method-not-called-when-opening-the-app-through-push/2658406>\
**Category:** Mobile\
**Tags:** unreal-engine, Epic-Pro-Support, question\
**Created:** [August 5, 2025, 2:14pm UTC](https://forums.unrealengine.com/t/native-didreceivenotificationresponse-method-not-called-when-opening-the-app-through-push/2658406 "2025-08-05T14:14:35Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [August 5, 2025, 2:14pm UTC](https://forums.unrealengine.com/t/native-didreceivenotificationresponse-method-not-called-when-opening-the-app-through-push/2658406/1 "2025-08-05T14:14:35Z")

</div>

Hi!

We are developing a multiplatform project, now working on the iOS platform implementation. We’re now adding support for push notifications, and building the app using the source code version of UE 5.5 in order to enable the native code that handles the notifications in the engine.

We’re sucessfully using the delegates

**FCoreDelegates::ApplicationRegisteredForRemoteNotificationsDelegate**

**FCoreDelegates::ApplicationFailedToRegisterForRemoteNotificationsDelegate**

**FCoreDelegates::ApplicationReceivedRemoteNotificationDelegate**

in order to retrieve the push token, listen for errors and receive the notifications , but we’ve found an issue. **ReceivedRemoteNotificationDelegate** is only triggered when the app is in foreground or background, but never when the app is not loaded into memory.

We’ve been investigating the engine source code and it seems, in the IOSAppDelegate.cpp file, the method

**- (void)userNotificationCenter:(UNUserNotificationCenter \*)center**

**willPresentNotification:(UNNotification \*)notification**

**withCompletionHandler:(void (^)(UNNotificationPresentationOptions options))completionHandler**

is never being called when we open the app through a push notification, even when the Notification center delegate is sucessfully registered in the **didFinishLaunchingWithOptions** method.

Is this a known issue? or there is something that needs to be setup in the project to make it work?

We’re building with Unreal 5.5.4 and Xcode 16.0

Thanks.

---

<div class="post-metadata">

**Author:** ![step\_jac\_eg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@step\_jac\_eg](https://forums.unrealengine.com/u/step_jac_eg)\
**Post date:** [August 7, 2025, 3:03pm UTC](https://forums.unrealengine.com/t/native-didreceivenotificationresponse-method-not-called-when-opening-the-app-through-push/2658406/2 "2025-08-07T15:03:17Z")

</div>

Hi Emilio,

Can you confirm the iOS version of the device this issue is occurring?

Best regards.

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [August 7, 2025, 3:07pm UTC](https://forums.unrealengine.com/t/native-didreceivenotificationresponse-method-not-called-when-opening-the-app-through-push/2658406/3 "2025-08-07T15:07:21Z")

</div>

Hi Stéphane!

We are having this problem issue on iOS 18.5 (22f76)

---

<div class="post-metadata">

**Author:** ![step\_jac\_eg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@step\_jac\_eg](https://forums.unrealengine.com/u/step_jac_eg)\
**Post date:** [August 7, 2025, 4:57pm UTC](https://forums.unrealengine.com/t/native-didreceivenotificationresponse-method-not-called-when-opening-the-app-through-push/2658406/4 "2025-08-07T16:57:09Z")

</div>

Hi Emilio,

Can you confirm you have the ‘Background Modes’ -\> ‘Remote notifications’ capability enabled (via bEnableRemoteNotificationsSupport)? Additionally, do the changes from [40900376](https://github.com/EpicGames/UnrealEngine/commit/72b318f516dbf92939b7acc559141b4add28db64) to IOSAppDelegate help.

Best regards.

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [August 8, 2025, 11:05am UTC](https://forums.unrealengine.com/t/native-didreceivenotificationresponse-method-not-called-when-opening-the-app-through-push/2658406/5 "2025-08-08T11:05:18Z")

</div>

Hi!

The background modes are set, but I cannot access the link provided, as I don’t have a salesforce account.

Regards.

---

<div class="post-metadata">

**Author:** ![step\_jac\_eg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@step\_jac\_eg](https://forums.unrealengine.com/u/step_jac_eg)\
**Post date:** [August 8, 2025, 1:22pm UTC](https://forums.unrealengine.com/t/native-didreceivenotificationresponse-method-not-called-when-opening-the-app-through-push/2658406/6 "2025-08-08T13:22:41Z")

</div>

Hi Emilio,

My apologies, had a bad URL for the CL. I’ve updated it in the original message.

Best regards.

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [August 8, 2025, 4:02pm UTC](https://forums.unrealengine.com/t/native-didreceivenotificationresponse-method-not-called-when-opening-the-app-through-push/2658406/7 "2025-08-08T16:02:43Z")

</div>

Thanks Stéphane.

I’ll be OOO during next week. I’ll try the code after that.

Regards.

---

<div class="post-metadata">

**Author:** ![step\_jac\_eg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@step\_jac\_eg](https://forums.unrealengine.com/u/step_jac_eg)\
**Post date:** [August 8, 2025, 4:36pm UTC](https://forums.unrealengine.com/t/native-didreceivenotificationresponse-method-not-called-when-opening-the-app-through-push/2658406/8 "2025-08-08T16:36:19Z")

</div>

Thanks Emilio, we’ll await your update.

Best regards.

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [August 19, 2025, 4:10pm UTC](https://forums.unrealengine.com/t/native-didreceivenotificationresponse-method-not-called-when-opening-the-app-through-push/2658406/9 "2025-08-19T16:10:45Z")

</div>

Hi Stéphane!

I came back yesterday and I got the news that we’ve to update to 5.6, and… I did it. Right now our code is on 5.6.0, but I’ll update to 5.6.1. I just noticed the hotfix today, but there is no clue about the issue I’m having being solved on the release notes.

Unfortunatelly, I’m still seeing the same behaviour when opening the app from a push notification. The apps opens, but we are not getting any callback from the push being processed.

I’ve been debugging, and I’ve found something interesting: The native ios methods are being called correctly when the app is being opened from the push notification, but the problem happens when the execution reachs the **HandleReceivedNotification** and does the following check before processing the notification

`if ([IOSAppDelegate GetDelegate].bEngineInit)`

If the app was not loaded in memory, the flag bEngineInit is not yet true when we reach this point. This flag is set on the

method.

`-(void)MainAppThread:(NSDictionary*)launchOptions`

So this seems to be a race condition, as the **HandleReceivedNotification** is being called before this flag is set\*\*.\*\* Is there any solution or setting to avoid to this?

Thanks.

**Update** : Today I build against 5.6.1 and the race condition is also happening.

---

<div class="post-metadata">

**Author:** ![step\_jac\_eg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@step\_jac\_eg](https://forums.unrealengine.com/u/step_jac_eg)\
**Post date:** [August 20, 2025, 4:30pm UTC](https://forums.unrealengine.com/t/native-didreceivenotificationresponse-method-not-called-when-opening-the-app-through-push/2658406/10 "2025-08-20T16:30:50Z")

</div>

Hi Emilio,

Thank you for the additional details, that was very helpful. We have provided a fix at CL [45025669](https://github.com/EpicGames/UnrealEngine/commit/286514e2a2a7f0a17a9b857c20ceabdf11d37815)/

Best regards.

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [August 21, 2025, 1:51pm UTC](https://forums.unrealengine.com/t/native-didreceivenotificationresponse-method-not-called-when-opening-the-app-through-push/2658406/11 "2025-08-21T13:51:46Z")

</div>

Hi Stéphane.

Thanks for the heads up. I see this fix is merged in the main UE branch. It seems to be for 5.7. Any chance of this for an hipotetical 5.6.2 patch?

Regards,

---

<div class="post-metadata">

**Author:** ![step\_jac\_eg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@step\_jac\_eg](https://forums.unrealengine.com/u/step_jac_eg)\
**Post date:** [August 21, 2025, 2:50pm UTC](https://forums.unrealengine.com/t/native-didreceivenotificationresponse-method-not-called-when-opening-the-app-through-push/2658406/12 "2025-08-21T14:50:55Z")

</div>

Hi Emilio,

If there is a 5.6.2, it can be considered.

Best regards.
