docs.rs failed to build gcm-0.1.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
gcm-0.2.0
gcm
Usage
Add this to Cargo.toml
:
= "0.1.0"
gcm
then add this to your crate root:
extern crate gcm;
Examples:
Here is an example to send out a GCM Message with some custom data:
use Message;
use HashMap;
let mut map = new;
map.insert;
let result = new
.data
.send;
To send a message using GCM Notifications, we first build the notification:
use Message;
use NotificationBuilder;
let notification = new
.body
.finalize;
And then set it in the message, before sending it:
let message = new
.notification
.send;