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

Not receiving Notifications in swift #68

Open
wethanet opened this issue Jan 17, 2015 · 0 comments
Open

Not receiving Notifications in swift #68

wethanet opened this issue Jan 17, 2015 · 0 comments

Comments

@wethanet
Copy link

Hi

Love the library, not only does it make addressBook much nicer to deal with, but it seems so much quicker than other libraries I've tried.

I'm hitting an issue in a swift app receiving ChangeNotifications I'm trying to register for address book updates in swift, however I don't seem to be receiving the notifications at all.

I've tried both

NSNotificationCenter.defaultCenter().addObserverForName(RHAddressBookExternalChangeNotification, object: nil, queue: nil) { (note: NSNotification!) -> Void in
            println("address book changed")
        }

and

NSNotificationCenter.defaultCenter().addObserver(self, selector: Selector("addressBookChanged:"), name: RHAddressBookExternalChangeNotification, object: nil)

without success. I'm hoping that rather than a NotificationCenter problem between the library and swift that it's my implementation or expectation.

I'm expecting to receive a notification if I have the app backgrounded, and add, edit or delete a contact, even then forgrounding the app doesn't result in the notification being raised.

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

1 participant