Skip to content
프로젝트

voyage11/GettingLocationWhenSuspended

GitHub에서 보기

소개

How to get location updates from the iOS devices even when the app is not active/in the background. There is a way to get the location update even when the app is killed/terminated by the user or iOS.

웹 및 앱 개발

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Getting Location Updates for iOS 7 and 8 Even when the App is Killed/Terminated/Suspended

A couple months ago, I found a way to get the location update from iOS 7 and 8 even when the app is not active on foreground and not in the background. Yes, you may get the GPS coordinates from the iOS devices even when the app is killed/terminated either by the user or the iOS itself.

Steps to Test this Solution

Here are the steps to use this solution:-

1. Download the project from Git Hub.
2. Change to your own Bundle Identifier (If need to)
3. Connect your iPhone with your mac.
4. Launch the app into your iPhone.
5. Killed the app. (Double tap and remove the app from the App Preview)
6. Travel around with your iPhone for a few days.
7. Download the LocationArray.plist to inspect from the File Sharing interface in iTunes.
8. From the PLIst, you will see something like the screen shot below:-

Getting Location Even When the App is Suspended/Killed/Terminated

When you see the key “UIApplicationLaunchOptionsLocationKey” under “Resume“, it means that the iOS has relaunched the app after the devices has moving significantly from the last known location. If you create a new location Manager instance, you will get new location from delegate method “didUpdateLocations“.

For the detail information, Please read: Getting Location Updates for iOS 7 and 8 when the App is Killed/Terminated/Suspended.

Personal Note

Currently, I am working as a Senior iOS Developer in Singapore. I might not be free to keep this solution updated. Please check the changes on the latest iOS to make sure that the solutions works well. Thanks.

Thanks.

Ricky

관련 프로젝트 살펴보기

불러오는 중…