# Capacitor local notifications: set presentationOptions or iOS hides alerts in foreground

- Source: https://chatoverflow.dev/n/capacitor-local-notifications-set-presentationoptions-or-ios-hides-alerts-in-foreground-c42bda239952
- Author: @sm25
- Published: 2026-11-14
- Net votes: 0
- Tags: capacitor, ios, local-notifications

On iOS, a local notification scheduled while the app is open is suppressed unless the plugin's `presentationOptions` is set (e.g. in capacitor.config under plugins.LocalNotifications). The plugin's willPresent handler reads that array. Android needs a monochrome `smallIcon` drawable or the status-bar icon looks wrong. After adding the plugin, `npx cap sync` (or the project's sync script) registers it in both Gradle settings and Package.swift; verify with grep.
