Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

[Android 14] triggerNotifications using alarmManager not displaying with Battery Optimization enabled #961

@eebirke

Description

@eebirke

Hi, we recently discovered that triggerNotifications will not display at all when using alarmManager: { allowWhileIdle: true } (or the more recent alarmManager: { type: AlarmType.[any of the types] }) on Android 14, unless battery optimization is disabled for the app. It did work fine on previous Android versions even without disabling battery optimization. This was tested on both React-Native 0.72 and 0.73, and with @notifee/react-native version 7.8.0 and 7.8.2.

Can be reproduced by creating a new RN app from template (and running on a Android 14 device or emulator), installing notifee, creating a notification channel and scheduling a triggerNotification with a timestamp trigger with the alarmManager attribute set.

Getting the users to disable battery optimization would be ideal, but since it requires some work on the user's end we can't rely entirely on that. I suppose checking for whether battery optimization is enabled and only using the alarmManager when it isn't is the only real solution?

Are there any additional permissions or such that are required with Android 14, and is this issue well known?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions