Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Mushu · Dec 30, 2013 at 11:36 AM · backgroundtrackingopenrunprocess

Can unity run in the background on mobile for tracking purposes?

Hi there

I need to send/store GPS location of a user for instance, every hour (This will be done on mobile and with the user's consent of course).

The app will have an interface that can be opened by the user to change settings, view a log of locations etc etc but the tracking will need to happen whether the app is "open" or not.

Is it possible to do this with unity and if so, how?

Update:

've seen a few applications on android ask the user if they may "run in the background" on the install screen.

I don't have a device with iOS but I'm guessing it has something similar, so having an app report a location periodically should be quite possible. My question is:

is it possible with unity?

Comment
Add comment · Show 6
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Subhajit-Nath · Dec 30, 2013 at 12:51 PM 0
Share

This thread will help you.

http://answers.unity3d.com/questions/344770/how-to-get-gps-coordinates-in-unity-3d.html

avatar image Mushu · Dec 30, 2013 at 01:37 PM 0
Share

Thanks but that doesn't tell me whether the unity built app has to be open and running for me to track the user. I'm not worried about getting the location. I need to TRAC$$anonymous$$ the location even if the USER DOESN'T HAVE THE APP OPEN.

avatar image MagicoCreator · Dec 30, 2013 at 01:41 PM 0
Share

unity was designed to deploy games so i don't think it would run in the background, whats more any mobile OS kills off your background app if it ever needs memory so its not even sure it will be kept in memory at all

avatar image Mushu · Dec 30, 2013 at 01:45 PM 0
Share

Aha. That makes sense. Though I've come a cross a few apps that issue re$$anonymous$$ders or give notifications about other various things which would imply some way of running in the background or at least telling the OS to run a specific bit of app related code every so often. Any ideas if something like that is achievable?

avatar image HappyMoo · Jan 08, 2014 at 07:46 AM 0
Share

The may have used http://docs.unity3d.com/Documentation/$$anonymous$$anual/PluginsForAndroid.html

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by olegekbondar · Apr 30, 2017 at 05:30 PM

Hey, Here is an instruction: http://www.devhelp.me/unity-background-location-service-step-by-step/

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image $$anonymous$$ · Apr 20, 2018 at 12:23 AM 0
Share

This link was deleted,can anyone help me?

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

23 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How do I test my game in the web player? 1 Answer

Game launches as background process in windows 2012 0 Answers

iOS game - Run GPS in background? 2 Answers

App goes to the background when an external process causes error. How to keep app foreground? 0 Answers

run in background and Screen.showCursor dont works 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges