gepo / apns-http2 Goto Github PK
View Code? Open in Web Editor NEWLibrary for sending APNS over HTTP/2.
License: MIT License
Library for sending APNS over HTTP/2.
License: MIT License
I am using following script to send push notification, its working fine. But there is no response of success, how can I enable it.
`require_once DIR . '/vendor/autoload.php';
$client = new \Apns\Client(DIR . '/certs/pushcert.pem', true);
$message = (new \Apns\Message())
->setDeviceIdentifier('some-device-token')
->setAlert('Test message')
;
$response = $client->send($message);
`
If device token is incorrect its throwing fatal error, how can I handle this?
How can I understand the flow of execution if I want to change something.
im getting a response {"reason":"DeviceTokenNotForTopic"}
im testing from this my localhost
can anybody can assist me on this
is there any way to avoid the topic ??
when I removing the topic from the code
it's returning Missing Topic response
Care to craft a release?
This shall make installing with composer less cumbersome.
But not after merging #2
I installed this yesterday and did a lot of testing today and it appears to work. However, I periodically get a error stating the alert certificate has been revoked.
A few minutes later things work fine. Any ideas what is going on? I don't see how a certificate can be revoked and then a few minutes later things are fine. It almost seems like an initialized variable or something.
Below is an abbreviated output when it crashes.
Uncaught GuzzleHttp\Exception\RequestException: cURL error 56: OpenSSL SSL_read: error:14094414:SSL routines:ssl3_read_bytes:sslv3 alert certificate revoked, errno 0 (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) in /home/xxxxx/www/www/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:201 Stack trace: #0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.