App\Ninja\Notifications\PushFactory::getFeedback PHP Method

getFeedback() public method

Returns an array of expired/invalid tokens to be removed from iOS PUSH notifications. We need to run this once ~ 24hrs
public getFeedback ( string $token, string $message = '' ) : array
$token string - A valid token (can be any valid token)
$message string - Nil value for message
return array
    public function getFeedback($token, $message = '')
    {
        $feedback = PushNotification::app($this->certificate)->to($token)->send($message);
        return $feedback->getFeedback();
    }