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
Currently, the following fields/properties are not present in RawContactEntity;
DisplayNamePrimary
DisplayNameAlt
Account
AccountName
AccountType
Options
Starred
CustomRingtone
SendToVoicemail
This means that standard query APIs are not able to return any of the above data...
This was due to how the query APIs were originally implemented (conditionally skipping the RawContacts table). However, the RawContacts table is always queried. There is no longer a reason why these fields/properties should not be included in the RawContactEntity.
Solution
Add the aforementioned RawContact fields/properties to RawContactEntity.
Remove all getter extensions provided in contacts.core.util.RawContactOptions
Apply the changes to the following query APIs;
⚠️ Ensure that the where clause of Data table queries do NOT contain fields that it does not have (otherwise an exception will be thrown)! In particular, the SyncColumns Account name and type are available in the RawContacts table and not the Data table. In order to do this, do not add to the DataRawContactsFields. Instead, provide another function for including RawContact table specific fields, something like fun include(vararg fields: RawContactsField): Query
Ensure that the aforementioned RawContact fields are included by default, when including "all" fields.
Query
BroadQuery
PhoneLookupQuery
ProfileQuery
Additionally;
Update sample app, if necessary
Update relevant documentation in code
Update relevant documentation in docs
Verify that there are no regressions for related API functions
The text was updated successfully, but these errors were encountered:
vestrel00
changed the title
Add display name, account, and options to RawContactEntity
Add display name, account, and options properties/fields to RawContactEntity
Oct 21, 2022
vestrel00
changed the title
Add display name, account, and options properties/fields to RawContactEntity
Add display name, account, and options properties to RawContactEntity
Oct 21, 2022
vestrel00
changed the title
Add display name, account, and options properties to RawContactEntity
Add display name, account, and options properties to RawContactEntityOct 31, 2022
vestrel00
changed the title
Add display name, account, and options properties to RawContactEntity
Add display name, account, and options properties to RawContactEntity
Oct 31, 2022
Problem
Currently, the following fields/properties are not present in
RawContactEntity
;DisplayNamePrimary
DisplayNameAlt
Account
AccountName
AccountType
Options
Starred
CustomRingtone
SendToVoicemail
This means that standard query APIs are not able to return any of the above data...
This was due to how the query APIs were originally implemented (conditionally skipping the RawContacts table). However, the RawContacts table is always queried. There is no longer a reason why these fields/properties should not be included in the
RawContactEntity
.Solution
RawContactEntity
.contacts.core.util.RawContactOptions
Apply the changes to the following query APIs;
where
clause of Data table queries do NOT contain fields that it does not have (otherwise an exception will be thrown)! In particular, theSyncColumns
Account name and type are available in the RawContacts table and not the Data table. In order to do this, do not add to theDataRawContactsFields
. Instead, provide another function for including RawContact table specific fields, something likefun include(vararg fields: RawContactsField): Query
Query
BroadQuery
PhoneLookupQuery
ProfileQuery
Additionally;
The text was updated successfully, but these errors were encountered: