{"action":"created","issue":{"url":"https://api.github.com/repos/davibennun/laravel-push-notification/issues/83","repository_url":"https://api.github.com/repos/davibennun/laravel-push-notification","labels_url":"https://api.github.com/repos/davibennun/laravel-push-notification/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/davibennun/laravel-push-notification/issues/83/comments","events_url":"https://api.github.com/repos/davibennun/laravel-push-notification/issues/83/events","html_url":"https://github.com/davibennun/laravel-push-notification/issues/83","id":122702763,"number":83,"title":"[iOS] Error Device token must be mask \"/[^0-9a-f]/\"  - Laravel 4.2","user":{"login":"dzung1nguyen","id":14831468,"avatar_url":"https://avatars2.githubusercontent.com/u/14831468?v=3","gravatar_id":"","url":"https://api.github.com/users/dzung1nguyen","html_url":"https://github.com/dzung1nguyen","followers_url":"https://api.github.com/users/dzung1nguyen/followers","following_url":"https://api.github.com/users/dzung1nguyen/following{/other_user}","gists_url":"https://api.github.com/users/dzung1nguyen/gists{/gist_id}","starred_url":"https://api.github.com/users/dzung1nguyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dzung1nguyen/subscriptions","organizations_url":"https://api.github.com/users/dzung1nguyen/orgs","repos_url":"https://api.github.com/users/dzung1nguyen/repos","events_url":"https://api.github.com/users/dzung1nguyen/events{/privacy}","received_events_url":"https://api.github.com/users/dzung1nguyen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2015-12-17T10:10:17Z","updated_at":"2017-04-13T08:29:26Z","closed_at":"2016-02-07T15:49:04Z","body":"Hi Guys,\n\nI am using laravel 4.2 and current i have  a bug when push notification to iOS.\n\nThis's  bug:\n\nDevice token must be mask \"/[^0-9a-f]/\". Token given: \"96133C211DB1E54E0C1310EC43C628D341B568C9C612FBCEA97C2D0ECD75B2C6\"\n\nBefore, i worked, but recently, it's error.\n\nPlease help me.\n\nSo Thanks.\n\n*\\* I found solution **\n\n/vendor/zendframework/zendservice-apple-apns/library/ZendService/Apple/Apns/Message.php\nChange from\n\nif (preg_match('/[^0-9a-f]/', $token)) {\n            throw new Exception\\InvalidArgumentException(sprintf(\n                    'Device token must be mask \"%s\". Token given: \"%s\"',\n                    '/[^0-9a-f]/',\n                    $token\n            ));\n        }\n\nTO\n\nif (preg_match('/[^0-9a-fA-F]/', $token)) {\n            throw new Exception\\InvalidArgumentException(sprintf(\n                    'Device token must be mask \"%s\". Token given: \"%s\"',\n                    '/[^0-9a-f]/',\n                    $token\n            ));\n        }\n"},"comment":{"url":"https://api.github.com/repos/davibennun/laravel-push-notification/issues/comments/293826460","html_url":"https://github.com/davibennun/laravel-push-notification/issues/83#issuecomment-293826460","issue_url":"https://api.github.com/repos/davibennun/laravel-push-notification/issues/83","id":293826460,"user":{"login":"rupalipemare","id":24582815,"avatar_url":"https://avatars1.githubusercontent.com/u/24582815?v=3","gravatar_id":"","url":"https://api.github.com/users/rupalipemare","html_url":"https://github.com/rupalipemare","followers_url":"https://api.github.com/users/rupalipemare/followers","following_url":"https://api.github.com/users/rupalipemare/following{/other_user}","gists_url":"https://api.github.com/users/rupalipemare/gists{/gist_id}","starred_url":"https://api.github.com/users/rupalipemare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rupalipemare/subscriptions","organizations_url":"https://api.github.com/users/rupalipemare/orgs","repos_url":"https://api.github.com/users/rupalipemare/repos","events_url":"https://api.github.com/users/rupalipemare/events{/privacy}","received_events_url":"https://api.github.com/users/rupalipemare/received_events","type":"User","site_admin":false},"created_at":"2017-04-13T08:29:26Z","updated_at":"2017-04-13T08:29:26Z","body":"Getting same errror even on changing to 400 the issue is not resolved. Changing any core vendor is right option as if we update composer the changes be overridden"}}
{"actor":{"display_login":"rupalipemare"}}