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

Added iOS 8 support for location service requests #8

Merged
merged 2 commits into from Sep 26, 2014
Merged

Added iOS 8 support for location service requests #8

merged 2 commits into from Sep 26, 2014

Conversation

tomknig
Copy link

@tomknig tomknig commented Sep 2, 2014

Hi there,

according to Apples documentation of CLLocationManager (https://developer.apple.com/library/prerelease/ios/documentation/CoreLocation/Reference/CLLocationManager_Class/index.html#//apple_ref/occ/instm/CLLocationManager/) it is required to call either requestWhenInUseAuthorization or requestAlwaysAuthorization on a CLLocationManager before you start updating the location under iOS 8.
It is also necessary to define - depending on the chosen authorization type - either NSLocationWhenInUseUsageDescription or NSLocationAlwaysUsageDescription in the projects Info.plist.

I have added an enum ClusterLocationAuthorizationType as well as a new method to request the permissions for a specific authorization type. Backwards compatiblity is maintained by letting the former method definition choose ClusterLocationAuthorizationTypeAlways by default.

Cheers,
Tom

TomKnig added 2 commits September 2, 2014 11:07
…is necessary to support location services on iOS 8
… within the completion block of location permission requests
@dchohfi
Copy link

dchohfi commented Sep 17, 2014

+1

1 similar comment
@jkoroniak
Copy link

+1

rsattar added a commit that referenced this pull request Sep 26, 2014
Added iOS 8 support for location service requests
@rsattar rsattar merged commit cd25ea1 into rsattar:master Sep 26, 2014
@rsattar
Copy link
Owner

rsattar commented Sep 26, 2014

Sorry it took so long to review this, this is great! Merged.

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.

None yet

4 participants