src/Sly/NotificationPusher/ApnsPushService.php
public function feedback()
    {
        $adapterParams                = [];
        $adapterParams['certificate'] = $this->certificatePath;
        $adapterParams['passPhrase']  = $this->passPhrase;

        // Development one by default (without argument).
        /** @var PushManager $pushManager */
        $pushManager = new PushManager($this->environment);

        // Then declare an adapter.
        $apnsAdapter = new ApnsAdapter($adapterParams);

        $this->feedback = $pushManager->getFeedback($apnsAdapter);

        return $this->feedback;
    }
public function feedback()
    {
        $adapterParams                = [];
        $adapterParams['certificate'] = $this->certificatePath;
        $adapterParams['passPhrase']  = $this->passPhrase;

        // Development one by default (without argument).
        /** @var PushManager $pushManager */
        $pushManager = new PushManager($this->environment);

        // Then declare an adapter.
        $apnsAdapter = new ApnsAdapter($adapterParams);

        $this->feedback = $pushManager->getFeedback($apnsAdapter);

        return $this->feedback;
    }
public function feedback ( ) { $ adapterParams = [ ] ; $ adapterParams [ 'certificate' ] = $ this -> certificatePath ; $ adapterParams [ 'passPhrase' ] = $ this -> passPhrase ; // Development one by default (without argument). /** @var PushManager $pushManager */ $ pushManager = new PushManager ( $ this -> environment ) ; // Then declare an adapter. $ apnsAdapter = new ApnsAdapter ( $ adapterParams ) ; $ this -> feedback = $ pushManager -> getFeedback ( $ apnsAdapter ) ; return $ this -> feedback ; }
Use feedback to get not registered tokens from last send
and remove them from your DB

@return array
Use feedback to get not registered tokens from last send and remove them from your DB