{"id":19583527,"url":"https://github.com/sachin2398/pushnotification","last_synced_at":"2026-04-13T13:04:03.736Z","repository":{"id":225355863,"uuid":"765768851","full_name":"sachin2398/pushnotification","owner":"sachin2398","description":"This repository contains a React-based web application for implementing push notifications using Firebase Cloud Messaging (FCM). The application utilizes React hooks and Firebase SDK to enable push notifications on web browsers.","archived":false,"fork":false,"pushed_at":"2024-03-04T08:06:26.000Z","size":382,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-09T05:37:14.346Z","etag":null,"topics":["firebase","reactjs"],"latest_commit_sha":null,"homepage":"https://pushnotification-seven.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sachin2398.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-01T15:24:20.000Z","updated_at":"2024-10-02T09:57:04.000Z","dependencies_parsed_at":"2024-11-11T07:43:31.431Z","dependency_job_id":"a9638b62-c90a-4065-af68-45dd80ca1e1c","html_url":"https://github.com/sachin2398/pushnotification","commit_stats":null,"previous_names":["sachin2398/pushnotification"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sachin2398%2Fpushnotification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sachin2398%2Fpushnotification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sachin2398%2Fpushnotification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sachin2398%2Fpushnotification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sachin2398","download_url":"https://codeload.github.com/sachin2398/pushnotification/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240850453,"owners_count":19867878,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["firebase","reactjs"],"created_at":"2024-11-11T07:42:56.227Z","updated_at":"2026-04-13T13:03:58.712Z","avatar_url":"https://github.com/sachin2398.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pushnotification\n# Push Notification App\n\nThis repository contains a React-based web application for implementing push notifications using Firebase Cloud Messaging (FCM). The application utilizes React hooks and Firebase SDK to enable push notifications on web browsers.\n\n# Step:1\n![Screenshot 2024-03-03 010645](https://github.com/sachin2398/pushnotification/assets/113828281/5e860249-2340-4656-94e7-1dea73631b89)\n\n# BackGround Notification On DESKTOP\n![Screenshot (2967)](https://github.com/sachin2398/pushnotification/assets/113828281/0d7992d0-c2e3-4d4d-ad3f-65ec61bb88cf)\n\n# BackGround Notification On MOBILE\n![coffe2](https://github.com/sachin2398/pushnotification/assets/113828281/3e5a52ca-0420-4cca-934f-1ebdf7659c6f)\n\n## Features\n\n1. **Firebase Integration**: The application is integrated with Firebase for push notification services. Firebase provides a robust platform for sending notifications across various platforms, including web browsers.\n\n2. **Token Generation**: Upon user permission, the application generates a unique token using Firebase Messaging, allowing the server to send push notifications to the client.\n\n3. **Real-time Notifications**: The application uses `react-hot-toast` to display real-time notifications to the user whenever a push notification is received. Notifications are triggered both when the app is in the foreground and background.\n\n4. **Service Worker Integration**: A service worker is registered within the application to handle background notifications. This ensures that notifications are delivered even when the application is not actively running in the foreground.\n\n## Installation\n\n1. Clone the repository to your local machine:\n\n   ```bash\n   git clone \u003crepository-url\u003e\n   ```\n\n2. Navigate to the project directory:\n\n   ```bash\n   cd \u003cproject-directory\u003e\n   ```\n\n3. Install dependencies using npm or yarn:\n\n   ```bash\n   npm install\n   ```\n\n   or\n\n   ```bash\n   yarn install\n   ```\n\n4. Configure Firebase:\n\n   - Create a Firebase project on the Firebase Console (https://console.firebase.google.com/).\n   - Obtain your Firebase configuration details, including the API key, messaging sender ID, and project ID.\n   - Replace the Firebase configuration details in `src/App.js` and `public/firebase-messaging-sw.js` with your own configuration.\n\n5. Run the application:\n\n   ```bash\n   npm start\n   ```\n\n   This command will start the development server and launch the application in your default web browser.\n\n## Usage\n\n1. Upon launching the application, users will be prompted to grant permission for receiving push notifications.\n\n2. Once permission is granted, a unique token is generated for the user, allowing the server to send notifications to the client.\n\n3. Notifications will be displayed in real-time using `react-hot-toast` whenever a push notification is received.\n\n4. The service worker registered in the background ensures that notifications are delivered even when the application is not actively running in the foreground.\n\n\n# [Demo](https://drive.google.com/file/d/1MdH1mzxLr67eGrnzW1sRnY97WqGwP6c1/view?usp=sharing)\n\n\n\n\n## Credits\n\n- This project utilizes the following libraries and frameworks:\n  - React (https://reactjs.org/)\n  - Firebase (https://firebase.google.com/)\n  - react-hot-toast (https://react-hot-toast.com/)\n\n## License\n\nThis project is licensed under the MIT License. See the `LICENSE` file for more information.\n\n## Author\n\nsachin2398\n\nFeel free to contribute, report issues, or suggest improvements by creating pull requests or raising issues in the repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsachin2398%2Fpushnotification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsachin2398%2Fpushnotification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsachin2398%2Fpushnotification/lists"}