{"action":"created","issue":{"url":"https://api.github.com/repos/driftyco/ionic-cli/issues/1701","repository_url":"https://api.github.com/repos/driftyco/ionic-cli","labels_url":"https://api.github.com/repos/driftyco/ionic-cli/issues/1701/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic-cli/issues/1701/comments","events_url":"https://api.github.com/repos/driftyco/ionic-cli/issues/1701/events","html_url":"https://github.com/driftyco/ionic-cli/issues/1701","id":190636626,"number":1701,"title":"Cordova plugins not working for device / simulator when using --livereload","user":{"login":"pjorquera","id":2110224,"avatar_url":"https://avatars.githubusercontent.com/u/2110224?v=3","gravatar_id":"","url":"https://api.github.com/users/pjorquera","html_url":"https://github.com/pjorquera","followers_url":"https://api.github.com/users/pjorquera/followers","following_url":"https://api.github.com/users/pjorquera/following{/other_user}","gists_url":"https://api.github.com/users/pjorquera/gists{/gist_id}","starred_url":"https://api.github.com/users/pjorquera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjorquera/subscriptions","organizations_url":"https://api.github.com/users/pjorquera/orgs","repos_url":"https://api.github.com/users/pjorquera/repos","events_url":"https://api.github.com/users/pjorquera/events{/privacy}","received_events_url":"https://api.github.com/users/pjorquera/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"jthoms1","id":1425431,"avatar_url":"https://avatars.githubusercontent.com/u/1425431?v=3","gravatar_id":"","url":"https://api.github.com/users/jthoms1","html_url":"https://github.com/jthoms1","followers_url":"https://api.github.com/users/jthoms1/followers","following_url":"https://api.github.com/users/jthoms1/following{/other_user}","gists_url":"https://api.github.com/users/jthoms1/gists{/gist_id}","starred_url":"https://api.github.com/users/jthoms1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jthoms1/subscriptions","organizations_url":"https://api.github.com/users/jthoms1/orgs","repos_url":"https://api.github.com/users/jthoms1/repos","events_url":"https://api.github.com/users/jthoms1/events{/privacy}","received_events_url":"https://api.github.com/users/jthoms1/received_events","type":"User","site_admin":false},"assignees":[{"login":"jthoms1","id":1425431,"avatar_url":"https://avatars.githubusercontent.com/u/1425431?v=3","gravatar_id":"","url":"https://api.github.com/users/jthoms1","html_url":"https://github.com/jthoms1","followers_url":"https://api.github.com/users/jthoms1/followers","following_url":"https://api.github.com/users/jthoms1/following{/other_user}","gists_url":"https://api.github.com/users/jthoms1/gists{/gist_id}","starred_url":"https://api.github.com/users/jthoms1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jthoms1/subscriptions","organizations_url":"https://api.github.com/users/jthoms1/orgs","repos_url":"https://api.github.com/users/jthoms1/repos","events_url":"https://api.github.com/users/jthoms1/events{/privacy}","received_events_url":"https://api.github.com/users/jthoms1/received_events","type":"User","site_admin":false}],"milestone":null,"comments":11,"created_at":"2016-11-21T07:14:33Z","updated_at":"2016-12-14T11:07:13Z","closed_at":null,"body":"## *FIXED WITH @ionic/app-scripts version 0.0.47*\r\n\r\nThis issue is fixed if you update `@ionic/app-scripts` devDependency in your `package.json`:\r\n\r\n```\r\n\"devDependencies\": {\r\n    \"@ionic/app-scripts\": \"^0.0.47\"\r\n}\r\n```\r\n\r\n#### Short description of the problem:\r\n\r\nWhen running for device / simulator with `--livereload` the Cordova plugins are not working because `cordova.js` is mocked.\r\n\r\n#### What behavior are you expecting?\r\n\r\nCordova plugins working without mocking `cordova.js`.\r\n\r\n**Steps to reproduce:**\r\n\r\n1. Create a simple project using `ionic start sampleapp --v2`.\r\n2. Add some Cordova plugin to your project using `ionic plugin add [your-cordova-plugin]`.\r\n3. Run the project for the iOS or Android device / simulator using `ionic run ios --emulator --livereload` or `ionic emulate ios --livereload`.\r\n\r\nOutput:\r\n\r\n```\r\n[09:30:33]  ionic-app-scripts 0.0.45 \r\n[09:30:33]  watch started ... \r\n[09:30:33]  build dev started ... \r\n[09:30:33]  clean started ... \r\n[09:30:33]  clean finished in 4 ms \r\n[09:30:33]  copy started ... \r\n[09:30:33]  transpile started ... \r\n[09:30:35]  transpile finished in 1.99 s \r\n[09:30:35]  webpack started ... \r\n[09:30:35]  copy finished in 2.10 s \r\n[09:30:40]  webpack finished in 5.21 s \r\n[09:30:40]  sass started ... \r\n[09:30:42]  sass finished in 1.07 s \r\n[09:30:42]  build dev finished in 8.29 s \r\n[09:30:42]  watch ready in 8.32 s \r\n[09:30:42]  dev server running: http://192.168.24.204:8000/\r\n```\r\n\r\n4. Test that your Cordova plugin funcionality is not working.\r\n\r\n**Post the output of `ionic info` below please**\r\n\r\n```\r\nCordova CLI: 6.4.0 \r\nIonic Framework Version: 2.0.0-rc.3\r\nIonic CLI Version: 2.1.12\r\nIonic App Lib Version: 2.1.7\r\nIonic App Scripts Version: 0.0.45\r\nios-deploy version: 1.9.0 \r\nios-sim version: 5.0.11 \r\nOS: macOS Sierra\r\nNode Version: v7.1.0\r\nXcode version: Xcode 8.1 Build version 8B62\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/driftyco/ionic-cli/issues/comments/267007249","html_url":"https://github.com/driftyco/ionic-cli/issues/1701#issuecomment-267007249","issue_url":"https://api.github.com/repos/driftyco/ionic-cli/issues/1701","id":267007249,"user":{"login":"pjorquera","id":2110224,"avatar_url":"https://avatars.githubusercontent.com/u/2110224?v=3","gravatar_id":"","url":"https://api.github.com/users/pjorquera","html_url":"https://github.com/pjorquera","followers_url":"https://api.github.com/users/pjorquera/followers","following_url":"https://api.github.com/users/pjorquera/following{/other_user}","gists_url":"https://api.github.com/users/pjorquera/gists{/gist_id}","starred_url":"https://api.github.com/users/pjorquera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjorquera/subscriptions","organizations_url":"https://api.github.com/users/pjorquera/orgs","repos_url":"https://api.github.com/users/pjorquera/repos","events_url":"https://api.github.com/users/pjorquera/events{/privacy}","received_events_url":"https://api.github.com/users/pjorquera/received_events","type":"User","site_admin":false},"created_at":"2016-12-14T11:07:12Z","updated_at":"2016-12-14T11:07:12Z","body":"@hoodaajay99 It's fixed if you update your `package.json` the following dev dependency:\r\n\r\n```\r\n\"devDependencies\": {\r\n    \"@ionic/app-scripts\": \"^0.0.47\"\r\n}\r\n```"}}
{"actor":{"display_login":"pjorquera"}}