You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since note is included, and most apps will be missing the required entitlements for this field, no contacts will be returned in the query for the contact to delete.
In fact, I think no fields are necessary to fetch when the goal is to delete the contact.
varkeysToFetch: Array<any>=['givenName','familyName','middleName','namePrefix','nameSuffix','phoneticGivenName','phoneticMiddleName','phoneticFamilyName','nickname','jobTitle','departmentName','organizationName','note','phoneNumbers','emailAddresses','postalAddresses','urlAddresses','imageData'];// All Properties that we are changing
The same goes for fetch operations, the note probably shouldn't be included by default. But that's already configurable for the API-user, so it's not that critical 🙂
According to apple documentation, to access the contact notes you'll have to explicitly declare that you need to do this (with an entitlement), and I'm pretty sure you'll be going through a tougher review process if you do.
The text was updated successfully, but these errors were encountered:
fpaaske
changed the title
[@nativescript/contacs][iOS] 'note' should not be included keysToFetch during delete()
[@nativescript/contacs][iOS] 'note' should not be included in keysToFetch during delete()
Sep 8, 2022
Agreed thanks for tracking this - it’s always been chore dealing with the note capability when it’s rarely needed in common cases. Would you like to submit a PR to just remove from defaults? As you mention that can be customized per case if someone does need it.
Uh oh!
There was an error while loading. Please reload this page.
Since
note
is included, and most apps will be missing the required entitlements for this field, no contacts will be returned in the query for the contact to delete.In fact, I think no fields are necessary to fetch when the goal is to delete the contact.
plugins/packages/contacts/models/contact.ios.ts
Line 222 in dca89bb
The same goes for fetch operations, the
note
probably shouldn't be included by default. But that's already configurable for the API-user, so it's not that critical 🙂According to apple documentation, to access the contact notes you'll have to explicitly declare that you need to do this (with an entitlement), and I'm pretty sure you'll be going through a tougher review process if you do.
https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_contacts_notes
The text was updated successfully, but these errors were encountered: