Skip to content

aishwarya-art/FIREBASE-WEB-PUSH-NOTIFICATION

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FIREBASE-WEB-PUSH-NOTIFICATION

A simple web application that demonstrates Firebase Cloud Messaging (FCM) for sending push notifications to web browsers.

Features

  • 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.

Getting Started

Prerequisites

  1. Firebase Account:

    • Create a Firebase project on the Firebase Console.
    • Obtain your Firebase project credentials.
  2. Web Browser:

    • Ensure that the web browser supports push notifications (most modern browsers do).

Installation

  1. Clone the repository.

    git clone https://github.com/aishwarya-art/FIREBASE-WEB-PUSH-NOTIFICATION.git
    
  2. Navigate to the project directory cd FIREBASE-WEB-PUSH-NOTIFICATION

  3. 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;

Generate Token

Generate-token

Add token to get notification

Push-notification

Contributing

Feel free to contribute to the project by opening issues or pull requests.

Created by

Aishwarya MS