Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

How to access address book / contacts on iOS?

$
0
0

Hello ionicer,
I made a demo app from example https://blog.nraboy.com/2014/11/create-delete-search-contacts-ionic-framework/.
When I tried to write to native contact
My code:
$cordovaContacts.save({"displayName": "Steve Jobs"}).then(function(result) {
console.log("Save successfully");
}, function(error) {
console.log(error);
});

this error message was displayed when I debugged on Simulator iOS + Safari.
Error: DataCloneError: DOM Exception 25
postMessage@[native code]
iOSExec@http://localhost:12344/cordova.js:981:58
save@http://localhost:12344/plugins/cordova-plugin-contacts/www/Contact.js:173:9
save@http://localhost:12344/lib/ng-cordova.min.js:7:22475
downloadProfile@http://localhost:12344/js/app.js:589:26
fn
http://localhost:12344/lib/ionic/js/ionic.bundle.js:57606:21
$eval@http://localhost:12344/lib/ionic/js/ionic.bundle.js:24678:28
$apply@http://localhost:12344/lib/ionic/js/ionic.bundle.js:24777:28
http://localhost:12344/lib/ionic/js/ionic.bundle.js:57605:19
eventHandler@http://localhost:12344/lib/ionic/js/ionic.bundle.js:12103:25
dispatchEvent@[native code]
triggerMouseEvent@http://localhost:12344/lib/ionic/js/ionic.bundle.js:2870:20
tapClick@http://localhost:12344/lib/ionic/js/ionic.bundle.js:2859:20
tapTouchEnd@http://localhost:12344/lib/ionic/js/ionic.bundle.js:2982:13
Could you please advice this?
Many thanks.


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>