delba / Permission

A unified API to ask for permissions on iOS
MIT License
2.91k stars 323 forks source link

Printing denied without the dialog is being clicked either on Don't allow or ok when asking permission for Notifications #22

Closed gitton closed 8 years ago

gitton commented 8 years ago

Printing denied without the dialog is being clicked either on Don't allow or ok

let permission: Permission = .Notifications(categories: nil) permission.request { status in switch status { case .Authorized: print("authorized") case .Denied: print("denied") case .Disabled: print("disabled") case .NotDetermined: print("not determined") }

delba commented 8 years ago

Printing denied without the dialog is being clicked either on Don't allow or ok

What do you mean?

gitton commented 8 years ago

it is calling case .Denied when permission.request is called before the user response (works fine with permission like contacts etc)

delba commented 8 years ago

I can't reproduce. Which version are you using?

gitton commented 8 years ago

version 1.3

delba commented 8 years ago

I still can't reproduce. What's the result of permission.status ?

gitton commented 8 years ago

NotDetermined

delba commented 8 years ago

Mmmm... Sorry but I don't see. Maybe update the lib like you did https://github.com/delba/Permission/issues/21 ?