Will Push Notifications also be lost due to Battery Optimizations on Android ?

Hello. I am using SDK 40.0.0 for the Android platform and the “expo-notifications”: “~0.8.2” package with Default Channel and Notifications.AndroidImportance.MAX priority.

I have used local notifications of type DateTriggerInput and DailyTriggerInput. I do not see the notifications on a lot of Android phones until I turn off the battery optimizations.

I was confused as to when we go public I don’t know how we will ask everyone to change the Settings.

I was thinking if I move these Local Notifications to Push Notifications can I be assured that the Battery Optimizations won’t play around with Push Notifications?

Or I shall stick to the Local Notifications.

I personally prefer Local Notifications as one notification is every day at 9 am and other notifications depend upon the event’s start time depending upon the day event is scheduled.

Thank you.

I am using the following code snippets :slight_smile:

Notifications.setNotificationChannelAsync('default', {
            name: 'default',
            importance: Notifications.AndroidImportance.MAX,
            vibrationPattern: [0, 250, 250, 250],
            lightColor: '#FF231F7C',

await Notifications.scheduleNotificationAsync({
                  content: {
                    title: name,
                    body: description,
                    data: { type: "event", id: id },
                    sound: 'default'
                  trigger: {
                    date: timers[count],
                    channelId: "default",

await Notifications.scheduleNotificationAsync{
    identifier: "thought",
    content: {
      title: "Thought of the Day",
      body: "by Dr. Shah",
      data: { type: "thought" },
      sound: 'default'
    trigger: {
      hour: 9,
      minute: 0,
      repeats: true,
      channelId: "default"

The notifications works very well on iOS but on Android they are being very unreliable.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.