Mohd-FaiZ-Jr / Menu-Mate

Menu Mate is a convenient app designed for ITER hostel residents. It allows users to easily view the daily mess menu and check tomorrow's menu in advance, helping them plan their meals ahead of time. Developed by Mandeep Ray & Mohammad Faiz
https://menumate.netlify.app
MIT License
1 stars 11 forks source link

Feature: Implement Firebase Web Notifications for Meal Reminders 📲 #17

Open Mohd-FaiZ-Jr opened 5 days ago

Mohd-FaiZ-Jr commented 5 days ago

Objective: Add a new feature that integrates Firebase web notifications to notify users about the meal menu (breakfast, lunch, snacks, and dinner) 30 minutes before each mealtime.

Description:

We want to enhance the user experience by implementing Firebase Web Notifications that will automatically notify users about what’s on the menu for breakfast, lunch, snacks, and dinner 30 minutes before the scheduled mealtime. This feature will help users plan their meals in advance and ensure that they don’t miss any important updates.

Feature Requirements:

  1. Firebase Setup:

    • Integrate Firebase Cloud Messaging (FCM) to handle sending notifications to users’ devices.
    • Ensure proper subscription to the notifications when the user visits the website.
  2. Notification Content:

    • Send a notification containing the specific menu details (e.g., "Today's Breakfast: Pancakes and Juice").
    • Notifications should include details for:
      • Breakfast: Notify 30 minutes before the scheduled breakfast time. (At 7:00am)
      • Lunch: Notify 30 minutes before the scheduled lunch time. (At 12:30pm)
      • Snacks: Notify 30 minutes before the scheduled snacks time. (At 5:30pm)
      • Dinner: Notify 30 minutes before the scheduled dinner time. (At 8:30pm)
  3. Scheduling:

    • Create a scheduling system that triggers the notifications automatically at the designated times.
    • Ensure the notifications are only sent for today's menu.
  4. Edge Cases:

    • If a user subscribes after a notification has already been sent for a particular meal, handle this scenario gracefully (e.g., no retroactive notifications).
    • Ensure notifications don’t get duplicated or sent multiple times.

Testing:

Priority: High

By adding this feature, we aim to make the user experience more interactive and helpful by providing timely notifications for each meal of the day.

If interested, first let me know. Then after I will assign you, after onwards you can work on it.

Atheke commented 5 days ago

I am interested to work on this issue

Mohd-FaiZ-Jr commented 5 days ago

I am interested to work on this issue

@Atheke are you familiar with firebase web push notifications?

Mk281005 commented 5 days ago

@Mohd-FaiZ-Jr I want to work on the issue and I am familiar with firebase web push notifications and there is doubt you have not mentioned any timing of the meal in the website so try to add the timings in the website

Mohd-FaiZ-Jr commented 4 days ago

@Mohd-FaiZ-Jr I want to work on the issue and I am familiar with firebase web push notifications and there is doubt you have not mentioned any timing of the meal in the website so try to add the timings in the website

Sure. Have provided the notification timings in the description.

Atheke commented 4 days ago

yes i am familiar with web push notifications