简体   繁体   中英

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?

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM