简体   繁体   中英

Fetching all the contacts in phone using Cordova plugin

I am developing a Sencha Touch + Cordova application. I need to get all the device contacts in an android phone.

According to the documentation, if we put,

options.filter = ""

It should return all the contacts of the phone. But it does not work. And if I put some other string as the filter, for example,

options.filter = "A"

I get results according to the filter.

Could someone help me to find out what am I doing wrong here?

Thank you

You probably not using the latest cordova contact plugin, you can refer to this:

http://cordova.apache.org/news/2014/08/11/plugins-release.html

org.apache.cordova.contacts@0.2.12

fixes .find method when options param is not passed. Will return all contacts on missing options param

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM