Skip to content

Commit da20148

Browse files
authored
Update development APNS host (#146)
* Update development APNS host The development APNS host url was outdated. The new URL is `https://api.sandbox.push.apple.com` From: https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apns
1 parent 4fbb779 commit da20148

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919

2020
// Apple HTTP/2 Development & Production urls
2121
const (
22-
HostDevelopment = "https://api.development.push.apple.com"
22+
HostDevelopment = "https://api.sandbox.push.apple.com"
2323
HostProduction = "https://api.push.apple.com"
2424
)
2525

client_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,22 +58,22 @@ func (c *mockTransport) CloseIdleConnections() {
5858

5959
func TestClientDefaultHost(t *testing.T) {
6060
client := apns.NewClient(mockCert())
61-
assert.Equal(t, "https://api.development.push.apple.com", client.Host)
61+
assert.Equal(t, "https://api.sandbox.push.apple.com", client.Host)
6262
}
6363

6464
func TestTokenDefaultHost(t *testing.T) {
6565
client := apns.NewTokenClient(mockToken()).Development()
66-
assert.Equal(t, "https://api.development.push.apple.com", client.Host)
66+
assert.Equal(t, "https://api.sandbox.push.apple.com", client.Host)
6767
}
6868

6969
func TestClientDevelopmentHost(t *testing.T) {
7070
client := apns.NewClient(mockCert()).Development()
71-
assert.Equal(t, "https://api.development.push.apple.com", client.Host)
71+
assert.Equal(t, "https://api.sandbox.push.apple.com", client.Host)
7272
}
7373

7474
func TestTokenClientDevelopmentHost(t *testing.T) {
7575
client := apns.NewTokenClient(mockToken()).Development()
76-
assert.Equal(t, "https://api.development.push.apple.com", client.Host)
76+
assert.Equal(t, "https://api.sandbox.push.apple.com", client.Host)
7777
}
7878

7979
func TestClientProductionHost(t *testing.T) {

0 commit comments

Comments
 (0)