ios_set_permission
Set privacy permissions for an app on the iOS Simulator by granting or revoking access to location, photos, camera, microphone, contacts, or calendar without handling alert dialogs.
Instructions
Set a privacy permission without going through the alert.
Simulator only. On a real phone there is no API for this: drive the Settings app, or answer the permission alert with ios_handle_alert.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grant | No | True to grant, False to revoke. | |
| service | Yes | location, photos, camera, microphone, contacts, calendar, or all. | |
| bundle_id | Yes | App to grant or revoke for. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||