HomeProjectsBlog

Scheduled expo push notification repeating itself even if (repeat:false)

February 14, 2025

To fix the repeating issue in expo push notification, use a date trigger type instead of set interval type which is used for seconds e.g

const triggerDate = Date.now() + 5 * 1000;

await Notifications.scheduleNotificationAsync({
    content: {
      title: "I am a notification",
    },
    trigger: {
      date: new Date(triggerDate),
      type: Notifications.SchedulableTriggerInputTypes.DATE,
    },
  });

Happy coding.