是否有其他人无法在cordova 3.4中使用联系人插件?
无论我做什么,我都会收到此错误:ReferenceError:未定义ContactFindOptions
所有其他插件工作正常。我只与IOS合作。
我正在使用文档中的基本示例,当设备准备就绪时:
var options = new ContactFindOptions();
options.filter = "Milo";
options.multiple = true;
var fields = ["displayName", "name"];
navigator.contacts.find(fields, onSuccess, onError, options);
答案 0 :(得分:0)
Please see my below instructions:
First, You should check (Contact) installed plugin via terminal properly
> $ cordova plugin add org.apache.cordova.contacts
Second, You should check your entry is mention in config.xml properly which is looks like below:-
> <feature name="Contacts">
> <param name="ios-package" value="CDVContacts" />
> </feature>
Third, please also check you mention cordova.js in html
Thanks,
答案 1 :(得分:0)
参数排序不正确。检查:
navigator.contacts.find(onSuccess, onError, fields, options);