0

In our application using PHP 5.6 version. In this version is not enable HTTP2 protocol. So we can't able to send a push notification to the APNS. Suddenly we can't able to upgrade the PHP versions.

How can I enable HTTP2 protocol and send a notification to APNS.

We tried lot of things.

Jayakumar
  • 91
  • 1
  • 14

1 Answers1

0

Your need to rebuild PHP curl extension with libcurl which has HTTP/2 support enabled (--with-nghttp2). After that, You can use duccio/apns-php v2.0.0-alpha library to send HTTP/2 request to APNs.

Check out this answer for details.

Gasol
  • 2,319
  • 17
  • 27