Im trying to release my app to the ios appstore but keep getting rejected since I am tracking the user’s locations. At first I thought it was my project but I made a blank ue5 project and used xcode to package and the tracking usage description key was still there. Is there anyway to disable tracking or a way to add a tracking permission request for ios devices. I dont have any plugins added, since I tried it with the new project. Can someone help? Also does anyone know where to add in code in xcode so I can maybe add the permission there.
Hey there @Xiontheman1! I don’t work too often with iOS development, but there are flags that needed to be added to the info.plist to be able to request the user’s location. I’m uncertain if Unreal’s default plist template has this by default however if you just need to be able to make the request, the explanation made here should correct it.
Disclaimer: One or more of these links are unaffiliated with Epic Games. Epic Games is not liable for anything that may occur outside of this Unreal Engine domain. Please exercise your best judgment when following links outside of the forums.
okay do I only need to add this to my plist or do I also have to add in some code to xcode to get it to show up?
I believe on first launch it will make this request, regardless of if you are actually using them or not.
You may require the other key NSLocationAlwaysUsageDescription
as well. Give it a shot and let me know how it goes! I haven’t touched iOS development since 2017 so my information may be dated.
Okay thanks one more quest though, should this work in the test version?
I believe it should prompt you unless it’s been given permissions before.
I added both values to the plist info but Im still not getting the request and when I go to settings on my phone I dont see the permissions in settings.
I added the one u stated above and the privacy tracking usage description
I’ve also add the other privacy location keys from the link you sent and there is still no pop. Are you sure there is no code I have to add to get it to show? This is the TestFlight build.
Apologies! I’d usually setup a test environment to verify the answer but I’m unfortunately without the hardware currently. I’ll do a bit more digging. In the meantime, hopefully an iOS based user might have a better idea.