Unreal Engine 5.1.1 Not writing to IOS Apple Game Center Leaderboards anymore. It used to in our previous 4.27 version but not anymore.
create blank project
I project settings enable game center
setup leaderboards in apple’s Game Center and submit it to go live, once live go back to unreal engine 5.1.1. Im attaching screenshot to show my apple Game Center setup to confirm that both my leaderboards are live, however inline with this example im using the leaderboard with the ID of highcoins.
Setup blueprint to login user to apple Game Center, make sure you fire the login to apple Game Center before you try to write to leaderboards or read from leaderboards. l setup blueprint to write to leaderboard (see screenshot that is attached)
package game (with all the nessisary certificates and profiles from apple, the usual stuff) and upload to transporter.
download game via test flight, or make go live ( I tried both)
open game can run bp to write to leaderboard and then read from leaderboard afterwards.
leaderboard does not write to IOS Apple Game Center, values still show 0. It looks like something happens when I press the button to submit score to leaderboard as there is a second or half a second lag like its sending information, however when I read from leaderboard there are no values logged in the apple Game Center. I also checked in apple Game Center portal and it does not show that any player scores are recorded.
we even made blueprint force a store value as in the screenshot below, still no luck.
Any questions or if anyone was able to get this setup successfully or if you have a workaround please give me a holler, and thanks in advance for your time
Hi @ParNishka18 what version of unreal engine did you have. Im just now revisiting this, and since 5.2.1 is out I’m working if this has been resolved yet? Anyone know the answer? Unreal has not even logged this as a bug and I’ve opened up a few bug tickets on this. @unrealengine_us
As of iOS15, Apple requires a new entitlement key to enable GameCenter. You’ll need to apply this UE5 github patch to enable that (or add it directly to your entitlements file):
I grabbed the code from the GitHub link and added the 9 lines to my IOSexports.cs file. Set my write leaderboard integer node to write a value as soon as my main menu opens and still not seeing any values being written to the Game Center.
All my ID’s are correct and all my achievements work. Any further guidance on what I might be doing wrong or missing would be appreciated. TY
I had also tried to just add the key to the entitlements file but I couldn’t get the build to complete successfully. Error about modification to the entitlements file.???
Any luck solving this? I’m trying to fix the issue now and can’t. I have the same issue where the achievements work, but I’m unable to write to the leader board.