Is there an example? Is it possibile to use GeoZone when application is in Background?

asked 18 Jun '14, 20:58
adepaoli's gravatar image

adepaoli
5113

For iOS, you can find example with geotracking here: https://github.com/Pushwoosh/pushwoosh-sdk-samples/tree/master/Native/iPhone.

And yes, it is possible to use geotracking when application is in background. There are two options:

  • You have defined "location" value for UIBackgroundModes key in info.plist (also named "Required background modes" -> "App registers for location updates"). In this case, when your app is in background, it uses standard location services (GPS & Wi-Fi crowdsourcing database). This is very accurate way for geotracking, which allows you to use geozones with very small radius (>10m) but it drains your battery very quickly.
  • You have not defined "location" value for UIBackgroundModes key in info.plist. In this case, app uses iOS geofencing technology and cell-towers for getting location. This is not so accurate way, but it does not drain battery as GPS. With geofencing, minimum radius for geozone must be >100m.

When app in foreground, it always uses standard location services (GPS), independently of UIBackgroundModes key. When app is not running (killed by user), it uses geofencing for updating location.

Also keep in mind that disabled Wi-Fi decreases geotracking accuracy very hard.

All the above is actual for iOS.

permanent link
answered 19 Jun '14, 13:16
Fectum's gravatar image

Fectum
2604

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×446
×352
×120

question asked: 18 Jun '14, 20:58

question was seen: 3,374 times

last updated: 19 Jun '14, 13:16