Giter Site home page Giter Site logo

php-gcm-apns's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

php-gcm-apns's Issues

Looks like an interesting library, but...

Well after performing the necessary 'composer require's (which I think I've rarely done before), I uploaded php, restarted apache, and attempted to run... getting error "PHP Fatal error: Uncaught Error: Class 'albaraam\gcmapns\Message' not found in /var/www/html/notifier_basic.php:6\nStack trace:\n#0 {main}\n thrown in /var/www/html/notifier_basic.php on line 6"

php --version

PHP 7.3.31-1~deb10u1 (cli) (built: Oct 24 2021 15:18:08) ( NTS )
...

HTTP Authentication Error with no targets in the Android section

When there are no targets in the Android section, I get an albaraam\gcm\exceptions\AuthenticationException: HTTP Authentication Error .

The backtrace tells me it is at:
albaraam\gcm\GCMClient->send(Object(albaraam\gcm\GCMMessage))
/vendor/albaraam/php-gcm-apns/src/Client.php (90)

I have managed to temporarily fix the issue by changing Client->send() to check if there is a target before trying to send the message.

if($this->getAndroidClient() && count($message->android->getTo()) > 0) $response['android'] = $this->sendAndroid($message);
if($this->getIOSClient() && count($message->ios->getTo()) > 0) $response['ios'] = $this->sendIOS($message);

Is there a reason such a check is not made that I am not aware of?

Problem installing with composer

hi
im trying to install it but i have this errors

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for albaraam/php-gcm-apns ~1.0.0 -> satisfiable by albaraam/php-gcm-apns[v1.0.0].
    - albaraam/php-gcm-apns v1.0.0 requires duccio/apns-php dev-master -> satisfiable by duccio/apns-php[dev-master] but these conflict with your requirements or minimum-

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.