Hi Team,
I’m testing our game features in Unreal 5.7.1 and noticed that:
- Push notifications permission for iOS was granted automatically before (on UE 5.6) when the app is installed with Unreal Editor project launcher, but with Unreal 5.7.1 this permission is not granted.
- Tried to get push notificaiton permission by calling the UE function “FIOSPlatformMisc::RegisterForRemoteNotifications()”, but he pop-up is not shown when calling the mentioned function and the push notification permission is returned as UNAuthorizationStatusNotDetermined on UNNotificationSettings.
How we could fix this issue to get Push Notification permission?
[Attachment Removed]
Steps to Reproduce[Attachment Removed]
Hi Xavier,
Under Modern Xcode (prior to 5.7), you need to create an entitlements files to enable push notifications.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>aps-environment</key>
<string>development</string>
</dict>
</plist>
then set the IOS Entitlements * and Enable Remote Notification Support in project settings and regenerate the Xcode projects.
Best regards.
[Attachment Removed]
Hi Stéphane,
I checked my project and the configurations you mentioned are already there:
[Image Removed]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>aps-environment</key>
<string>development</string>
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:playgamiuesdksample.com</string>
<string>applinks:www.playgamiuesdksample.com</string>
</array>
</dict>
</plist>
Is there any other setting required to configure?
Best Regards,
Xavi
[Attachment Removed]
Hi Xavi,
Can you confirm that the path to the entitlements file above is also set in the project settings?
Best regards.
[Attachment Removed]
Hi Stephane,
Yes, I have the path in the settings:
[Image Removed]
Thanks,
Xavi
[Attachment Removed]
Thanks for confirming Xavi,
Can you also confirm that when opening the generated Xcode project, if the Game target contains Push Notification. and Background Modes capabilities showing?
[Image Removed]Best regards
[Attachment Removed]
Hi Stephane,
Yes the remote push are enabled:
[Image Removed]
Best Regards,
Xavi
[Attachment Removed]
Hi Xavi,
From your screenshots, I’m not seeing Push Notifications enabled (see screenshot below highlighted in green):
[Image Removed]The push notification capability would be enabled the the entitlements file if correctly configured (which it appears to be based on what you’ve shared).
Best regards.
[Attachment Removed]
Hi Stephane,
Sorry, the last snapshot was not showing all the options.
Here you have the snapshift scrolling down, note that push notificaitons capability is enabled.
[Image Removed]
Is push notifications for iOS still requiring to build with source engine with some modifications in the engine?
I’m using launched verison of UE5.7.
Best Regards,
Xavi
[Attachment Removed]
Hi Xavier,
Thanks for confirming your setup, all appears to be in order.
I’m sorry, I missed the fact that you were on Launcher 5.7. Yes, indeed, UE prebuilt binaries seem to end up built with bEnableRemoteNotificationsSupport=False which in turn will cause the NOTIFICATIONS_ENABLED=0 preprocessor macro resulting in the runtime code path to be excluded. I’ll bring this up with the team, however, the only workaround would indeed be to deploy from source.
Best regards.
[Attachment Removed]