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

Error is not called first time if use clicks "Don't allow" #142

Closed
zilions opened this issue Oct 5, 2016 · 1 comment
Closed

Error is not called first time if use clicks "Don't allow" #142

zilions opened this issue Oct 5, 2016 · 1 comment

Comments

@zilions
Copy link

zilions commented Oct 5, 2016

If the user decides to not allow access to their contact book, an error is never called.

Although if the app is closed and then reopened, the error is called successfully.

This is the code I am using:

self.addressBook.loadContacts { (contacts: [APContact]?, error: Error?) in
        if let uwrappedContacts = contacts {
            print(uwrappedContacts)
        }
        else if let unwrappedError = error {
            print(unwrappedError)
        }
    }

As stated above, print(unwrappedError) is only ever called if the user has denied access to their contact book AFTER closing and opening the application.

@belkevich
Copy link
Contributor

Fixed. Check out version 0.3.0

P.S. Thank you for issue

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

No branches or pull requests

2 participants