Fix #12, update counter and location details when app resumes from background.