Skip to content

Commit

Permalink
chore: add Full Disk Access key
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed May 26, 2022
1 parent 47a622e commit e5ff245
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,13 @@ const { askForFullDiskAccess } = require('node-mac-permissions')
askForFullDiskAccess()
```

If you would like your app to pop up a dialog requesting full disk access when your app attempts to access protected resources, you should add the `NSSystemAdministrationUsageDescription` key to your `Info.plist`:

```
<key>NSSystemAdministrationUsageDescription</key>
<string>Your reason for wanting Full Disk Access</string>
```

### `permissions.askForCameraAccess()`

Returns `Promise<String>` - Current permission status; can be `authorized`, `denied`, or `restricted`.
Expand Down

0 comments on commit e5ff245

Please sign in to comment.