Push sends a Notification to the APNs gateway. If the underlying http.Client is not currently connected, this method will attempt to reconnect transparently before sending the notification. It will return a Response indicating whether the notification was accepted or rejected by the APNs gateway, or
(n *Notification)
| 153 | // |
| 154 | // Use PushWithContext if you need better cancellation and timeout control. |
| 155 | func (c *Client) Push(n *Notification) (*Response, error) { |
| 156 | return c.PushWithContext(context.Background(), n) |
| 157 | } |
| 158 | |
| 159 | // PushWithContext sends a Notification to the APNs gateway. Context carries a |
| 160 | // deadline and a cancellation signal and allows you to close long running |