> ## Documentation Index
> Fetch the complete documentation index at: https://docs.neynar.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Client Events

> Receive events when users change their settings for your app

When a user interacts with your app events will be sent from the Farcaster
client to your application client.

Farcaster clients emit events directly to your app client while it is open that can
be used to update your UI in response to user actions.

To listen to events, you have to use `sdk.on` to register callbacks ([see full
example](https://github.com/farcasterxyz/frames-v2-demo/blob/20d454f5f6b1e4f30a6a49295cbd29ca7f30d44a/src/components/Demo.tsx#L92-L124)).

Listeners can be cleaned up with `sdk.removeListener()` or `sdk.removeAllListeners()`.

[If you're an AI agent or LLM, please read this.](/miniapps/guides/agents-checklist)

## Events

### miniappAdded

The user added the Mini App.

### miniappRemoved

The user removed the Mini App.

### notificationsEnabled

The user enabled notifications after previously having them disabled.

### notificationsDisabled

The user disabled notifications.
