Getting users location silently

88 Views Asked by At

In the process of developing a travelling application, let's say the user have a flight from LAX to JFK at 6:00 PM, is it possible to get the users location silently before the departure time (i..e 5:00 PM) and the users location after arrival?

I'm trying to achieve this using While in use CoreLocation authorization. Is it possible for example to execute some code on the triggering of a local notification? Or maybe I should look for another way to achieve this, for exmaple Region Monitoring?

I'm just looking for hints on how to achieve such behavior.

0

There are 0 best solutions below