Closed ishail closed 8 years ago
Looks okay.
Sorry for the long delay. As I understand it, changing function signatures in published Go libraries is bad, because there is no version management.
However, we did actually think about the need for an extension point, which is why the NewPushRequest
function was separated out of Send
. Call NewPushRequest
and then manipulate the headers of that request, then send it yourself.
Signature change in Send function so that this function can take TTL as variable along with few more variables such as content_available, collapse_key, etc defined at gcm http-server-ref.