Skip to content

Commit e5ff245

Browse files
committed
chore: add Full Disk Access key
1 parent 47a622e commit e5ff245

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,13 @@ const { askForFullDiskAccess } = require('node-mac-permissions')
219219
askForFullDiskAccess()
220220
```
221221

222+
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`:
223+
224+
```
225+
<key>NSSystemAdministrationUsageDescription</key>
226+
<string>Your reason for wanting Full Disk Access</string>
227+
```
228+
222229
### `permissions.askForCameraAccess()`
223230

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

0 commit comments

Comments
 (0)