{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-amplify/issues/638","repository_url":"https://api.github.com/repos/aws/aws-amplify","labels_url":"https://api.github.com/repos/aws/aws-amplify/issues/638/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-amplify/issues/638/comments","events_url":"https://api.github.com/repos/aws/aws-amplify/issues/638/events","html_url":"https://github.com/aws/aws-amplify/issues/638","id":313605937,"number":638,"title":"Running on device(ios), undefined is not a function (...window.addEventListener )","user":{"login":"7772","id":22615385,"avatar_url":"https://avatars2.githubusercontent.com/u/22615385?v=4","gravatar_id":"","url":"https://api.github.com/users/7772","html_url":"https://github.com/7772","followers_url":"https://api.github.com/users/7772/followers","following_url":"https://api.github.com/users/7772/following{/other_user}","gists_url":"https://api.github.com/users/7772/gists{/gist_id}","starred_url":"https://api.github.com/users/7772/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/7772/subscriptions","organizations_url":"https://api.github.com/users/7772/orgs","repos_url":"https://api.github.com/users/7772/repos","events_url":"https://api.github.com/users/7772/events{/privacy}","received_events_url":"https://api.github.com/users/7772/received_events","type":"User","site_admin":false},"labels":[{"id":708993529,"url":"https://api.github.com/repos/aws/aws-amplify/labels/help%20wanted","name":"help wanted","color":"33aa3f","default":true},{"id":708993532,"url":"https://api.github.com/repos/aws/aws-amplify/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-12T07:23:15Z","updated_at":"2018-04-12T23:52:27Z","closed_at":null,"author_association":"NONE","body":"#### My environment..\r\n\r\n  \"dependencies\": {\r\n    \"amazon-cognito-identity-js\": \"^2.0.3\",\r\n    \"aws-amplify\": \"^0.1.36\",\r\n    \"aws-amplify-react-native\": \"^0.2.7\",\r\n    \"aws-sdk\": \"^2.224.1\",\r\n    \"immutable\": \"^3.8.2\",\r\n    \"react\": \"^16.3.0-alpha.1\",\r\n    \"react-native\": \"0.54.0\",\r\n}\r\n\r\nimport Amplify, { API } from 'aws-amplify';\r\nimport aws_exports from '../../aws-exports';\r\n\r\nAmplify.configure(aws_exports);\r\n\r\n\r\n#### Problem\r\nI could run my project ios simulator !\r\n\r\nBut I can't run on device..\r\n\r\n![error](https://user-images.githubusercontent.com/22615385/38661911-73b20440-3e6d-11e8-93ec-f1ec46422ab6.jpeg)\r\n\r\n\r\n\r\nI checked the issue #230 but didn't work.\r\n\r\nWhat should i do to fix this error?\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/aws/aws-amplify/issues/comments/380978347","html_url":"https://github.com/aws/aws-amplify/issues/638#issuecomment-380978347","issue_url":"https://api.github.com/repos/aws/aws-amplify/issues/638","id":380978347,"user":{"login":"7772","id":22615385,"avatar_url":"https://avatars2.githubusercontent.com/u/22615385?v=4","gravatar_id":"","url":"https://api.github.com/users/7772","html_url":"https://github.com/7772","followers_url":"https://api.github.com/users/7772/followers","following_url":"https://api.github.com/users/7772/following{/other_user}","gists_url":"https://api.github.com/users/7772/gists{/gist_id}","starred_url":"https://api.github.com/users/7772/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/7772/subscriptions","organizations_url":"https://api.github.com/users/7772/orgs","repos_url":"https://api.github.com/users/7772/repos","events_url":"https://api.github.com/users/7772/events{/privacy}","received_events_url":"https://api.github.com/users/7772/received_events","type":"User","site_admin":false},"created_at":"2018-04-12T23:52:27Z","updated_at":"2018-04-12T23:52:27Z","author_association":"NONE","body":"@nidsharm @richardzcode \r\n\r\nI solved this error after $ npm install aws-amplify@latest\r\n\r\nThanks a lot Friends!"}}
{"actor":{"display_login":"7772"}}