apns: apply `go fmt`
gcm: define public methods and types