- Home /
iOS game - Run GPS in background?
Hi.
Is it possible to run a Unity iOS app in the background (Running while the user is using other apps on the iOS OS)? The scene would consist of a simple GPS script that saves the current location every ten minutes to PlayerPrefs.
Is this possible, or will I have to do the GPS part as a native part of the app in Xcode?
Best regards,
Andreas.
Answer by FirePlantGames · Dec 10, 2014 at 04:55 AM
In your player settings, check the "Run In Background" option. (Note that the option is available in standalone and is shared across all platforms)
I tried checking the "Run in Background" checkbox, but the game did not run in background.
Answer by olegekbondar · Apr 30, 2017 at 05:24 PM
Here is an instruction: http://www.devhelp.me/unity-background-location-service-step-by-step/