what’s new in core location - apple developer · what’s new in core location location...
TRANSCRIPT
![Page 1: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/1.jpg)
© 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from Apple.
What’s New in Core Location
Session 706 Stephen Rhee Engineering Manager
Core OS
![Page 2: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/2.jpg)
What’s New in Core Location
![Page 3: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/3.jpg)
What’s New in Core Location
Location authorization
![Page 4: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/4.jpg)
What’s New in Core Location
Location authorization
Visit monitoring
![Page 5: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/5.jpg)
What’s New in Core Location
Location authorization
Visit monitoring
Indoor positioning
![Page 6: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/6.jpg)
IntroductionA brief history
![Page 7: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/7.jpg)
IntroductionA brief history
iOS 2
Location
![Page 8: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/8.jpg)
IntroductionA brief history
iOS 2
Location
iOS 3
Heading
![Page 9: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/9.jpg)
IntroductionA brief history
iOS 2
Location
iOS 3
Heading
iOS 4
Backgroundlocation
Region monitoring
Significant location changes
![Page 10: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/10.jpg)
IntroductionA brief history
iOS 2
Location
iOS 3
Heading
iOS 5
Geocoding
iOS 4
Backgroundlocation
Region monitoring
Significant location changes
![Page 11: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/11.jpg)
IntroductionA brief history
iOS 2
Location
iOS 3
Heading
iOS 5
Geocoding
iOS 6
Deferred locationupdates
iOS 4
Backgroundlocation
Region monitoring
Significant location changes
![Page 12: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/12.jpg)
IntroductionA brief history
iOS 2
Location
iOS 3
Heading
iOS 5
Geocoding
iOS 6
Deferred locationupdates
iOS 7
iBeacon
iOS 4
Backgroundlocation
Region monitoring
Significant location changes
![Page 13: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/13.jpg)
![Page 14: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/14.jpg)
Apps using location680,000
![Page 15: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/15.jpg)
Apps using location680,000
Navigation
![Page 16: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/16.jpg)
Apps using location680,000
NavigationTravel
![Page 17: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/17.jpg)
Apps using location680,000
NavigationTravel
Fitness
![Page 18: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/18.jpg)
Apps using location680,000
NavigationTravel
Fitness
Shopping
![Page 19: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/19.jpg)
Apps using location680,000
NavigationTravel
Fitness
Shopping
Social
![Page 20: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/20.jpg)
Apps using location680,000
NavigationTravel
Fitness
Shopping
SocialGaming
![Page 21: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/21.jpg)
IntroductionLocation indication
![Page 22: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/22.jpg)
Status bar icon
IntroductionLocation indication
![Page 23: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/23.jpg)
Status bar icon• Solid
IntroductionLocation indication
![Page 24: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/24.jpg)
Status bar icon• Solid
- Location
- Ranging
- Significant location changes
IntroductionLocation indication
![Page 25: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/25.jpg)
Status bar icon• Solid
- Location
- Ranging
- Significant location changes
IntroductionLocation indication
![Page 26: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/26.jpg)
Status bar icon• Solid
- Location
- Ranging
- Significant location changes
• Hollow
IntroductionLocation indication
![Page 27: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/27.jpg)
Status bar icon• Solid
- Location
- Ranging
- Significant location changes
• Hollow
- Region monitoring only
IntroductionLocation indication
![Page 28: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/28.jpg)
Status bar icon• Solid
- Location
- Ranging
- Significant location changes
• Hollow
- Region monitoring only
IntroductionLocation indication
![Page 29: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/29.jpg)
IntroductionLocation Services settings
![Page 30: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/30.jpg)
Settings > Privacy > Location Services
IntroductionLocation Services settings
![Page 31: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/31.jpg)
Settings > Privacy > Location Services• Global control
IntroductionLocation Services settings
![Page 32: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/32.jpg)
Settings > Privacy > Location Services• Global control
• Per app control
IntroductionLocation Services settings
![Page 33: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/33.jpg)
Settings > Privacy > Location Services• Global control
• Per app control
• Per app usage
IntroductionLocation Services settings
![Page 34: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/34.jpg)
Settings > Privacy > Location Services• Global control
• Per app control
• Per app usage
- Recent
IntroductionLocation Services settings
![Page 35: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/35.jpg)
Settings > Privacy > Location Services• Global control
• Per app control
• Per app usage
- Recent
- Within last 24 hours
IntroductionLocation Services settings
![Page 36: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/36.jpg)
Settings > Privacy > Location Services• Global control
• Per app control
• Per app usage
- Recent
- Within last 24 hours
- Region monitoring
IntroductionLocation Services settings
![Page 37: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/37.jpg)
IntroductionLocation authorization
![Page 38: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/38.jpg)
IntroductionLocation authorization
Request for authorization • For all location functionality
![Page 39: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/39.jpg)
IntroductionLocation authorization
Request for authorization • For all location functionality
Text is customizable by the app
![Page 40: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/40.jpg)
Location Authorization
![Page 41: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/41.jpg)
Location AuthorizationAuthorization types
![Page 42: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/42.jpg)
Location AuthorizationAuthorization types
Continuous Updates
Location
Background location
Ranging
![Page 43: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/43.jpg)
Location AuthorizationAuthorization types
Continuous Updates
Location
Background location
Ranging
Location Monitoring
Region monitoring
Significant location changes
![Page 44: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/44.jpg)
Location AuthorizationAuthorization types
Continuous Updates
Location
Background location
Ranging
Always
✓
✓
✓
Location Monitoring
Region monitoring
Significant location changes
✓
✓
![Page 45: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/45.jpg)
Location AuthorizationAuthorization types
Continuous Updates
Location
Background location
Ranging
Always
✓
✓
✓
WhenInUse
✓
✓
✓
Location Monitoring
Region monitoring
Significant location changes
✓
✓
![Page 46: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/46.jpg)
Location AuthorizationBackground location
![Page 47: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/47.jpg)
Continuous background location • Specified statically by the app
• Started in the foreground
• Available with WhenInUse authorization
Location AuthorizationBackground location
![Page 48: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/48.jpg)
Continuous background location • Specified statically by the app
• Started in the foreground
• Available with WhenInUse authorization
Location AuthorizationBackground location
![Page 49: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/49.jpg)
Continuous background location • Specified statically by the app
• Started in the foreground
• Available with WhenInUse authorization
Location in the background • Invoked from the background
- For example, Background App Refresh
• Requires Always authorization
Location AuthorizationBackground location
![Page 50: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/50.jpg)
Location AuthorizationMultitasking
![Page 51: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/51.jpg)
Location AuthorizationMultitasking
App switcher quit • Stops continuous background location
• Does not stop location monitoring
![Page 52: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/52.jpg)
Location AuthorizationMultitasking
App switcher quit • Stops continuous background location
• Does not stop location monitoring
Background App Refresh • No longer disables location
![Page 53: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/53.jpg)
Location AuthorizationWhat the user sees
![Page 54: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/54.jpg)
Location AuthorizationRequesting authorization
![Page 55: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/55.jpg)
Location AuthorizationRequesting authorization
Apps explicitly request authorization • For either WhenInUse or Always
![Page 56: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/56.jpg)
Location AuthorizationRequesting authorization
Apps explicitly request authorization • For either WhenInUse or Always
![Page 57: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/57.jpg)
Location AuthorizationRequesting authorization
Apps explicitly request authorization • For either WhenInUse or Always
Dialog will only be presented once
![Page 58: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/58.jpg)
Location AuthorizationRequesting authorization
Apps explicitly request authorization • For either WhenInUse or Always
Dialog will only be presented once
Text is customizable by the app
![Page 59: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/59.jpg)
Location AuthorizationRequesting authorization
Apps explicitly request authorization • For either WhenInUse or Always
Dialog will only be presented once
Text is customizable by the app
![Page 60: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/60.jpg)
Location AuthorizationAlways authorization
![Page 61: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/61.jpg)
Location AuthorizationAlways authorization
User will be asked again a few days later • Only if Always authorization exercised
![Page 62: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/62.jpg)
Location AuthorizationAlways authorization
User will be asked again a few days later • Only if Always authorization exercised
![Page 63: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/63.jpg)
Location AuthorizationAlways authorization
User will be asked again a few days later • Only if Always authorization exercised
Text is customizable by the app
![Page 64: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/64.jpg)
Location AuthorizationLocation Services settings
![Page 65: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/65.jpg)
Location AuthorizationLocation Services settings
Apps support WhenInUse and/or Always • Specified statically by the app
![Page 66: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/66.jpg)
Location AuthorizationLocation Services settings
Apps support WhenInUse and/or Always • Specified statically by the app
![Page 67: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/67.jpg)
Location AuthorizationLocation Services settings
Apps support WhenInUse and/or Always • Specified statically by the app
![Page 68: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/68.jpg)
Location AuthorizationLocation Services settings
Apps support WhenInUse and/or Always • Specified statically by the app
![Page 69: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/69.jpg)
Location AuthorizationLocation Services settings
Apps support WhenInUse and/or Always • Specified statically by the app
![Page 70: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/70.jpg)
Location AuthorizationApp settings
![Page 71: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/71.jpg)
Location AuthorizationApp settings
Now has link to Privacy • Includes Location Services
![Page 72: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/72.jpg)
Location AuthorizationApp settings
Now has link to Privacy • Includes Location Services
![Page 73: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/73.jpg)
Location AuthorizationApp settings
Now has link to Privacy • Includes Location Services
![Page 74: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/74.jpg)
Location AuthorizationApp settings
Now has link to Privacy • Includes Location Services
![Page 75: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/75.jpg)
Location AuthorizationApp settings
Now has link to Privacy • Includes Location Services
Now able to open Settings directly for the app [[UIApplication sharedApplication] openURL: [NSURL URLWithString: UIApplicationOpenSettingsURLString]];
![Page 76: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/76.jpg)
Location AuthorizationDeveloper adoption
![Page 77: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/77.jpg)
Location AuthorizationAdoption
![Page 78: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/78.jpg)
Location AuthorizationAdoption
Info.plist keys
![Page 79: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/79.jpg)
Location AuthorizationAdoption
Info.plist keys
Authorization status enum values
![Page 80: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/80.jpg)
Location AuthorizationAdoption
Info.plist keys
Authorization status enum values
Authorization request APIs
![Page 81: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/81.jpg)
Location AuthorizationAdoption—Info.plist keys
![Page 82: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/82.jpg)
NSLocationUsageDescription
Location AuthorizationAdoption—Info.plist keys
![Page 83: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/83.jpg)
NSLocationUsageDescriptionNSLocationAlwaysUsageDescriptionNSLocationWhenInUseUsageDescription
Location AuthorizationAdoption—Info.plist keys
At least one is mandatory
![Page 84: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/84.jpg)
Location AuthorizationAdoption—Authorization status enum values
![Page 85: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/85.jpg)
CLAuthorizationStatuskCLAuthorizationStatusNotDeterminedkCLAuthorizationStatusRestrictedkCLAuthorizationStatusDeniedkCLAuthorizationStatusAuthorized
Location AuthorizationAdoption—Authorization status enum values
![Page 86: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/86.jpg)
CLAuthorizationStatuskCLAuthorizationStatusNotDeterminedkCLAuthorizationStatusRestrictedkCLAuthorizationStatusDeniedkCLAuthorizationStatusAuthorizedkCLAuthorizationStatusAuthorizedAlwayskCLAuthorizationStatusAuthorizedWhenInUse
Location AuthorizationAdoption—Authorization status enum values
![Page 87: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/87.jpg)
Location AuthorizationAdoption—Authorization request APIs
![Page 88: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/88.jpg)
Location AuthorizationAdoption—Authorization request APIs
- (void)requestAlwaysAuthorization;
![Page 89: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/89.jpg)
Location AuthorizationAdoption—Authorization request APIs
- (void)requestAlwaysAuthorization;- (void)requestWhenInUseAuthorization;
![Page 90: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/90.jpg)
Location AuthorizationAdoption recap
![Page 91: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/91.jpg)
Location AuthorizationAdoption recap
Decide which authorization
![Page 92: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/92.jpg)
Location AuthorizationAdoption recap
Decide which authorization• What location functionality does your app use?
![Page 93: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/93.jpg)
Location AuthorizationAdoption recap
Decide which authorization• What location functionality does your app use?
• Is it mandatory or nice to have?
![Page 94: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/94.jpg)
Location AuthorizationAdoption recap
Decide which authorization• What location functionality does your app use?
• Is it mandatory or nice to have?
Add the keys to your Info.plist
![Page 95: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/95.jpg)
Location AuthorizationAdoption recap
Decide which authorization• What location functionality does your app use?
• Is it mandatory or nice to have?
Add the keys to your Info.plist• Explain how your app uses location
![Page 96: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/96.jpg)
Location AuthorizationAdoption recap
Decide which authorization• What location functionality does your app use?
• Is it mandatory or nice to have?
Add the keys to your Info.plist• Explain how your app uses location
Make the right API call
![Page 97: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/97.jpg)
Location AuthorizationAdoption recap
Decide which authorization• What location functionality does your app use?
• Is it mandatory or nice to have?
Add the keys to your Info.plist• Explain how your app uses location
Make the right API call• Do it when needed
![Page 98: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/98.jpg)
Location AuthorizationExample—Fitness app
![Page 99: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/99.jpg)
Determine how location is used
Location AuthorizationExample—Fitness app
![Page 100: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/100.jpg)
Determine how location is used• Location
• Background location
Location AuthorizationExample—Fitness app
![Page 101: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/101.jpg)
Determine how location is used• Location
• Background location
Location AuthorizationExample—Fitness app
![Page 102: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/102.jpg)
Determine how location is used• Location
• Background location
Location AuthorizationExample—Fitness app
![Page 103: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/103.jpg)
Determine how location is used• Location
• Background location
Location AuthorizationExample—Fitness app
![Page 104: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/104.jpg)
Determine how location is used• Location
• Background location
Add the key to the app’s information property list
Location AuthorizationExample—Fitness app
![Page 105: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/105.jpg)
Determine how location is used• Location
• Background location
Add the key to the app’s information property list
Location AuthorizationExample—Fitness app
![Page 106: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/106.jpg)
Determine how location is used• Location
• Background location
Add the key to the app’s information property list
Location AuthorizationExample—Fitness app
![Page 107: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/107.jpg)
Determine how location is used• Location
• Background location
Add the key to the app’s information property list
Make the corresponding authorization request API call
Location AuthorizationExample—Fitness app
![Page 108: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/108.jpg)
Determine how location is used• Location
• Background location
Add the key to the app’s information property list
Make the corresponding authorization request API callCLLocationManager *locationManager = [[CLLocationManager alloc] init];locationManager.delegate = self;[locationManager requestWhenInUseAuthorization];[locationManager startUpdatingLocation];
Location AuthorizationExample—Fitness app
![Page 109: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/109.jpg)
Location AuthorizationExample—WelcomeHome app
![Page 110: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/110.jpg)
Determine how location is used
Location AuthorizationExample—WelcomeHome app
![Page 111: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/111.jpg)
Determine how location is used• Region monitoring
Location AuthorizationExample—WelcomeHome app
![Page 112: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/112.jpg)
Determine how location is used• Region monitoring
Add the key to the app’s information property list
Location AuthorizationExample—WelcomeHome app
![Page 113: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/113.jpg)
Determine how location is used• Region monitoring
Add the key to the app’s information property list
Location AuthorizationExample—WelcomeHome app
![Page 114: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/114.jpg)
Determine how location is used• Region monitoring
Add the key to the app’s information property list
Location AuthorizationExample—WelcomeHome app
![Page 115: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/115.jpg)
Determine how location is used• Region monitoring
Add the key to the app’s information property list
Make the corresponding authorization request API call
Location AuthorizationExample—WelcomeHome app
![Page 116: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/116.jpg)
Determine how location is used• Region monitoring
Add the key to the app’s information property list
Make the corresponding authorization request API callCLLocationManager *locationManager = [[CLLocationManager alloc] init];locationManager.delegate = self;CLCircularRegion *region = [[CLCircularRegion alloc] initWithCenter:center radius:radius identifier:identifier];[locationManager requestAlwaysAuthorization];[locationManager startMonitoringForRegion:region];
Location AuthorizationExample—WelcomeHome app
![Page 117: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/117.jpg)
Location AuthorizationExample—AmusementPark app
![Page 118: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/118.jpg)
Determine how location is used
Location AuthorizationExample—AmusementPark app
![Page 119: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/119.jpg)
Determine how location is used• Location
• Region monitoring
Location AuthorizationExample—AmusementPark app
![Page 120: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/120.jpg)
Determine how location is used• Location
• Region monitoring
Add the keys to the app’s information property list
Location AuthorizationExample—AmusementPark app
![Page 121: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/121.jpg)
Determine how location is used• Location
• Region monitoring
Add the keys to the app’s information property list
Location AuthorizationExample—AmusementPark app
![Page 122: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/122.jpg)
Determine how location is used• Location
• Region monitoring
Add the keys to the app’s information property list
Location AuthorizationExample—AmusementPark app
![Page 123: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/123.jpg)
Determine how location is used• Location
• Region monitoring
Add the keys to the app’s information property list
Location AuthorizationExample—AmusementPark app
![Page 124: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/124.jpg)
Determine how location is used• Location
• Region monitoring
Add the keys to the app’s information property list
Location AuthorizationExample—AmusementPark app
![Page 125: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/125.jpg)
Determine how location is used• Location
• Region monitoring
Add the keys to the app’s information property list
Location AuthorizationExample—AmusementPark app
![Page 126: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/126.jpg)
Determine how location is used• Location
• Region monitoring
Add the keys to the app’s information property list
Location AuthorizationExample—AmusementPark app
![Page 127: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/127.jpg)
Determine how location is used• Location
• Region monitoring
Add the keys to the app’s information property list
Make the corresponding authorization request API call
Location AuthorizationExample—AmusementPark app
![Page 128: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/128.jpg)
Determine how location is used• Location
• Region monitoring
Add the keys to the app’s information property list
Make the corresponding authorization request API call// user opened the map view[locationManager requestWhenInUseAuthorization];[locationManager startUpdatingLocation];
Location AuthorizationExample—AmusementPark app
![Page 129: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/129.jpg)
Location AuthorizationExample—AmusementPark app
![Page 130: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/130.jpg)
Location AuthorizationExample—AmusementPark app
Make the corresponding authorization request API call
![Page 131: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/131.jpg)
Location AuthorizationExample—AmusementPark app
Make the corresponding authorization request API call// user activated automatic attraction info mode
![Page 132: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/132.jpg)
Location AuthorizationExample—AmusementPark app
Make the corresponding authorization request API call// user activated automatic attraction info modeCLAuthorizationStatus status = [CLLocationManager authorizationStatus];if (authorizationStatus == kCLAuthorizationStatusDenied || authorizationStatus == kCLAuthorizationStatusWhenInUse) {
![Page 133: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/133.jpg)
Location AuthorizationExample—AmusementPark app
Make the corresponding authorization request API call// user activated automatic attraction info modeCLAuthorizationStatus status = [CLLocationManager authorizationStatus];if (authorizationStatus == kCLAuthorizationStatusDenied || authorizationStatus == kCLAuthorizationStatusWhenInUse) { // present an alert indicating location authorization required // and offer to take the user to Settings for the app via // UIApplication -openUrl: and UIApplicationOpenSettingsURLString}
![Page 134: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/134.jpg)
Location AuthorizationExample—AmusementPark app
Make the corresponding authorization request API call// user activated automatic attraction info modeCLAuthorizationStatus status = [CLLocationManager authorizationStatus];if (authorizationStatus == kCLAuthorizationStatusDenied || authorizationStatus == kCLAuthorizationStatusWhenInUse) { // present an alert indicating location authorization required // and offer to take the user to Settings for the app via // UIApplication -openUrl: and UIApplicationOpenSettingsURLString}[locationManager requestAlwaysAuthorization];[locationManager startMonitoringForRegion:region];
![Page 135: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/135.jpg)
Location AuthorizationTargeting iOS 7 and iOS 8
![Page 136: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/136.jpg)
Location AuthorizationTargeting iOS 7 and iOS 8
Continue to provide the deprecated NSLocationUsageDescription
![Page 137: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/137.jpg)
Location AuthorizationTargeting iOS 7 and iOS 8
Continue to provide the deprecated NSLocationUsageDescription
Guard the request authorization API calls with respondsToSelector:
![Page 138: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/138.jpg)
Location AuthorizationTargeting iOS 7 and iOS 8
Continue to provide the deprecated NSLocationUsageDescription
Guard the request authorization API calls with respondsToSelector:if ([locationManager respondsToSelector: @selector(requestAlwaysAuthorization)]) { [locationManager requestAlwaysAuthorization];}
![Page 139: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/139.jpg)
Location AuthorizationTargeting iOS 7 and iOS 8
Continue to provide the deprecated NSLocationUsageDescription
Guard the request authorization API calls with respondsToSelector:if ([locationManager respondsToSelector: @selector(requestAlwaysAuthorization)]) { [locationManager requestAlwaysAuthorization];}
Continue to use the deprecated kCLAuthorizationStatusAuthorized value
![Page 140: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/140.jpg)
Location AuthorizationLegacy app support
![Page 141: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/141.jpg)
Location AuthorizationLegacy app support
Legacy apps will still continue to work
![Page 142: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/142.jpg)
Location AuthorizationLegacy app support
Legacy apps will still continue to work• Will use Always authorization
![Page 143: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/143.jpg)
Location AuthorizationUpdating your app
![Page 144: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/144.jpg)
Location AuthorizationUpdating your app
Can change supported authorizations between versions
![Page 145: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/145.jpg)
Location AuthorizationUpdating your app
Can change supported authorizations between versions• Will preserve user’s authorization if still supported
![Page 146: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/146.jpg)
Location AuthorizationUpdating your app
Can change supported authorizations between versions• Will preserve user’s authorization if still supported
• Otherwise:
![Page 147: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/147.jpg)
Location AuthorizationUpdating your app
Can change supported authorizations between versions• Will preserve user’s authorization if still supported
• Otherwise:
- Will go from Always to WhenInUse
![Page 148: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/148.jpg)
Location AuthorizationUpdating your app
Can change supported authorizations between versions• Will preserve user’s authorization if still supported
• Otherwise:
- Will go from Always to WhenInUse
- Will go from WhenInUse to prompt again
![Page 149: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/149.jpg)
Location AuthorizationOther frameworks
![Page 150: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/150.jpg)
Location AuthorizationUILocalNotification
![Page 151: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/151.jpg)
Location AuthorizationUILocalNotification
Now supports region-based triggering
![Page 152: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/152.jpg)
Location AuthorizationUILocalNotification
Now supports region-based triggering@property(nonatomic,retain) CLRegion *region;
![Page 153: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/153.jpg)
Location AuthorizationUILocalNotification
Now supports region-based triggering@property(nonatomic,retain) CLRegion *region;
Requires either authorization
![Page 154: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/154.jpg)
Location AuthorizationUILocalNotification
Now supports region-based triggering@property(nonatomic,retain) CLRegion *region;
Requires either authorization• Specify the desired key in the Info.plist
![Page 155: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/155.jpg)
Location AuthorizationUILocalNotification
Now supports region-based triggering@property(nonatomic,retain) CLRegion *region;
Requires either authorization• Specify the desired key in the Info.plist
• Call the corresponding authorization request API
![Page 156: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/156.jpg)
Location AuthorizationMKMapView
![Page 157: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/157.jpg)
Location AuthorizationMKMapView
When displaying the user’s location
![Page 158: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/158.jpg)
Location AuthorizationMKMapView
When displaying the user’s location@property (nonatomic) BOOL showsUserLocation;
![Page 159: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/159.jpg)
Location AuthorizationMKMapView
When displaying the user’s location@property (nonatomic) BOOL showsUserLocation;
Requires either authorization
![Page 160: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/160.jpg)
Location AuthorizationMKMapView
When displaying the user’s location@property (nonatomic) BOOL showsUserLocation;
Requires either authorization• Specify the desired key in the Info.plist
![Page 161: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/161.jpg)
Location AuthorizationMKMapView
When displaying the user’s location@property (nonatomic) BOOL showsUserLocation;
Requires either authorization• Specify the desired key in the Info.plist
• Call the corresponding authorization request API
![Page 162: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/162.jpg)
Location AuthorizationWeb views
![Page 163: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/163.jpg)
Location AuthorizationWeb views
To allow web content that uses HTML5 geolocation
![Page 164: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/164.jpg)
Location AuthorizationWeb views
To allow web content that uses HTML5 geolocation
Requires either authorization
![Page 165: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/165.jpg)
Location AuthorizationWeb views
To allow web content that uses HTML5 geolocation
Requires either authorization• Specify the desired key in the Info.plist
![Page 166: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/166.jpg)
Location AuthorizationWeb views
To allow web content that uses HTML5 geolocation
Requires either authorization• Specify the desired key in the Info.plist
WhenInUse authorization will be requested when needed
![Page 167: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/167.jpg)
Location AuthorizationWeb views
To allow web content that uses HTML5 geolocation
Requires either authorization• Specify the desired key in the Info.plist
WhenInUse authorization will be requested when needed• Request Always authorization in advance if desired
![Page 168: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/168.jpg)
Location AuthorizationAdoption recap
![Page 169: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/169.jpg)
Location AuthorizationAdoption recap
Get ready for iOS 8
![Page 170: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/170.jpg)
Location AuthorizationAdoption recap
Get ready for iOS 8• Think about how you use location
![Page 171: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/171.jpg)
Location AuthorizationAdoption recap
Get ready for iOS 8• Think about how you use location
• Explain it to your users
![Page 172: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/172.jpg)
Location AuthorizationAdoption recap
Get ready for iOS 8• Think about how you use location
• Explain it to your users
• Make the call to request authorization
![Page 173: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/173.jpg)
Visit Monitoring
Brad Jensen Software Engineer
![Page 174: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/174.jpg)
Let’s Write a Journaling App
![Page 175: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/175.jpg)
Let’s Write a Journaling App
Provide the user a list of places they’ve been
![Page 176: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/176.jpg)
Let’s Write a Journaling App
Provide the user a list of places they’ve been
Low noise
![Page 177: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/177.jpg)
Let’s Write a Journaling App
Provide the user a list of places they’ve been
Low noise
Suitable for 24/7 use
![Page 178: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/178.jpg)
Existing APIStandard location service
![Page 179: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/179.jpg)
Existing APIStandard location service
Requires keeping device awake
![Page 180: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/180.jpg)
Existing APIStandard location service
Requires keeping device awake
Requires frequent wifi, cell, or GPS scans
![Page 181: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/181.jpg)
Existing APIStandard location service
Requires keeping device awake
Requires frequent wifi, cell, or GPS scans
Lots of irrelevant data
![Page 182: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/182.jpg)
Existing APIStandard location service
Requires keeping device awake
Requires frequent wifi, cell, or GPS scans
Lots of irrelevant data
Much better suited for navigation
![Page 183: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/183.jpg)
Existing APIImproving standard location service
![Page 184: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/184.jpg)
Existing APIImproving standard location service
Automatic pause
![Page 185: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/185.jpg)
Existing APIImproving standard location service
Automatic pause• Saves power while the device isn’t moving
![Page 186: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/186.jpg)
Existing APIImproving standard location service
Automatic pause• Saves power while the device isn’t moving
• Doesn’t help while it is moving
![Page 187: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/187.jpg)
Existing APIImproving standard location service
Automatic pause• Saves power while the device isn’t moving
• Doesn’t help while it is moving
• Makes sense for navigation
![Page 188: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/188.jpg)
Existing APIImproving standard location service
Automatic pause• Saves power while the device isn’t moving
• Doesn’t help while it is moving
• Makes sense for navigation
Deferred location updates
![Page 189: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/189.jpg)
Existing APIImproving standard location service
Automatic pause• Saves power while the device isn’t moving
• Doesn’t help while it is moving
• Makes sense for navigation
Deferred location updates• Saves power by waking your app less
![Page 190: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/190.jpg)
Existing APIImproving standard location service
Automatic pause• Saves power while the device isn’t moving
• Doesn’t help while it is moving
• Makes sense for navigation
Deferred location updates• Saves power by waking your app less
• Generating locations is expensive
![Page 191: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/191.jpg)
Existing APIImproving standard location service
Automatic pause• Saves power while the device isn’t moving
• Doesn’t help while it is moving
• Makes sense for navigation
Deferred location updates• Saves power by waking your app less
• Generating locations is expensive
• Great for fitness apps
![Page 192: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/192.jpg)
Existing APISignificant location changes
![Page 193: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/193.jpg)
Existing APISignificant location changes
Lower power cost than continuous updates
![Page 194: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/194.jpg)
Existing APISignificant location changes
Lower power cost than continuous updates
Very coarse tracks
![Page 195: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/195.jpg)
Existing APISignificant location changes
Lower power cost than continuous updates
Very coarse tracks
Hard to identify stops
![Page 196: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/196.jpg)
Existing APIRegion monitoring
![Page 197: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/197.jpg)
Existing APIRegion monitoring
Great power efficiency
![Page 198: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/198.jpg)
Existing APIRegion monitoring
Great power efficiency
Relevant data
![Page 199: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/199.jpg)
Existing APIRegion monitoring
Great power efficiency
Relevant data
Needs a specific region to monitor
![Page 200: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/200.jpg)
Existing APIRegion monitoring
Great power efficiency
Relevant data
Needs a specific region to monitor
Limited number of regions
![Page 201: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/201.jpg)
Introducing Visit Monitoring
![Page 202: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/202.jpg)
Introducing Visit Monitoring
Monitors for destinations
![Page 203: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/203.jpg)
Introducing Visit Monitoring
Monitors for destinations
Launches your app when when it detects a visit
![Page 204: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/204.jpg)
Introducing Visit Monitoring
Monitors for destinations
Launches your app when when it detects a visit
Requires always authorization
![Page 205: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/205.jpg)
Introducing Visit Monitoring
Monitors for destinations
Launches your app when when it detects a visit
Requires always authorization
Power efficient
![Page 206: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/206.jpg)
Introducing Visit Monitoring
Monitors for destinations
Launches your app when when it detects a visit
Requires always authorization
Power efficient
Opportunistic location use
![Page 207: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/207.jpg)
Introducing Visit Monitoring
Monitors for destinations
Launches your app when when it detects a visit
Requires always authorization
Power efficient
Opportunistic location use
Utilizes information from the whole system
![Page 208: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/208.jpg)
Introducing Visit Monitoring
Monitors for destinations
Launches your app when when it detects a visit
Requires always authorization
Power efficient
Opportunistic location use
Utilizes information from the whole system
Not tied to landmarks
![Page 209: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/209.jpg)
Anatomy of a Visit
Coffee Shop
Home
![Page 210: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/210.jpg)
Anatomy of a Visit
Coffee Shop
Home
![Page 211: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/211.jpg)
Anatomy of a Visit
Coffee Shop
Home
ArrivalDelivered
ArrivalTime
![Page 212: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/212.jpg)
Anatomy of a Visit
Coffee Shop
Home
ArrivalDelivered
ArrivalTime
![Page 213: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/213.jpg)
Anatomy of a Visit
Coffee Shop
Home
ArrivalDelivered
DepartureTime
ArrivalTime
DepartureDelivered
![Page 214: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/214.jpg)
Visit Monitoring APICLLocationManager
![Page 215: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/215.jpg)
Visit Monitoring APICLLocationManager
@interface CLLocationManager (CLVisitExtensions) - (void)startMonitoringVisits; - (void)stopMonitoringVisits; @end !
![Page 216: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/216.jpg)
Visit Monitoring APICLLocationManager
@interface CLLocationManager (CLVisitExtensions) - (void)startMonitoringVisits; - (void)stopMonitoringVisits; @end !
@protocol CLLocationManagerDelegate<NSObject> @optional - (void)locationManager:(CLLocationManager *)manager didVisit:(CLVisit *)visit; @end
![Page 217: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/217.jpg)
Visit Monitoring APICLVisit
@interface CLVisit : NSObject <NSSecureCoding, NSCopying> @property (nonatomic, readonly, copy) NSDate *arrivalDate; @property (nonatomic, readonly, copy) NSDate *departureDate; @property (nonatomic, readonly) CLLocationCoordinate2D coordinate; @property (nonatomic, readonly) CLLocationAccuracy horizontalAccuracy; @end
![Page 218: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/218.jpg)
Visit Monitoring APICLVisit
@interface CLVisit : NSObject <NSSecureCoding, NSCopying> @property (nonatomic, readonly, copy) NSDate *arrivalDate; @property (nonatomic, readonly, copy) NSDate *departureDate; @property (nonatomic, readonly) CLLocationCoordinate2D coordinate; @property (nonatomic, readonly) CLLocationAccuracy horizontalAccuracy; @end
![Page 219: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/219.jpg)
Visit Monitoring APICLVisit
@interface CLVisit : NSObject <NSSecureCoding, NSCopying> @property (nonatomic, readonly, copy) NSDate *arrivalDate; @property (nonatomic, readonly, copy) NSDate *departureDate; @property (nonatomic, readonly) CLLocationCoordinate2D coordinate; @property (nonatomic, readonly) CLLocationAccuracy horizontalAccuracy; @end
![Page 220: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/220.jpg)
Visit Monitoring APICLVisit
@interface CLVisit : NSObject <NSSecureCoding, NSCopying> @property (nonatomic, readonly, copy) NSDate *arrivalDate; @property (nonatomic, readonly, copy) NSDate *departureDate; @property (nonatomic, readonly) CLLocationCoordinate2D coordinate; @property (nonatomic, readonly) CLLocationAccuracy horizontalAccuracy; @end
![Page 221: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/221.jpg)
Visit Monitoring APINotes
![Page 222: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/222.jpg)
Visit Monitoring APINotes
Values of horizontalAccuracy and coordinate may differ
![Page 223: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/223.jpg)
Visit Monitoring APINotes
Values of horizontalAccuracy and coordinate may differ
Triggers app launches even when quit
![Page 224: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/224.jpg)
Visit Monitoring APINotes
Values of horizontalAccuracy and coordinate may differ
Triggers app launches even when quit
Multiple visits may be delivered
![Page 225: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/225.jpg)
Identifying Arrivals
arrivalDate departureDate
![Page 226: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/226.jpg)
Identifying Arrivals
arrivalDate departureDate
Arrival Arrival estimate [NSDate distantFuture]
![Page 227: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/227.jpg)
Identifying Arrivals
arrivalDate departureDate
Arrival Arrival estimate [NSDate distantFuture]
Departure [NSDate distantPast] OR arrival estimate
Departure estimate
![Page 228: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/228.jpg)
Identifying Arrivals
- (BOOL)isArrivalVisit:(CLVisit *)visit { return [visit.departureDate isEqual:[NSDate distantFuture]]; }
arrivalDate departureDate
Arrival Arrival estimate [NSDate distantFuture]
Departure [NSDate distantPast] OR arrival estimate
Departure estimate
![Page 229: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/229.jpg)
Back to the AppPlan
![Page 230: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/230.jpg)
Back to the AppPlan
Adopt new authorization
![Page 231: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/231.jpg)
Back to the AppPlan
Adopt new authorization
Create a CLLocationManager
![Page 232: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/232.jpg)
Back to the AppPlan
Adopt new authorization
Create a CLLocationManager
Write start and stop methods
![Page 233: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/233.jpg)
Back to the AppPlan
Adopt new authorization
Create a CLLocationManager
Write start and stop methods
Handle visits
![Page 234: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/234.jpg)
Back to the AppAdopt new authorization
![Page 235: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/235.jpg)
Back to the AppAdopt new authorization
![Page 236: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/236.jpg)
Back to the AppCreate a CLLocationManager
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { !
self.locationManager = [[CLLocationManager alloc] init]; self.locationManager.delegate = self; !
return YES; }
![Page 237: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/237.jpg)
Back to the AppWrite start and stop methods
![Page 238: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/238.jpg)
Back to the AppWrite start and stop methods
- (void)startJournaling { [self.locationManager requestAlwaysAuthorization]; [self.locationManager startMonitoringVisits]; }
![Page 239: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/239.jpg)
Back to the AppWrite start and stop methods
- (void)startJournaling { [self.locationManager requestAlwaysAuthorization]; [self.locationManager startMonitoringVisits]; }
- (void)stopJournaling { [self.locationManager stopMonitoringVisits]; }
![Page 240: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/240.jpg)
Back to the AppHandle visits
- (void)locationManager:(CLLocationManager *)manager didVisit:(CLVisit *)visit { // Your turn }
![Page 241: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/241.jpg)
Final WordsAdvice
![Page 242: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/242.jpg)
Final WordsAdvice
Visit monitoring doesn’t replace region monitoring
![Page 243: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/243.jpg)
Final WordsAdvice
Visit monitoring doesn’t replace region monitoring
It also doesn’t replace significant location change monitoring
![Page 244: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/244.jpg)
Final WordsAdvice
Visit monitoring doesn’t replace region monitoring
It also doesn’t replace significant location change monitoring
Try it out
![Page 245: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/245.jpg)
Final WordsAdvice
Visit monitoring doesn’t replace region monitoring
It also doesn’t replace significant location change monitoring
Try it out
See if visit monitoring can do what you need
![Page 246: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/246.jpg)
Final WordsAdvice
Visit monitoring doesn’t replace region monitoring
It also doesn’t replace significant location change monitoring
Try it out
See if visit monitoring can do what you need
Come to our lab session
![Page 247: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/247.jpg)
Final WordsAdvice
Visit monitoring doesn’t replace region monitoring
It also doesn’t replace significant location change monitoring
Try it out
See if visit monitoring can do what you need
Come to our lab session
Respect your users’ privacy
![Page 248: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/248.jpg)
What’s Next?
![Page 249: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/249.jpg)
Indoor Positioning
![Page 250: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/250.jpg)
Indoor Positioning
• Taking Core Location Indoors Marina Tuesday 3:15PM
![Page 251: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/251.jpg)
Summary
![Page 252: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/252.jpg)
Summary
Authorization • Think about how you use location
• Explain it to your users
• Make the call to request authorization
![Page 253: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/253.jpg)
Summary
Authorization • Think about how you use location
• Explain it to your users
• Make the call to request authorization
Visit monitoring • Assess your needs for location
• Respect your users’ privacy
• Try it out
![Page 254: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/254.jpg)
More Information
Craig Keithley MFi and I/O Technologies Evangelist [email protected]
Documentation Core Location Framework Reference http://developer.apple.com/library/ios/documentation/CoreLocation/Reference/CoreLocation_Framework/_index.html
Location and Maps Programming Guide http://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/LocationAwarenessPG/Introduction/Introduction.html
Apple Developer Forums http://devforums.apple.com
![Page 255: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/255.jpg)
Related Sessions
• Introducing the Modern WebKit API Nob Hill Tuesday 2:00PM
• Taking Core Location Indoors Marina Tuesday 3:15PM
• Writing Energy Efficient Code, Part 2 Russian Hill Wednesday 11:30AM
• What’s New in iOS Notifications Nob Hill Wednesday 2:00PM
• User Privacy in iOS and OS X Nob Hill Thursday 2:00PM
![Page 256: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/256.jpg)
Labs
• Core Location Lab Core OS Lab B Thursday 12:45PM
![Page 257: What’s New in Core Location - Apple Developer · What’s New in Core Location Location authorization Visit monitoring Indoor positioning. Introduction A brief history. ... Location](https://reader034.vdocuments.us/reader034/viewer/2022042323/5f0dccbd7e708231d43c2583/html5/thumbnails/257.jpg)