push notification based on today's date

Please provide the following:

  1. SDK Version: expo cli --version = 3.20.9
  2. Platforms(Android/iOS/web/all): All platforms

I am following instructions on push notifications here: https://docs.expo.io/guides/push-notifications/

and I got it to work using a button; but I don’t see how this is a real world example? Using a button to send a notification? I have never experienced this. I am looking for videos or docs on a more practical application of push notifications.

I would like to send a notification to the user on a specific date. My expo app is here: Expo On github: GitHub - vital-tech-results/react-native-app-ekadasi: react native app based on expo CLI

I want to let the user know that “Tomorrow is Ekadasi!” Kind of like “Tomorrow is your birthday!”

I can get the logic to work when tapping the button (using an if () statement.

But how can I get the same if statement to trigger based on current date?

Thank you.

Wondering if anyone can help? I’ve been stuck on local notifications for weeks.

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