joshuapinter / react-native-unified-contacts

Your best friend when working with the latest and greatest Contacts Framework in iOS 9+ in React Native.
MIT License
158 stars 56 forks source link

Add contact notes #81

Open jakecronin opened 6 years ago

jakecronin commented 6 years ago

It does not seem possible to add notes to a contact.

While notes are listed in the example contact record, when I try adding a contact with a notes field, the resulting contact does not have any notes in it. I've tried spelling the field "notes", "Notes", "note", and "notes".

Are there any solutions to add notes to a contact?

joshuapinter commented 6 years ago

Is this for iOS, Android or both?

I haven't touched this for awhile but if you look at the Contact Object you can see the following note key:

"note": "Note",

I would have assumed that if you pass that in with your other Contact details when adding or updating a Contact, it should just work. But if it doesn't, that sounds like a bug.

jakecronin commented 6 years ago

I tried with a physical iOS phone and iOS simulator.

I am testing with this object.

const contactData = {
  givenName: 'Captain',
  familyName: 'Notes',
  note: 'test note',
  Note: 'Test Note',
  notes: 'test notes',
  Notes: 'Test Notes',
};

The first and last name save, but the notes do not.

I have also had success adding phone numbers and emails, but I cannot get the note to save.

joshuapinter commented 6 years ago

Are you able to dig into this and see what's going on? Seems like a good first issue to fix.