Run game on Background on Android and/or iOS

I’m making a game that get the GPS position every 5 minutes and saves it in MySQL database.

And I want to do this on background too, but the “Run in background” option exists only for PC and Web Player.

How can I do this?

I know about battery life, but it really doesn’t matter.

Thank you. And sorry for my english. :wink:

Here is a link about how to do it in iOS. I used Google, you could have too…

It looks like it’s not going to be something you can do 100% in Unity, but will have to hack around in the generated xCode project to achieve.

I don’t know as much about Android post-processing and don’t care enough to further GTFY, ; but suggest you look for a plugin that handles “services”.