A simple web application that demonstrates Firebase Cloud Messaging (FCM) for sending push notifications to web browsers.
- Firebase Integration: Utilizes Firebase Cloud Messaging for sending push notifications.
- Push Notification Subscription: Allows users to subscribe to push notifications.
- Real-time Messaging: Receive notifications in real-time when the app is not in focus.
-
Firebase Account:
- Create a Firebase project on the Firebase Console.
- Obtain your Firebase project credentials.
-
Web Browser:
- Ensure that the web browser supports push notifications (most modern browsers do).
-
Clone the repository.
git clone https://github.com/aishwarya-art/FIREBASE-WEB-PUSH-NOTIFICATION.git
-
Navigate to the project directory cd FIREBASE-WEB-PUSH-NOTIFICATION
-
Add your Firebase project credentials.
const firebaseConfig = { apiKey: 'YOUR_API_KEY', authDomain: 'YOUR_AUTH_DOMAIN', projectId: 'YOUR_PROJECT_ID', storageBucket: 'YOUR_STORAGE_BUCKET', messagingSenderId: 'YOUR_MESSAGING_SENDER_ID', appId: 'YOUR_APP_ID', };
export default firebaseConfig;
Feel free to contribute to the project by opening issues or pull requests.
Aishwarya MS