src/GcmChannel.php
protected function handleFailedNotifications($notifiable, Notification $notification, $response)
    {
        $results = $response->getResults();

        foreach ($results as $token => $result) {
            if (! isset($result['error'])) {
                continue;
            }

            $this->events->dispatch(
                new NotificationFailed($notifiable, $notification, get_class($this), [
                    'token' => $token,
                    'error' => $result['error'],
                ])
            );
        }
    }
protected function handleFailedNotifications($notifiable, Notification $notification, $response)
    {
        $results = $response->getResults();

        foreach ($results as $token => $result) {
            if (! isset($result['error'])) {
                continue;
            }

            $this->events->dispatch(
                new NotificationFailed($notifiable, $notification, get_class($this), [
                    'token' => $token,
                    'error' => $result['error'],
                ])
            );
        }
    }
protected function handleFailedNotifications ( $ notifiable , Notification $ notification , $ response ) { $ results = $ response -> getResults ( ) ; foreach ( $ results as $ token => $ result ) { if ( ! isset ( $ result [ 'error' ] ) ) { continue ; } $ this -> events -> dispatch ( new NotificationFailed ( $ notifiable , $ notification , get_class ( $ this ) , [ 'token' => $ token , 'error' => $ result [ 'error' ] , ] ) ) ; } }
Handle a failed notification.

@param mixed $notifiable
@param \Illuminate\Notifications\Notification $notification
@param $response
Handle a failed notification .