Skip to content

Commit 43245ea

Browse files
authored
Update README.md
1 parent 1a61b94 commit 43245ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ let apnsConfig = try APNSwiftConfiguration(
3939

4040
let apns = try APNSwiftConnection.connect(configuration: apnsConfig, on: group.next()).wait()
4141
let aps = APNSwiftPayload(alert: .init(title: "Hey There", subtitle: "Subtitle", body: "Body"), hasContentAvailable: true)
42-
try apnsConn.send(BasicNotification(aps: aps), pushType: .alert, to: "98AAD4A2398DDC58595F02FA307DF9A15C18B6111D1B806949549085A8E6A55D").wait()
42+
try apns.send(BasicNotification(aps: aps), pushType: .alert, to: "98AAD4A2398DDC58595F02FA307DF9A15C18B6111D1B806949549085A8E6A55D").wait()
4343
try apns.close().wait()
4444
try group.syncShutdownGracefully()
4545
exit(0)

0 commit comments

Comments
 (0)