on simulator i use this code on my privileged app
var contact = new mozContact();
contact.init({name: "Tom"}); // Bug 723206
var request = navigator.mozContacts.save(contact);
request.onsuccess = function() {alert("success");};
request.onerror = function() {alert("error")};
And the manifest validation tells me this
This app can't be installed on a production device (AppsUtils.checkManifest
return false).
my manifest:
{
"name": "contact test",
"size":"12",
"type":"privileged",
"icons": {
"128": "/img/icon-128.png"
},
"developer": {
"name": "dude",
"url": "http://your-homepage-here.org"
},
"permissions": {
"contacts": {
"description": "Required for autocompletion in the share screen",
"access": "readcreate"
},
"alarms": {
"description": "Required to schedule notifications"
}
},
"default_locale": "es-ES",
"launch_path": "http://localhost/appPruebaContactApi/"
}
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g