Contact API Cordova 2.5.0からの削除機能についてお聞きしたいです。私は xcode 4.6 と Iphone バージョン 5.1.1 を使用しています。これは本当に機能していますか?関数を削除すると常に onRemoveError になるのはなぜですか?
これはコードです:
var myContact = navigator.contacts.create();
myContact.note = document.getElementById('txtNote').value;
myContact.nickname = document.getElementById('txtNickname').value;
var name = new ContactName();
name.givenName = document.getElementById('txtGiven').value;
name.familyName = document.getElementById('txtFamily').value;
myContact.name = name;
// save
myContact.save(onSaveSuccess,onSaveError);
// remove
myContact.remove(onRemoveSuccess,onRemoveError);