javascriptfirefox-os

Unable to use Contacts API in Firefox OS app


I have gone through this and tried everything mentioned there, but I always getting error only.

I have tested in simulator "Firefox OS 2.2".

My manifest contains two permissions like:

"permissions": {
    "desktop-notification": {
      "description": "Needed for creating system notifications."
    },
    "contacts": {
      "description": "Needed for reading contacts"
    }
  },

What have I done wrong?


Solution

  • Got it, just added access property to the manifest. Its working now.

    "contacts": {
      "access": "readcreate"
    }