node-mac-permissions icon indicating copy to clipboard operation
node-mac-permissions copied to clipboard

Contacts permissions not popping

Open sumersao opened this issue 2 years ago • 2 comments

Hey, when I call askForContactsAccess() nothing is happening on dev mode for me? I tried adding an Info.plist file to a lot of places, but that's not helping either. Has anyone overcome this issue?

sumersao avatar Dec 13 '23 18:12 sumersao

Same here. Any updates?

edwardanthony avatar Jul 09 '24 23:07 edwardanthony

@sumersao are you sure your status is allowing for that?

using macOS 15.4 Beta if in dev mode i run:

$ tccutil reset AddressBook

and then

const { askForContactsAccess, getAuthStatus } = require('node-mac-permissions')

const status = getAuthStatus('contacts')
console.log(`Current access status: ${status}`) // not determined

askForContactsAccess().then(status => {
  console.log(`Access to Contacts is ${status}`)
})

I see the following:

Image

and then after I click allow:

Access to Contacts is authorized

codebytere avatar Mar 15 '25 16:03 codebytere