{"action":"created","issue":{"url":"https://api.github.com/repos/driftyco/ionic/issues/3773","labels_url":"https://api.github.com/repos/driftyco/ionic/issues/3773/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic/issues/3773/comments","events_url":"https://api.github.com/repos/driftyco/ionic/issues/3773/events","html_url":"https://github.com/driftyco/ionic/issues/3773","id":78076782,"number":3773,"title":"http request not processing while emulating or running on device","user":{"login":"brieuc28","id":7518508,"avatar_url":"https://avatars.githubusercontent.com/u/7518508?v=3","gravatar_id":"","url":"https://api.github.com/users/brieuc28","html_url":"https://github.com/brieuc28","followers_url":"https://api.github.com/users/brieuc28/followers","following_url":"https://api.github.com/users/brieuc28/following{/other_user}","gists_url":"https://api.github.com/users/brieuc28/gists{/gist_id}","starred_url":"https://api.github.com/users/brieuc28/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brieuc28/subscriptions","organizations_url":"https://api.github.com/users/brieuc28/orgs","repos_url":"https://api.github.com/users/brieuc28/repos","events_url":"https://api.github.com/users/brieuc28/events{/privacy}","received_events_url":"https://api.github.com/users/brieuc28/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-19T12:57:36Z","updated_at":"2015-05-19T13:01:53Z","closed_at":null,"body":"This is a post i wrote on stack overflow (http://stackoverflow.com/questions/30326148/cordova-ionic-http-request-not-processing-while-emulating-or-running-on-dev).\r\n\r\nIt might be an issue since it is happening even with a project created from scratch.\r\n\r\n\"Everything were going well last week and while i was running the application on device or emulating with Genymotion, all the calls to the api were working (Either returning the data or failing but at least showing something).\r\n\r\nI was using \r\n\r\n> ionic run android\r\n\r\nI add to update the global cordova ionic:\r\n\r\n> npm install -g cordova ionic\r\n\r\nSince that all the $http requests are not even processing. I can't get any responses while the Api is still working fine and the CORS are perfectly set.\r\n\r\nThe only way i found is to use the option --livereload or -l :\r\n\r\n> ionic run -l android\r\n\r\nI want to avoid using the livereload at any cost. \r\n\r\nI started to create a project from scratch using ionic 1.0.0 and cordova lib 4.3.0.\r\n\r\n    angular.module('starter.controllers', [])\r\n\r\n    .controller('AppCtrl', function($scope, $ionicModal, $timeout, $http) {\r\n \r\n      alert('calling api');\r\n      // Create an anonymous access_token\r\n      $http\r\n          .get(domain+'/oauth/v2/token?client_id='+public_id+'&client_secret='+secret+'&grant_type=client_credentials')\r\n          .then(function(response){\r\n              alert(response.data.access_token);\r\n          });\r\n    })\r\n    \r\nSo while using :\r\n\r\n> ionic serve\r\n\r\nIt is correctly alerting 'calling api' then the response (An OAuth access token for that example).\r\n\r\nBut while using :\r\n\r\n> ionic run android\r\n\r\nIt is only alerting 'calling api' but doesn't seem to process the http request.\r\n\r\nDid anyone experience something similar? I'm getting big headaches on that.\"\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/driftyco/ionic/issues/comments/103477023","html_url":"https://github.com/driftyco/ionic/issues/3773#issuecomment-103477023","issue_url":"https://api.github.com/repos/driftyco/ionic/issues/3773","id":103477023,"user":{"login":"brieuc28","id":7518508,"avatar_url":"https://avatars.githubusercontent.com/u/7518508?v=3","gravatar_id":"","url":"https://api.github.com/users/brieuc28","html_url":"https://github.com/brieuc28","followers_url":"https://api.github.com/users/brieuc28/followers","following_url":"https://api.github.com/users/brieuc28/following{/other_user}","gists_url":"https://api.github.com/users/brieuc28/gists{/gist_id}","starred_url":"https://api.github.com/users/brieuc28/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brieuc28/subscriptions","organizations_url":"https://api.github.com/users/brieuc28/orgs","repos_url":"https://api.github.com/users/brieuc28/repos","events_url":"https://api.github.com/users/brieuc28/events{/privacy}","received_events_url":"https://api.github.com/users/brieuc28/received_events","type":"User","site_admin":false},"created_at":"2015-05-19T13:01:53Z","updated_at":"2015-05-19T13:01:53Z","body":"Sure thank you!"}}