Giter VIP home page Giter VIP logo

apns-http2's People

Contributors

gepo avatar letynsoft avatar sanmai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

apns-http2's Issues

How to get response of success.

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.

setAPSCategory error

hi guys i found error in function setAPSCategory
image
there is no return for this function so it will be null and aps wont sent

you can add return for this function

400 Bad Request

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

Release please

Care to craft a release?

This shall make installing with composer less cumbersome.

But not after merging #2

Periodically I get alert certificate revoked error

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.