# Notifications

Wisej.NET Hybrid applications can display notifications to users in several ways.

## Remote Push Notifications

Remote push notifications are messages sent by a server to a user's device through a network, typically to inform, alert, or engage the user when they are not actively using the respective application.

{% content-ref url="/pages/m5992KMN0bnei1HFUSWg" %}
[Remote Push Notifications](/hybrid/extensions/remote-push-notifications.md)
{% endcontent-ref %}

## Local Push Notifications

Local push notifications are similar to remote push notifications in their purpose, which is to inform or alert users, but they differ significantly in their source and mechanism. Unlike remote push notifications that are sent from a server, local push notifications are scheduled and triggered by the application itself on the user's device.

### Mechanism of Local Push Notifications

1. **Scheduling**: The application schedules a local notification by specifying the content of the notification (like title, message, sound) and the time when it should be displayed. This is typically done using APIs provided by the mobile operating system.
2. **No Server Interaction**: Local notifications do not require any interaction with a remote server. All information about the notification is contained within the app, and the scheduling is managed by the device's operating system.
3. **Triggering**: When the specified time arrives, or the triggering condition is met (such as entering a specific location, if location-based triggers are used), the operating system delivers the notification to the user's device.
4. **Display**: The notification is displayed to the user, similar to how remote push notifications are displayed. This can happen even if the app is not actively running.
5. **User Interaction**: Upon receiving the notification, the user can interact with it, for instance, by tapping on it to open the app, or performing a specific action directly from the notification if it's actionable.

### Setup

```csharp
private void button1_Click(object sender, EventArgs e)
{
	// schedules a notification 5 seconds from now with the given title and message.
	Device.LocalNotification.Schedule("title", "body", DateTime.Now.AddSeconds(5), 5);
}
```

Result

<figure><img src="/files/fzQAQqavXQgKCvNKyrun" alt=""><figcaption><p>Local Push Notification on Windows</p></figcaption></figure>


---

# Agent Instructions: 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/development/notifications.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.
