我已在我的应用中实施 APNS 。我在PHP端获得崩溃日志如下;
log.ERROR: exception 'ErrorException' with message 'stream_socket_client(): php_network_getaddresses: getaddrinfo failed: Name or service not known' in /web/testapp-web/backend/app/classes/PushService.php:80 Stack trace:
#0 [internal function]: Illuminate\Exception\Handler->handleError(2, 'stream_socket_c...', '/web/testapp-...', 80, Array)
#1 /web/testapp-web/backend/app/classes/PushService.php(80): stream_socket_client('ssl://sandbox.g...', 0, '', 60, 5, Resource id
#15)
#2 /web/testapp-web/backend/app/classes/PushService.php(34): PushService->pushIOS(Array, Array)
#3 /web/testapp-web/backend/app/classes/PushService.php(177): PushService->pushDevices(Array, Array)
#4 /web/testapp-web/backend/app/classes/PushService.php(288): PushService->pushUser('110', Array)
#5 /web/testapp-web/backend/app/controllers/api/ApiAdsController.php(564): PushService->pushOfferNew(Object(AdOffer))
#6 [internal function]: ApiAdsController->offer()
#7 /web/testapp-web/backend/vendor/laravel/framework/src/Illuminate/Routing/Controllers/Controller.php(138): call_user_func_array(Array, Array)
#8 /web/testapp-web/backend/vendor/laravel/framework/src/Illuminate/Routing/Controllers/Controller.php(115): Illuminate\Routing\Controllers\Controller->callMethod('offer', Array)
#9 /web/testapp-web/backend/vendor/laravel/framework/src/Illuminate/Routing/Router.php(985): Illuminate\Routing\Controllers\Controller->callAction(Object(Illuminate\Foundation\Application), Object(Illuminate\Routing\Router), 'offer', Array)
#10 [internal function]: Illuminate\Routing\Router->Illuminate\Routing\{closure}()
#11 /web/testapp-web/backend/vendor/laravel/framework/src/Illuminate/Routing/Route.php(80): call_user_func_array(Object(Closure), Array)
#12 /web/testapp-web/backend/vendor/laravel/framework/src/Illuminate/Routing/Route.php(47): Illuminate\Routing\Route->callCallable()
#13 /web/testapp-web/backend/vendor/laravel/framework/src/Illuminate/Routing/Router.php(1016): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request))
#14 /web/testapp-web/backend/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(530): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#15 /web/testapp-web/backend/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(506): Illuminate\Foundation\Application->dispatch(Object(Illuminate\Http\Request))
#16 /web/testapp-web/backend/index.php(49): Illuminate\Foundation\Application->run()
我已经为开发和生产制作了新的推送certi和.pem文件。 在生产中,推送发送和接收工作正常。但在开发方面,我遇到上述错误。
我已按照http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1执行此操作。
我经常搜索但无法获得解决方案。
请帮帮我。
谢谢