Coder Social home page Coder Social logo

Comments (5)

BatteryAcid avatar BatteryAcid commented on June 16, 2024

I am currently facing a similar problem, I was thinking to take the last 10 digits of the phone number then insert wildcards like 555%666%7777. The underlying Android code will surround the search text with %. This is definitely not ideal but would work for US phone numbers. This does NOT work for iOS.

After working with the current state of this plugin for the last 6 months (it's deprecated and not maintained) I would avoid using it unless you're doing something simple. For updating contacts it's very buggy and required a ton of work arounds/hacks to get functional.

Good luck!

from cordova-plugin-contacts.

andersborgabiro avatar andersborgabiro commented on June 16, 2024

I didn't know about the %xxxx% thing. Skipping (extra) %xxxx% in my code worked fine. I still do x%x%x%x... though.

Is there any trustworthy and maintained plugin that's might have solved number search better?

Clearly, the call manager (whether Android or iOS) has no problem finding numbers, so there's a method somewhere in the system, but maybe not accessible via API.

from cordova-plugin-contacts.

BatteryAcid avatar BatteryAcid commented on June 16, 2024

Is there any trustworthy and maintained plugin that's might have solved number search better?

I'm not aware of any such plugin.

Right, I think your solution should work fine for Android, and if you're saving phone numbers on iOS, I would suggest making sure it conforms to the standard (xxx) xxx-xxxx otherwise the search functionality may not hit on the numbers. I don't think the underlying cordova-contacts code matches the different formats for you.

from cordova-plugin-contacts.

andersborgabiro avatar andersborgabiro commented on June 16, 2024

I use an SMS reception module that doesn't work for iOS, so that's not an option anyway.

Thanks.

from cordova-plugin-contacts.

timbru31 avatar timbru31 commented on June 16, 2024

We are archiving this repository following Apache Cordova's Deprecation Policy. We will not continue to work on this repository. Therefore all issues and pull requests are being closed. Thanks for your contribution.

from cordova-plugin-contacts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.