"SyntaxError: Unexpected EOF" while accessing contacts


#1

i am using cordova contacts api to access contacts with latest cordova, latest ionic version.

This is the code:

var obj = new ContactFindOptions();
    obj.filter = "";
    obj.multiple = true;
    navigator.contacts.find(["displayName", "name", "phoneNumbers"], function(contacts){
        contacts_success(contacts, callback);
    }, contacts_fail, obj);