Discussions
IRC
Sign In
Support
Realtime location in the background - URGENT
Vote Up
0
Vote Down
andressepulveda
January 2013
Greetings. I am making an application in Appcelerator Titanium, like HighLight (
https://itunes.apple.com/us/app/highlight/id441534409?mt=8
).
I set the profile as REALTIME, but only gives me the location when the application is in use, when I change the application stops working.
I tried a thousand ways to make a real-time location without opening the application, but it was impossible.
8 Comments
sorted by
Votes
Date Added
Vote Up
0
Vote Down
aaronpk
January 2013
Please refer to Apple's
Location Awareness Programming Guide
, specifically the section on adding "location" to the list of required
background modes
.
Basically you need to add the key "
location
" to your
UIBackgroundModes
array in the app's plist file. That should allow the app to use location updates in the background.
Vote Up
0
Vote Down
andressepulveda
January 2013
Thank you very much for your reply. I will try to do this now and I will notify you.
Thank you, a hug.
Vote Up
0
Vote Down
Erpc1ismYHcfCEGp
January 2013
Aaron, how could I do this with the Appcelerator Titanium module?
Vote Up
0
Vote Down
aaronpk
January 2013
It looks like you'll have to edit the plist file manually after building the Titanium app. Please refer to these two links for more information:
http://crewdesigngroup.com/tips-and-tricks/item/80-background-audio-in-appcelerator
http://developer.appcelerator.com/question/126180/location-aware-background-service-for-ios
Vote Up
0
Vote Down
andressepulveda
January 2013
1. Open the file tiapp.xml and add the following code (shown in picture)
<backgroundModes>
<mode> location </ mode>
</ backgroundModes>
I must add code within the tag <iphone>
2. Add Geoloqi module.
That's it, it works for me perfectly.
Thanks aaronpk
Captura de pantalla 2013-01-08 a la(s) 19.55.01.png
562 x 406
-
51K
Vote Up
0
Vote Down
Erpc1ismYHcfCEGp
January 2013
Thanks a million :-) worked perfectly for me
Vote Up
0
Vote Down
Erpc1ismYHcfCEGp
January 2013
Aaron
For some reason setting the backgroundMode to location doesn't work.
I'm developing a app to track a user in LOGGING mode to save battery yet have some decent tracking
Does the titanium module automatically manage background mode or do I have to invoke the Ti.App.iOS.registerBackgroundService?
Thanks for you help
Vote Up
0
Vote Down
Erpc1ismYHcfCEGp
January 2013
Hey Everyone
Unfortunately I'm still experiencing issues with tracking,
I'm using Titanium 2.1.4 and the latest Geoloqi module
The tiapp.xml is configured as described above and double checked with info.plist
The tracking profile is set to Logging or Realtime
I'm set as an anonymous user and logging in with a "key" value.
This way I ensure to have the same user_id from one session to another
I'm testing on an iPad3 with 3G and Wifi with iOS 6.01.
Background mode is not returning any data, or only sporadically.
Even worse, when the app is running, it also returns infrequent data despite being in logging or realtime
I've tried quite a few things but nothing seems to be working
Thank you for your insights and help
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
340
Bug Reports
89
Feature Requests
7
Support
88
Layers
132
General
24
In this Discussion
aaronpk
January 2013
andressepulveda
January 2013
Erpc1ismYHcfCEGp
January 2013
Powered by Vanilla