APAddressBook icon indicating copy to clipboard operation
APAddressBook copied to clipboard

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

Open techwizardg opened this issue 7 years ago • 3 comments

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

techwizardg avatar Apr 28 '17 13:04 techwizardg

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

belkevich avatar Jun 07 '17 13:06 belkevich

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

On Wed, Jun 7, 2017 at 7:01 PM, Alexey Belkevich [email protected] 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 .

techwizardg avatar Jun 07 '17 13:06 techwizardg

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.

ortizroberto avatar Feb 09 '19 16:02 ortizroberto