{"action":"created","issue":{"url":"https://api.github.com/repos/adobkin/php-apn/issues/7","labels_url":"https://api.github.com/repos/adobkin/php-apn/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/adobkin/php-apn/issues/7/comments","events_url":"https://api.github.com/repos/adobkin/php-apn/issues/7/events","html_url":"https://github.com/adobkin/php-apn/issues/7","id":34881158,"number":7,"title":"Could not send push, invalid token","user":{"login":"tannernelson","id":1342803,"avatar_url":"https://avatars.githubusercontent.com/u/1342803?v=3","gravatar_id":"","url":"https://api.github.com/users/tannernelson","html_url":"https://github.com/tannernelson","followers_url":"https://api.github.com/users/tannernelson/followers","following_url":"https://api.github.com/users/tannernelson/following{/other_user}","gists_url":"https://api.github.com/users/tannernelson/gists{/gist_id}","starred_url":"https://api.github.com/users/tannernelson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tannernelson/subscriptions","organizations_url":"https://api.github.com/users/tannernelson/orgs","repos_url":"https://api.github.com/users/tannernelson/repos","events_url":"https://api.github.com/users/tannernelson/events{/privacy}","received_events_url":"https://api.github.com/users/tannernelson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-06-03T16:38:22Z","updated_at":"2015-03-11T13:04:55Z","closed_at":null,"body":"I have a couple thousand devices I am trying to send a push notification to, and I keep getting this error: `message\":\"Could not send push invalid device token\",\"errno\":703` It is sending the push notification to some devices, but stops sending once it hits an invalid token. How can I set PHP-APN to ignore these invalid tokens or how do I get rid of them efficiently?\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/adobkin/php-apn/issues/comments/78258762","html_url":"https://github.com/adobkin/php-apn/issues/7#issuecomment-78258762","issue_url":"https://api.github.com/repos/adobkin/php-apn/issues/7","id":78258762,"user":{"login":"DotZecker","id":1331435,"avatar_url":"https://avatars.githubusercontent.com/u/1331435?v=3","gravatar_id":"","url":"https://api.github.com/users/DotZecker","html_url":"https://github.com/DotZecker","followers_url":"https://api.github.com/users/DotZecker/followers","following_url":"https://api.github.com/users/DotZecker/following{/other_user}","gists_url":"https://api.github.com/users/DotZecker/gists{/gist_id}","starred_url":"https://api.github.com/users/DotZecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DotZecker/subscriptions","organizations_url":"https://api.github.com/users/DotZecker/orgs","repos_url":"https://api.github.com/users/DotZecker/repos","events_url":"https://api.github.com/users/DotZecker/events{/privacy}","received_events_url":"https://api.github.com/users/DotZecker/received_events","type":"User","site_admin":false},"created_at":"2015-03-11T13:04:55Z","updated_at":"2015-03-11T13:04:55Z","body":"I'm trying to retrieve the devices invalids tokens\r\n````php\r\nif (apn_feedback_connect($apn, $error, $errcode)) {\r\n    $tokens = apn_feedback($apn, $error, $errcode);\r\n    if ( ! is_array($tokens)) {\r\n        echo 'Failed to obtain device tokens: ' . $error;\r\n    } else {\r\n        foreach($tokens as $token) {\r\n              echo 'Token: '.$token;\r\n        }\r\n    }\r\n} else {\r\n    echo 'Failed to connect to Apple Push Feedback Service: ' . $error;\r\n}\r\n````\r\nPreviously I'm forcing invalid devices tokens but still this is returning me `$tokens` empty array."}}