Skip to content

Commit

Permalink
Add note about production/ad-hoc
Browse files Browse the repository at this point in the history
  • Loading branch information
sideshow committed Dec 1, 2019
1 parent 05e1d91 commit d7654dc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ func main() {
notification.Topic = "com.sideshow.Apns2"
notification.Payload = []byte(`{"aps":{"alert":"Hello!"}}`) // See Payload section below

/*
* If you want to test the push notification for the builds running directly from the XCode (Development), Use
* client := apns2.NewClient(cert).Development()
*/
// 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)

Expand Down

0 comments on commit d7654dc

Please sign in to comment.