Skip to content

LocationAlways callback when selecting locationWhenInUse #122

@sipanhf

Description

@sipanhf

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
            }
        })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions