{"id":1305,"date":"2022-08-30T15:15:25","date_gmt":"2022-08-30T15:15:25","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/10\/undefined-is-not-a-function-evaluating-navigator-contacts-choosecontact-onsuccess-options-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:15:25","modified_gmt":"2022-08-30T15:15:25","slug":"undefined-is-not-a-function-evaluating-navigator-contacts-choosecontact-onsuccess-options-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/undefined-is-not-a-function-evaluating-navigator-contacts-choosecontact-onsuccess-options-collection-of-common-programming-errors\/","title":{"rendered":"&#39;undefined&#39; is not a function (evaluating &#39;navigator.contacts.chooseContact( onSuccess, options)&#39;)-Collection of common programming errors"},"content":{"rendered":"<p>I have installed cordova 3.0.0 and created a helloworld project, and installed cordova-plugin-contacts. cordova create Helloworld com.example.helloworld &#8220;Helloworld&#8221; cd Helloworld cordova platforms add ios cordova build<\/p>\n<p>cordova plugin add https:\/\/git-wip-us.apache.org\/repos\/asf\/cordova-plugin-contacts.git<\/p>\n<p>and trying to call navigator.contacts.chooseContact<\/p>\n<p><code>function contactChooser(){ var options = new ContactFindOptions(); options.fields = [\"displayName\", \"name\", \"emails\", \"phoneNumbers\"]; navigator.contacts.chooseContact( onSuccess, options); }<\/code><\/p>\n<p>but getting this error on safari web inspector.<\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-10 00:15:34. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I have installed cordova 3.0.0 and created a helloworld project, and installed cordova-plugin-contacts. cordova create Helloworld com.example.helloworld &#8220;Helloworld&#8221; 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 = [&#8220;displayName&#8221;, &#8220;name&#8221;, &#8220;emails&#8221;, &#8220;phoneNumbers&#8221;]; navigator.contacts.chooseContact( onSuccess, options); } but getting this [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1305","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1305","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1305"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1305\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}