Member-only story

How to send push notification through curl using Firebase api?

AKCoding.com
Aug 25, 2021

--

curl -X “POST” “https://fcm.googleapis.com/fcm/send" \
-H “Authorization: key=<Server key>” \
-H “Content-Type: application/json” \
-d $’{
“notification”: {
“title”: “Product expiry”,
“body”: “Your product washing machine is going to expire on 12–08–2021”,
“badge”: “0”,
“sound”: “default”,
“priority”:10
},
“registration_ids”: [
“<Your device token generated by Firebase>”
]
}’

Not a Premium Medium member? Click here to access it for free!

--

--

AKCoding.com
AKCoding.com

Written by AKCoding.com

Empowering developers with programming concepts and code (Mobile & Web Developments using JAVA, React, React Native, JavaScript, Kotlin, Python, .Net, and More)

No responses yet