Local Notification trigger daily

Please provide the following:

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

Hello,

I am trying to implement a local notification. I want to set this up so it triggers everyday at 10.P.M. So I did the following.

const identifier = await Notifications.scheduleNotificationAsync({
      content: {
       title: "I'm Scheduled",
        body: "Wow, I can show up even when app is closed",
      },

      trigger: {
        hour: 21,
        minute: 00,
        repeats: true,
      },

Is this the right way to trigger a daily local notification.  I am trying to follow the docs in [Notifications Document](https://docs.expo.io/versions/latest/sdk/notifications/)
1 Like

I’ve been struggling with local notifications for 3 months. Could you let me know if you have any luck?

See my post here: how to use "export interface CalendarNotificationTrigger"

Not really. I have been trying to get it to work for quite some time too. I went to the previous version of notifications. I got it to work not perfectly but at least I got some sort of notifications - https://docs.expo.io/versions/latest/sdk/legacy-notifications/#localnotification. It worked for two days but suddenly it stopped today. Not sure why. I had to convert the time to seconds and then use it.