Git Product home page Git Product logo

Comments (4)

davibennun avatar davibennun commented on August 25, 2024

Have you tried setting sslverifypeer on the config file? Like:

'appNameAndroid'=>array(
        'environment'=>'production',
        'apiKey'=>'yourAPIKey',
        'service'=>'gcm',
        'sslverifypeer'=>false 
    )

Anyhow, this lib needs some serious refactoring, I`m waiting for some free time to refactor and to write some unit tests, meanwhile you can submit a pull request or fork it.

from laravel-push-notification.

younes0 avatar younes0 commented on August 25, 2024

Yes, but sslverifypeer is not a gcm adapter property, so it doesn't work.
Okay I will make some PR soon.

from laravel-push-notification.

n0m4dz avatar n0m4dz commented on August 25, 2024

You should change 'vendor/zendframework/zend-http/Zend/Http/Client/Adapter/Socket.php' 'line':68 -> sslverifypeer to false. Then it will work, good luck :)

from laravel-push-notification.

younes0 avatar younes0 commented on August 25, 2024

@TseegiiTselmeg you shouldn't modify vendor files since you can't commit/track their changes (and I hope you don't include vendor files in your repo).

The proper workaround is :

$push = Push::app('myApp'); // init
$push->adapter->setAdapterParameters(['sslverifypeer' => false]); 

I believe that it's up to the Notification Package to make any changes about this and not this library for logic/concern reasons.

from laravel-push-notification.

Related Issues (20)

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.