Skip to content

mahhamdy/fcm-push-notification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sending push notifications using Firebase Cloud Messaging (FCM)

The app integrates Firebase Admin SDK to authenticate using a service account key and send notifications to simulated registered devices via their FCM tokens.

REST API Endpoint

Send a push notification to a mobile device.
POST /firebase/notifications
Example Request
curl -X POST http://localhost:8080/firebase/notifications \
-H "Content-Type: application/json" \
-d '{
  "recipientToken": "your_device_token_here",
  "title": "Test Notification",
  "body": "Congratulations, it works!",
  "extraData": {
    "Day": "6",
    "Month": "1",
    "Year": "2025"
  }
}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages