ContactPicker
ContactPicker copied to clipboard
IOS- issue (opening overlay but it is not filling the displayName and email values in contact overlay)
Hi all,
I used this plugin in my cordova application it's working fine with android, but i used this plugin to add contact details in Iphone than overlay is coming with empty values.
I am passing the data like this var contact = {}; contact.displayName = $scope.contactData.name; contact.email = $scope.contactData.email;
than calling the contactAdd function but it's coming empty with native contact overlay in ios. same code working fine with android, please let me know the issue. Thanks
Mmm got it. I will check it ASAP.
On Wed, Jan 18, 2017, 2:06 PM Mahesh Kumawat [email protected] wrote:
Hi all,
I used this plugin in my cordova application it's working fine with android, but i used this plugin to add contact details in Iphone than overlay is coming with empty values.
I am passing the data like this var contact = {}; contact.displayName = $scope.contactData.name; contact.email = $scope.contactData.email;
than calling the contactAdd function but it's coming empty with native contact overlay in ios. same code working fine with android, please let me know the issue. Thanks
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hazemhagrass/ContactPicker/issues/24, or mute the thread https://github.com/notifications/unsubscribe-auth/ADdRz4NPKOl__c5FBYpO1AZ4lppDiUYSks5rTgA3gaJpZM4LmzrI .
--
Hazem Hagrass Thanks a lot
Hi Hazem, I found this on cordova contact plugin documentation, please have a look on this.
https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-contacts/
displayName: Not supported on iOS, returning null unless there is no ContactName specified, in which case it returns the composite name, nickname or "", respectively.
Hi,
Check gvalenciax/ContactPicker fork. This solve pre-filled properties in iOS. Also solve runtime permissions problem in Android Mashmallow. I worked from the gimalon fork.
Regards
var contact = {};
contact.displayName = "Isabela";
contact.email = "[email protected]";
contact.mobileNumber = "+1-555-555-555"
contact.nickname = "Isabela";
window.plugins.ContactPicker.addContact(contact, function (contactInfo) {
alert(contactInfo.displayName + ' ' + contactInfo.phones[0] + ' ' + contactInfo.email);
});