# Auto-grant permissions

## Enable Auto-grant permissions

Eliminate the hassle of manual permission grants. This feature ensures app [runtime permissions](https://source.android.com/docs/core/permissions/runtime_perms) are automatically handled for each session. Examples of runtime permissions include location, external storage, microphone, camera, and more. Simplify your users' journey.

<figure><img src="https://2147444700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJUveBCJfn0GR8-hlqi%2Fuploads%2Fgit-blob-c682e67d838511e8a3a00eb1680991b5e2f19019%2FScreenshot_1683885758.png?alt=media" alt="" width="188"><figcaption><p>Example runtime permission on Android</p></figcaption></figure>

It can be enabled through a query parameter or the JavaScript SDK.

### With Query Parameter

Add the `grantPermissions=true` query parameter to your app or embed URL

```uri
&grantPermissions=true
```

See [Query Params Reference](https://docs.appetize.io/~/changes/sS6WNGOYJiEFSzbb86Ey/query-params-reference#grantpermissions) for more information.

### With JavaScript SDK

Set `grantPermissions: true` in the configuration e.g.

```typescript
await client.config({
    grantPermissions: true,
    ...
})
```

See [Configuration](https://docs.appetize.io/~/changes/sS6WNGOYJiEFSzbb86Ey/javascript-sdk/configuration#grantpermissions) for more information.
