{"action":"created","issue":{"url":"https://api.github.com/repos/expo/expo/issues/1745","repository_url":"https://api.github.com/repos/expo/expo","labels_url":"https://api.github.com/repos/expo/expo/issues/1745/labels{/name}","comments_url":"https://api.github.com/repos/expo/expo/issues/1745/comments","events_url":"https://api.github.com/repos/expo/expo/issues/1745/events","html_url":"https://github.com/expo/expo/issues/1745","id":322278836,"number":1745,"title":"Multiple DeviceNotRegistered errors","user":{"login":"toxox","id":2093883,"avatar_url":"https://avatars0.githubusercontent.com/u/2093883?v=4","gravatar_id":"","url":"https://api.github.com/users/toxox","html_url":"https://github.com/toxox","followers_url":"https://api.github.com/users/toxox/followers","following_url":"https://api.github.com/users/toxox/following{/other_user}","gists_url":"https://api.github.com/users/toxox/gists{/gist_id}","starred_url":"https://api.github.com/users/toxox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toxox/subscriptions","organizations_url":"https://api.github.com/users/toxox/orgs","repos_url":"https://api.github.com/users/toxox/repos","events_url":"https://api.github.com/users/toxox/events{/privacy}","received_events_url":"https://api.github.com/users/toxox/received_events","type":"User","site_admin":false},"labels":[{"id":872885768,"url":"https://api.github.com/repos/expo/expo/labels/project:%20push-notifications","name":"project: push-notifications","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":{"login":"ide","id":379606,"avatar_url":"https://avatars0.githubusercontent.com/u/379606?v=4","gravatar_id":"","url":"https://api.github.com/users/ide","html_url":"https://github.com/ide","followers_url":"https://api.github.com/users/ide/followers","following_url":"https://api.github.com/users/ide/following{/other_user}","gists_url":"https://api.github.com/users/ide/gists{/gist_id}","starred_url":"https://api.github.com/users/ide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ide/subscriptions","organizations_url":"https://api.github.com/users/ide/orgs","repos_url":"https://api.github.com/users/ide/repos","events_url":"https://api.github.com/users/ide/events{/privacy}","received_events_url":"https://api.github.com/users/ide/received_events","type":"User","site_admin":false},"assignees":[{"login":"ide","id":379606,"avatar_url":"https://avatars0.githubusercontent.com/u/379606?v=4","gravatar_id":"","url":"https://api.github.com/users/ide","html_url":"https://github.com/ide","followers_url":"https://api.github.com/users/ide/followers","following_url":"https://api.github.com/users/ide/following{/other_user}","gists_url":"https://api.github.com/users/ide/gists{/gist_id}","starred_url":"https://api.github.com/users/ide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ide/subscriptions","organizations_url":"https://api.github.com/users/ide/orgs","repos_url":"https://api.github.com/users/ide/repos","events_url":"https://api.github.com/users/ide/events{/privacy}","received_events_url":"https://api.github.com/users/ide/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2018-05-11T12:28:32Z","updated_at":"2018-05-15T04:48:46Z","closed_at":null,"author_association":"NONE","body":"Hi Expo team!\r\n\r\nRecently I experienced issues with push notifications using Expo's service in standalone apps. I have set up email alerts to inform me about cases when push receipts contain errors. Some time on May 9th I started receiving unusually high number of alerts: roughly 50% of our users stopped receiving notifications. The errors themselves look like this:\r\n\r\n``` \r\n{\r\n    \"status\": \"error\",\r\n    \"message\": \"The recipient \\\"ExponentPushToken[xxxxxxxxxxxxxxxxxxxxxx]\\\" is not associated with a device actively registered to receive push notifications; stop sending notifications to this recipient until you get an Expo push token from it once again and still have its permission to send notifications.\",\r\n    \"details\": {\r\n      \"error\": \"DeviceNotRegistered\"\r\n    }\r\n  },\r\n```\r\nThe app is configured in a way that it will send a request to update token value in DB whenever updated token is available via `Notifications.getExpoPushTokenAsync`. The problem is that this method still returns old token (the one we already have and using it results in an error). The only way I could get a new token is reinstalling the app completely, which is far from an ideal solution.\r\n\r\nDiagnostics report:\r\n\r\nEnvironment:\r\n  OS: Linux 4.4\r\n  Node: 8.6.0\r\n  Yarn: 1.6.0\r\n  npm: 5.3.0\r\n  Watchman: Not Found\r\n  Xcode: N/A\r\n  Android Studio: Not Found\r\n\r\nPackages: (wanted => installed)\r\n  expo: ^26.0.0 => 26.0.0\r\n  react: 16.3.0-alpha.1 => 16.3.0-alpha.1\r\n  react-native: https://github.com/expo/react-native/archive/sdk-26.0.0.tar.gz => https://github.com/expo/react-native/archive/sdk-26.0.0.tar.gz\r\n\r\n\r\nThings to note:\r\n1) Neither app or back-end had been updated for about a month before the issue first appeared\r\n2) This looks different from #1568 as iOS devices are affected as well.\r\n3) Users definitely didn't block notifications from the app on their devices.\r\n4) I'm using expo-server-sdk package\r\n\r\nQuestions:\r\n1) What's the lifespan of expo tokens? Is it possible that they just expired?\r\n2) Is it possible that these tokens hit their usage limits or something? We kind of send a lot of notifications daily.\r\n\r\nIs there any way I can fix this on my side? Let me know if there's any other info you need, I'll be glad to help you with the investigation.\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/expo/expo/issues/comments/389041719","html_url":"https://github.com/expo/expo/issues/1745#issuecomment-389041719","issue_url":"https://api.github.com/repos/expo/expo/issues/1745","id":389041719,"user":{"login":"physixfan","id":4311261,"avatar_url":"https://avatars3.githubusercontent.com/u/4311261?v=4","gravatar_id":"","url":"https://api.github.com/users/physixfan","html_url":"https://github.com/physixfan","followers_url":"https://api.github.com/users/physixfan/followers","following_url":"https://api.github.com/users/physixfan/following{/other_user}","gists_url":"https://api.github.com/users/physixfan/gists{/gist_id}","starred_url":"https://api.github.com/users/physixfan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/physixfan/subscriptions","organizations_url":"https://api.github.com/users/physixfan/orgs","repos_url":"https://api.github.com/users/physixfan/repos","events_url":"https://api.github.com/users/physixfan/events{/privacy}","received_events_url":"https://api.github.com/users/physixfan/received_events","type":"User","site_admin":false},"created_at":"2018-05-15T04:48:46Z","updated_at":"2018-05-15T04:48:46Z","author_association":"NONE","body":"It seems the problem is fixed as of 2018.05.14 21:00 PST! Thanks!"}}
{"actor":{"display_login":"physixfan"}}