I am trying to get receipt from CCS, but I just can't.
That's what I'm doing:
I have a go script:
package main import ( "fmt" "github.com/brunohenrique/go-gcm/ccs" ) var ( user = struct { gcmToken string }{"mg0xe56LfjE:APA91bFHtHVQt85iNgyzTeDowovIGPAD_NbBjURppy1LgV9_oaM2R_9zn1fDXNuEeOoALTj7F8e8JmNPI3Md-CbbgTxdvxVrONFVfGz2dOujsaGkZjEhJcBH8sWvRNYZNIp2j2QliAEX"} ) func main() { con := connect() // Sends a message con.Send(&ccs.OutMsg{ To: user.gcmToken, ID: "m-1366082849205", Notification: map[string]interface{}{ "title": "Hey!", "body": "There", "sound": "default", }, TimeToLive: 600, DeliveryReceiptRequested: true, DelayWhileIdle: true, }) // Listen to messages for { m, err := con.Receive() if err != nil { fmt.Printf(">>> Err: %+v \n", err) } go func(m *ccs.InMsg) { fmt.Printf(">>> InMsg: %+v \n", m) }(m) } }
Everything looks good when I run the script, but does not receive a receive message:

And here is what I do when I get a notification:

Am I doing something wrong or is something missing?
ios go google-cloud-messaging
Rafael garcia
source share