Location

所属分类:iPhone/iOS
开发工具:Objective-C
文件大小:0KB
下载次数:0
上传日期:2020-05-18 02:19:04
上 传 者sh-1993
说明:  iOS 7和8的后台位置更新编程,持续一段时间。继续获取b上的位置...
(Background Location Update Programming for iOS 7 and 8 over an extended period of time. Continue to get location on both foreground and background.)

文件列表:
.DS_Store (8196, 2020-05-17)
LICENSE (1077, 2020-05-17)
Location.xcodeproj/ (0, 2020-05-17)
Location.xcodeproj/project.pbxproj (22758, 2020-05-17)
Location.xcodeproj/project.xcworkspace/ (0, 2020-05-17)
Location.xcodeproj/project.xcworkspace/contents.xcworkspacedata (153, 2020-05-17)
Location.xcodeproj/project.xcworkspace/xcuserdata/ (0, 2020-05-17)
Location.xcodeproj/project.xcworkspace/xcuserdata/random.xcuserdatad/ (0, 2020-05-17)
Location.xcodeproj/project.xcworkspace/xcuserdata/random.xcuserdatad/UserInterfaceState.xcuserstate (21181, 2020-05-17)
Location.xcodeproj/xcuserdata/ (0, 2020-05-17)
Location.xcodeproj/xcuserdata/random.xcuserdatad/ (0, 2020-05-17)
Location.xcodeproj/xcuserdata/random.xcuserdatad/xcschemes/ (0, 2020-05-17)
Location.xcodeproj/xcuserdata/random.xcuserdatad/xcschemes/Location.xcscheme (3580, 2020-05-17)
Location.xcodeproj/xcuserdata/random.xcuserdatad/xcschemes/xcschememanagement.plist (570, 2020-05-17)
Location/ (0, 2020-05-17)
Location/BackgroundTaskManager.h (349, 2020-05-17)
Location/BackgroundTaskManager.m (3231, 2020-05-17)
Location/Base.lproj/ (0, 2020-05-17)
Location/Base.lproj/Main.storyboard (1592, 2020-05-17)
Location/Images.xcassets/ (0, 2020-05-17)
Location/Images.xcassets/AppIcon.appiconset/ (0, 2020-05-17)
Location/Images.xcassets/AppIcon.appiconset/Contents.json (333, 2020-05-17)
Location/Images.xcassets/LaunchImage.launchimage/ (0, 2020-05-17)
Location/Images.xcassets/LaunchImage.launchimage/Contents.json (442, 2020-05-17)
Location/Location-Info.plist (1401, 2020-05-17)
Location/Location-Prefix.pch (344, 2020-05-17)
Location/LocationAppDelegate.h (397, 2020-05-17)
Location/LocationAppDelegate.m (2668, 2020-05-17)
Location/LocationShareModel.h (491, 2020-05-17)
Location/LocationShareModel.m (550, 2020-05-17)
Location/LocationTracker.h (746, 2020-05-17)
Location/LocationTracker.m (10493, 2020-05-17)
Location/LocationViewController.h (210, 2020-05-17)
Location/LocationViewController.m (505, 2020-05-17)
Location/en.lproj/ (0, 2020-05-17)
Location/en.lproj/InfoPlist.strings (45, 2020-05-17)
Location/main.m (344, 2020-05-17)
LocationTests/ (0, 2020-05-17)
LocationTests/LocationTests-Info.plist (695, 2020-05-17)
LocationTests/LocationTests.m (630, 2020-05-17)
... ...

Background Location Update Programming for iOS 7 and iOS 8 ============== Most of the solutions before iOS 7 work well because during that time the system does not have multitasking and the system does not automatically move the app from background mode to suspended mode. So, if your app needs consistent location update from the device, you will have to implement a solution that constantly refresh the app when it is in background mode so that it has a short period of time in executing the code and send the location to your server. I have personally used a few weeks of time in testing various solutions that I found from StackOverFlow and also Apple Developer Forum but I didn't have much luck. I only managed to get the consistent location update on the background in iOS 7 by combining a few solutions together with my own tweaks. The solution that I am provided might not be elegant but it is able to do what I need to do. I am constantly looking for a better solution when I have time. I am glad that this solution helps some other iOS developers who are developing location based application. So far, this is the most popular post on my blog. If you have any question, you may join us for a discussion here: [Background Location Update Programming for iOS 7 and 8](https://mobileoop.com/background-location-update-programming-for-ios-7 "Background Location Update Programming for iOS 7 and 8"). Update on 26 September 2014: I have updated the solution to work on iOS 8. Update on 14 October 2014: I have Moved the delay10Seconds timer to become a share property. Personal Note ============== Currently, I am working as a [Senior iOS Developer in Singapore](https://mobileoop.com/ "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

近期下载者

相关文件


收藏者