Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 1.07 KB

File metadata and controls

23 lines (16 loc) · 1.07 KB

How to send HTTP/2 based Push Notifications in iOS?

PHP - Laravel iOS Push Notification updated / upgraded to HTTP-2

Now Apple supports push notifications based on the HTTP/2 network protocol. Here is a simple class you use in core PHP or as Laravel Helper in any version as, when and wherever you want.

Note required changes before use:


  1. pem cetificate save in config/certificates/file-name.pem
  • $apple_cert = config_path('certificates/CertificateAPNUser.pem');

  1. use for production/live .pem

  1. use this for development or testing .pem

=> Any further enhancements are warmly welcomed.

For more ref: https://developer.apple.com/forums/thread/62191?answerId=176107022#176107022