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

# PlaytoliaNotifications

> Push notification management and permission handling

### Methods

| Method                       | Parameters | Returns     | Notes                                            |
| ---------------------------- | ---------- | ----------- | ------------------------------------------------ |
| `GetState()`                 | —          | `PushState` | Current notification state                       |
| `Refresh()`                  | —          | `void`      | Re-check permission status                       |
| `RegisterPushToken(token)`   | `string`   | `void`      | Register FCM token with backend                  |
| `RequestPushPermission()`    | —          | `void`      | Show OS permission dialog                        |
| `OpenNotificationSettings()` | —          | `void`      | Open OS notification settings                    |
| `GetPermission()`            | —          | `string`    | `"Granted"`, `"DeniedAlways"`, or `"NotGranted"` |
| `AddListener(listener)`      | `Action`   | `void`      |                                                  |
| `RemoveListener(listener)`   | `Action`   | `void`      |                                                  |

### PushState

| Field         | Type                       | Notes                                            |
| ------------- | -------------------------- | ------------------------------------------------ |
| `Preferences` | `Dictionary<string, bool>` | Notification category preferences                |
| `Permission`  | `string`                   | `"Granted"`, `"DeniedAlways"`, or `"NotGranted"` |
