Firebase Cheatsheet

Firebase Cheatsheet

Trigger notification using CURL

curl -X POST --header "Authorization: key=AIzaSyA7ysOSRMqiv2hiWHJmai1yXiTLhP4oztMz" \
	--Header "Content-Type: application/json" \
	https://fcm.googleapis.com/fcm/send \
	-d "{\"to\":\"fB95hP9NZJ8:APA91bFwORxZm08noNx6yEJu0kg97P5957P8zyP0NKmvUyExW1OlfUAVaPuX9gEC-BAkl_fi2HJshZj5WN4KNvDiR8B0Oug6oKy2boLoCC_EYOA0oeZvAdc_rLo9yLsyXy2bCp4jurJiz\",\"notification\":{\"body\":\"ENTER YOUR MESSAGE HERE\"}"

Replacekey=AIzaSyA7ysOSRMqiv2hiWHJmai1yXiTLhP4oztMzwith your own key, You can create keys in Firebase Console.

ReplacefB95hP9NZJ8:APA91bFwORxZm08noNx6yEJu0kg97P5957P8zyP0NKmvUyExW1OlfUAVaPuX9gEC-BAkl_fi2HJshZj5WN4KNvDiR8B0Oug6oKy2boLoCC_EYOA0oeZvAdc_rLo9yLsyXy2bCp4jurJizwith device FCM token.

Check Firestore security

Make a get request toproject-name.firebaseio.com/.json.


Original: Updated: