codebytere / codebytere/node-mac-contacts

Fetching new contacts doesn't include recently added contact

Offen
#38 7 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @codebytere Auf GitHub ansehen
bug
Vorherrschende Sprache
Objective-C++
Sterne
86
Forks
18
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Hello, in an Electron app, I am finding that when I'm using this library to add a new contact, I don't see that same contact returned in my "read" operation even though I see it in my Apple Contacts App.

## Steps:
1. Get the list of contacts using `contacts.getAllContacts()`
2. Create a new contact using `contacts.addNewContact(content)`
3. Get the list of contacts again using `contacts.getAllContacts()`

## Expected Result
The new contact would appear in both the Mac Contacts App and also in the list fetched in Step no. 3

## Actual Result
The new contact DID appear in Mac Contacts App, but it did not appear in the list fetched in Step no. 3
When I

Using version 1.6.0 of `node-mac-contacts`
When I CMD+R in the electron app, the operation then fetches the newly added contact correctly

image

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.