Reputation: 674
My final goal is to calculate how much time a user is spending at a specific location. Therefore I would like to make the application aware of when a user arrives and leaves a specific location, so I can calculate the time spent there.
Is there a way to get notified when a user arrived at specific location and leaves it in Android and iOS? It does not need to be instant, one-two minutes of miscalculation are fine.
Thank you in advance!
Upvotes: 2
Views: 1262
Reputation: 9346
And for iOS it's called (surprisingly) Location Services - what you need is the Region Monitoring.
Upvotes: 1
Reputation: 207
On Android platform, your can try the Geofencing API introduced at Google I/O 2013
Within the API document, they provide a good example project.
Upvotes: 1