Skip to content

Commit

Permalink
Merge d7654dc into 991ef56
Browse files Browse the repository at this point in the history
  • Loading branch information
sideshow committed Dec 1, 2019
2 parents 991ef56 + d7654dc commit f84cb8e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Expand Up @@ -55,7 +55,11 @@ func main() {
notification.Topic = "com.sideshow.Apns2"
notification.Payload = []byte(`{"aps":{"alert":"Hello!"}}`) // See Payload section below

client := apns2.NewClient(cert).Production()
// If you want to test push notifications for builds running directly from XCode (Development), use
// client := apns2.NewClient(cert).Development()
// For apps published to the app store or installed as an ad-hoc distribution use Production()

client := apns2.NewClient(cert).Production()
res, err := client.Push(notification)

if err != nil {
Expand Down

0 comments on commit f84cb8e

Please sign in to comment.