Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contacts permissions not popping #70

Open
sumersao opened this issue Dec 13, 2023 · 2 comments
Open

Contacts permissions not popping #70

sumersao opened this issue Dec 13, 2023 · 2 comments
Labels
needs-info This bug cannot be triaged without more information

Comments

@sumersao
Copy link

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?

@edwardanthony
Copy link

Same here. Any updates?

@codebytere
Copy link
Owner

codebytere commented Mar 15, 2025

@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 codebytere added the needs-info This bug cannot be triaged without more information label Mar 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-info This bug cannot be triaged without more information
Projects
None yet
Development

No branches or pull requests

3 participants