'undefined' is not a function (evaluating 'navigator.contacts.chooseContact( onSuccess, options)')-Collection of common programming errors
I have installed cordova 3.0.0 and created a helloworld project, and installed cordova-plugin-contacts. cordova create Helloworld com.example.helloworld “Helloworld” cd Helloworld cordova platforms add ios cordova build
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts.git
and trying to call navigator.contacts.chooseContact
function contactChooser(){ var options = new ContactFindOptions(); options.fields = ["displayName", "name", "emails", "phoneNumbers"]; navigator.contacts.chooseContact( onSuccess, options); }
but getting this error on safari web inspector.
Originally posted 2013-11-10 00:15:34.