Skip to content

How to match contacts that have a given phone number when the normalizedNumber is null in the database? #198

Answered by vestrel00
wo-ist-henry asked this question in Q&A
Discussion options

You must be logged in to vote

@wo-ist-henry thanks for creating this issue! You can certainly use broadQuery() with .whereAnyContactDataPartiallyMatches(searchText). However, if you are looking for contacts that match a specific phone number, then the current BroadQuery API may not return what you need.

For example, the query .whereAnyContactDataPartiallyMatches("718") could match contacts that don't have matching phone numbers. It will match contacts with an address, email, organization, note, etc that contains "718" even if the contact does not have a phone number.

Therefore, I created issue #197 to add support in BroadQuery to match only phone or email only. It will be included in the next release (0.2.0).

Once I m…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by vestrel00
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #196 on March 08, 2022 22:08.