> For the complete documentation index, see [llms.txt](https://docs.wisej.com/hybrid/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wisej.com/hybrid/start/api/notifications/wisej.hybrid.devicelocalnotification.md).

# DeviceLocalNotification

Namespace: **Wisej.Hybrid**

Assembly: **Wisej.Hybrid** (3.5.0.0)

Provides methods to schedule and handle local notifications on the device.

{% tabs %}
{% tab title="C#" %}

```csharp
public class DeviceLocalNotification
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class DeviceLocalNotification
```

{% endtab %}
{% endtabs %}

Access this class through the [Device](/hybrid/start/api/general/wisej.hybrid.device.md) singleton.

## Constructors

### ![](/files/CCV9PPenlC1YZvNh1I6R)DeviceLocalNotification()

Creates a new instance of [DeviceLocalNotification](/hybrid/start/api/notifications/wisej.hybrid.devicelocalnotification.md).

## Methods

### ![](/files/CCV9PPenlC1YZvNh1I6R)Schedule(title, body, dateTime, badge)

Schedules a local notification to be delivered at the specified date and time.

| Parameter                                  | Type                                                              | Description                                                              |
| ------------------------------------------ | ----------------------------------------------------------------- | ------------------------------------------------------------------------ |
| **title**                                  | [String](https://docs.microsoft.com/dotnet/api/system.string)     | The title of the local notification.                                     |
| **body**                                   | [String](https://docs.microsoft.com/dotnet/api/system.string)     | The body text of the local notification.                                 |
| **dateTime**                               | [DateTime](https://docs.microsoft.com/dotnet/api/system.datetime) | The date and time when the notification should be delivered.             |
| **badge** ![](/files/hKoZkt511VItWvI9RDIT) | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)       | An optional badge number to display on the app's icon (-1 for no badge). |

## Events

### ![](/files/CCV9PPenlC1YZvNh1I6R)Presented

[EventHandler\<Object>](https://docs.microsoft.com/dotnet/api/system.eventhandler-1) Occurs when a local notification is presented to the user while the app is running.

### ![](/files/CCV9PPenlC1YZvNh1I6R)Responded

[EventHandler\<Object>](https://docs.microsoft.com/dotnet/api/system.eventhandler-1) Occurs when the user responds to a local notification while the app is running.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wisej.com/hybrid/start/api/notifications/wisej.hybrid.devicelocalnotification.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
