I’m creating messaging app like whatsapp. In my message app, my contacts list doesn’t refresh anymore. I have added some new contacts on my iOS and i don’t see them on my contact list, But i receive messages from them and only the number shows.
I can achieve by manually clicking a menu “Refresh contacts”. It works. But how can i achieve AutoRefresh contacts list? How can i detect ios addressbook changes?
You need to register for the CNContactsStoreDidChange
notification so you know when it's time to refresh your list.