firebae-cm
Rust crate for Firebase Cloud Messaging Http V1
Information
I recommend to read up on FCM before attempting to use this crate.
| What | Where |
|---|---|
| Basic information on FCM | https://firebase.google.com/docs/cloud-messaging |
| Used data structure | https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages |
Usage
use ;
async
This will result in a post request to
https://fcm.googleapis.com/v1/projects/your_project_id/messages:send
with the appropriate Authentication: Bearer your_jwt_token header
and the following body:
For more useful examples, see the examples folder.