Repeating Notifications start time

Please provide the following:

  1. SDK Version: 39
  2. Platforms(Android/iOS/web/all): iOS

Hello,
I’m migrating from legacy notifications to the new expo-notifications and I can’t seem to find a way to set the “start date” for a “repeating notification” to start triggering.

for example the below code:


import * as Notifications from 'expo-notifications';

async function scheduleAndCancel() {
  const identifier = await Notifications.scheduleNotificationAsync({
    content: {
      title: 'Hey!',
    },
    trigger: { seconds: 5, repeats: true }, //Here how do I say //start at 10:30PM tonight
  });
  await Notifications.cancelScheduledNotificationAsync(identifier);
}

How do I instruct it to start the first repeating notification at 10:30PM tonight? pls help. This used to be pretty easy in the previous notification version.

any updates on this? super stuck on this.

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