maui-local-notifications

Implement cross-platform local notifications for .NET MAUI apps.

Updated Nov 5, 2025
One-click install
npx skills add https://github.com/mkazimoto/AppMAUICopilot --skill maui-local-notifications
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: maui-local-notifications
Source: https://github.com/mkazimoto/AppMAUICopilot/tree/main/.github/skills/maui-local-notifications
Command: npx skills add https://github.com/mkazimoto/AppMAUICopilot --skill maui-local-notifications

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Add local notifications across Android, iOS, and Mac Catalyst to MAUI apps with a consistent API, handling channels, permissions, scheduling, and DI wiring.

Core Features & Use Cases

  • Cross-platform INotificationManagerService interface with DI registration.
  • Android implementation with notification channels, permissions, scheduling via AlarmManager, and foreground/background handling.
  • iOS/Mac Catalyst implementation using UNUserNotificationCenter with permission prompts and foreground handling.
  • Scheduling notifications for specific times as well as immediate notifications, plus simple UI integration.

Quick Start

Schedule a test notification in your MAUI app using the cross-platform notification service.

Frequently Asked Questions about maui-local-notifications

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add local notifications to a .NET MAUI app across Android and iOS?

Local notifications in MAUI require a cross-platform interface with per-platform implementations handling Android channels and iOS UNUserNotificationCenter. This provides a DI-ready service so UI code calls one consistent API to schedule alerts across platforms.

What are notification channels and when do I need them for MAUI local notifications?

Notification channels are an Android-specific mechanism for grouping and managing notification behavior. When implementing local notifications in MAUI, the Android service handles channel creation and routing so alerts display correctly and respect user settings on Android devices.

Does MAUI support scheduling local notifications for specific times on both Android and iOS?

MAUI local notifications support both immediate alerts and time-based scheduling. The Android implementation uses AlarmManager for scheduled delivery, while iOS and Mac Catalyst rely on UNUserNotificationCenter to fire notifications at designated times from a shared interface.

Can I use dependency injection to wire up local notifications in MAUI without platform-specific UI code?

Local notifications in MAUI can be fully DI-ready, registering a single cross-platform INotificationManagerService interface. UI layers inject and call this service without knowing whether the underlying platform-specific implementation targets Android, iOS, or Mac Catalyst.

Do I need to handle permissions separately for local notifications on Android and iOS in MAUI?

Local notifications require explicit permission handling on both platforms. The Android service manages runtime notification permissions, while the iOS and Mac Catalyst implementation requests authorization through UNUserNotificationCenter before scheduling or displaying alerts.

What's the best way to handle local notifications appearing when a MAUI app is in the foreground?

Local notifications in MAUI require foreground handling logic on both platforms. The Android and iOS implementations intercept incoming notifications while the app is active, allowing you to display or suppress alerts in-app rather than posting them to the system notification shade.