innovify interview question

How location will update when app is in not running state?