sandunchathuranga01 / EWT_CW2_GroupProject

Smart waste management system
0 stars 0 forks source link

Notification Mechanism #6

Open sandunchathuranga01 opened 8 months ago

sandunchathuranga01 commented 8 months ago

Tools

language-Node.js Framework-React,Express.js

Implementation

Firebase Cloud Messaging (FCM) offers significant benefits over Socket.IO for the waste management system, improving user experience and overall efficiency. Using an easy-to-use registration and login process, users create safe accounts on the platforms to start the process. Firebase Authentication ensures safe login procedures after a successful registration, protecting user data. After logging in, users can customise their notification preferences by indicating which kinds and how often they want to receive notifications.

FCM’s connection with the Node.js server via the Firebase Admin SDK is a significant development that offers a reliable cloud-based notification solution in real time. The server uses FCM to instantly update users’ linked devices with scheduled waste collection dates as soon as they modify their waste collection selections. The cross-platform compatibility of FCM guarantees a uniform notification experience across web apps, highlighting its adaptability as the best option for the React frontend.

Even though the React application and the server can still establish WebSocket connections to communicate in real-time, FCM is the key player when it comes to effectively sending push notifications to devices that are connected. User engagement with the waste management system is improved by this easy-to-use notification method, which enables users to respond to messages swiftly and take appropriate action. Essentially, the FCM integration that is started at the time of user registration and login allows for a customised and efficient notification experience that helps optimise waste management procedures while providing users with timely and pertinent updates in a safe and expandable environment.