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

LocationAlways callback when selecting locationWhenInUse #122

Open
sipanhf opened this issue Nov 20, 2017 · 0 comments
Open

LocationAlways callback when selecting locationWhenInUse #122

sipanhf opened this issue Nov 20, 2017 · 0 comments

Comments

@sipanhf
Copy link

sipanhf commented Nov 20, 2017

Hi.

I am developing an app that asks the users for permission locationAlways. The problem I am experiencing is:
asking the locationAlways permission will present the permissions dialog. First time the dialog is presented one of the options is "Only While Using the App". The callback function does however not get called when selecting this option.

This is my code

        let permission = .locationAlways
        permission.request({ (status) in
            print("\(status.rawValue)")  // closure never gets called
            if status == .authorized{
                // do something
            }else{
                // do something else
            }
        })
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 a pull request may close this issue.

1 participant