Edujugon / PushNotification

PHP and Laravel Package to send push notifications to Android and IOS devices.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

apns getFeedback parse error

agrakhov opened this issue · comments

First of all, thanks for this lib.
One problem here, when I try to send apns notification its delivered successfully but seems like apns getFeedback method is failing with following error: stream_socket_client(): unable to connect to (Failed to parse address "")
Config is regular, just cert and passPhrase added.
Stack trace:

Stack trace:
#0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'stream_socket_c...', '/var/www/html/v...', 294, Array)
#1 /var/www/html/vendor/edujugon/push-notification/src/Apn.php(294): stream_socket_client('', 0, 'Failed to parse...', 60, 4, Resource id #370)
#2 /var/www/html/vendor/edujugon/push-notification/src/Apn.php(260): Edujugon\PushNotification\Apn->apnsFeedback()
#3 /var/www/html/vendor/edujugon/push-notification/src/PushNotification.php(163): Edujugon\PushNotification\Apn->send(Array, Array)
...

I was able to figure out what was the problem, in my config I've commented out 'dry_run' => false line, which lead to this error.
Please close the issue.