Alterplay / APAddressBook

Easy access to iOS address book
MIT License
1.38k stars 193 forks source link

StartObserverChangeswithCallback gets fired multiple time even for a single change in address book #160

Open techwizardg opened 7 years ago

techwizardg commented 7 years ago

We are facing an issue .Our requirement is that when ever there is change in Phone book we need to listen for it and act on it based on last modified date. When i perform a change in Native phone book (i.e. one change) the call back is getting fired multiple times. Are we doing something wrong?

Is our understanding right that the call back will get called only once for a change

belkevich commented 7 years ago

Yes, it should be called only once. Try Example app with your device. Does it call multiple times? Also, please, provide some code.

techwizardg commented 7 years ago

The example app also gets called multiple times. Would provide snippets soon

On Wed, Jun 7, 2017 at 7:01 PM, Alexey Belkevich notifications@github.com wrote:

Yes, it should be called only once. Try Example app with your device. Does it call multiple times? Also, please, provide some code.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Alterplay/APAddressBook/issues/160#issuecomment-306795387, or mute the thread https://github.com/notifications/unsubscribe-auth/AM14iqCAXCU02rlY-QqHtWJ8IYt0u-Gfks5sBqY9gaJpZM4NLfIR .

ortizroberto commented 5 years ago

I am facing the same issue, even if I go to the Contacts App and don't change anything when I get back startObserveChanges gets fired.