Skip to content

Commit 75436b6

Browse files
authored
Merge pull request #47 from pusher/update-readme
Remove Push Notifications (BETA)
2 parents 412688b + f05868a commit 75436b6

File tree

1 file changed

+0
-43
lines changed

1 file changed

+0
-43
lines changed

README.md

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ This library requires you to be using at least Go 1.5 or greater.
2323
- [Authenticating Channels](#authenticating-channels)
2424
- [Application state](#application-state)
2525
- [Webhook validation](#webhook-validation)
26-
- [Push Notifications (beta)](#push-notifications)
2726
- [Feature Support](#feature-support)
2827
- [Developing the Library](#developing-the-library)
2928
- [Running the tests](#running-the-tests)
@@ -567,47 +566,6 @@ func pusherWebhook(res http.ResponseWriter, req *http.Request) {
567566
}
568567
```
569568

570-
### Push Notifications
571-
572-
Send a push notification to native iOS and Android apps even when they are not open on the device. You can combine push notifications with our WebSocket system to deliver data to users whether they are connected or not. For more information see <https://pusher.com/docs/push_notifications>.
573-
574-
##### `func (c *Client) Notify`
575-
576-
| Argument | Description |
577-
| :-: | :-: |
578-
| PushNotification `pusher.PushNotification` | The struct containing your push notification data |
579-
580-
| Return Value | Description |
581-
| :-: | :-: |
582-
| err `error` | If Notify is unsuccessful, an error value will be passed. |
583-
584-
###### Custom Types
585-
586-
**pusher.PushNotification**
587-
588-
```go
589-
type PushNotification struct {
590-
Interests []string
591-
WebhookURL string
592-
APNS interface{}
593-
GCM interface{}
594-
FCM interface{}
595-
}
596-
```
597-
598-
###### Example
599-
600-
```go
601-
func sendPushNotification(client pusher.Client, GCMNotification interface{}) error {
602-
pn := pusher.PushNotification{
603-
Interests: []string{"testInterest"},
604-
GCM: GCMNotification,
605-
}
606-
607-
return client.Notify(pn)
608-
}
609-
```
610-
611569
## Feature Support
612570

613571
Feature | Supported
@@ -621,7 +579,6 @@ Authenticating presence channels | *&#10004;*
621579
Get the list of channels in an application | *&#10004;*
622580
Get the state of a single channel | *&#10004;*
623581
Get a list of users in a presence channel | *&#10004;*
624-
Push Notifications | *&#10004;*
625582
WebHook validation | *&#10004;*
626583
Heroku add-on support | *&#10004;*
627584
Debugging & Logging | *&#10004;*

0 commit comments

Comments
 (0)