Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Errata process + fixes for Handling Location Changes in the Background #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

brunobowden
Copy link

No description provided.

Call requestAlwaysAuthorization()
Add and logging to help explain what’s going on
locationManager.requestAlwaysAuthorization()

// This can be called immediately but not updates will not
// be received until the user has approved access
locationManager.startUpdatingLocation()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this line itself will ask for permission. I don't think we have to manually ask for permission. Please clarify 👍

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was a change between iOS 7 and iOS 8 that it became required:

http://stackoverflow.com/questions/24062509/ios-8-location-services-not-working

I'd suggest adding a further comment saying that it was necessary as of iOS
8 to make that doubly clear.

On Sun, Oct 19, 2014 at 3:54 AM, Vandad Nahavandipoor <
[email protected]> wrote:

In chapter-concurrency/Handling Location Changes in the
Background/Handling Location Changes in the Background/AppDelegate.swift:

 locationManager.delegate = self
  • // Asks user for app permission to receive background location changes
  • locationManager.requestAlwaysAuthorization()
  • // This can be called immediately but not updates will not
  • // be received until the user has approved access
    locationManager.startUpdatingLocation()

I believe this line itself will ask for permission. I don't think we have
to manually ask for permission. Please clarify [image: 👍]


Reply to this email directly or view it on GitHub
https://github.com/vandadnp/iOS-8-Swift-Programming-Cookbook/pull/2/files#r19059447
.

http://www.twitter.com/brunobowden
http://www.facebook.com/brunobowden
http://www.linkedin.com/in/brunobowden

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants