By Admin on Friday, 16 April 2021
Category: All

Apple Push Notifications - Send HTTP/2 notifications (Part 2/4)

In the previous blog, I show how retrieve a device token, now I will show how use the HTTP/2 sgcWebSockets client to send a notification (without the authentication part).

Send your remote notification payload and device token information to Apple Push Notification service (APNs).

How Connect to APNs

You must use HTTP/2 protocol and at least TLS 1.2 or later to establish a successful connection between your Server Provider and one of the following servers:

Development Server: https://api.sandbox.push.apple

Production Server: https://api.push.apple

Delphi Code 

​Create a new instance of TsgcHTTP2Client and call the method POST to send a notification to APNs.

Related Posts