{"action":"created","issue":{"url":"https://api.github.com/repos/nraboy/ng-cordova-oauth/issues/193","labels_url":"https://api.github.com/repos/nraboy/ng-cordova-oauth/issues/193/labels{/name}","comments_url":"https://api.github.com/repos/nraboy/ng-cordova-oauth/issues/193/comments","events_url":"https://api.github.com/repos/nraboy/ng-cordova-oauth/issues/193/events","html_url":"https://github.com/nraboy/ng-cordova-oauth/issues/193","id":128199698,"number":193,"title":"InAppBrowser 1.2.0+ Breaks Library","user":{"login":"nraboy","id":983958,"avatar_url":"https://avatars.githubusercontent.com/u/983958?v=3","gravatar_id":"","url":"https://api.github.com/users/nraboy","html_url":"https://github.com/nraboy","followers_url":"https://api.github.com/users/nraboy/followers","following_url":"https://api.github.com/users/nraboy/following{/other_user}","gists_url":"https://api.github.com/users/nraboy/gists{/gist_id}","starred_url":"https://api.github.com/users/nraboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nraboy/subscriptions","organizations_url":"https://api.github.com/users/nraboy/orgs","repos_url":"https://api.github.com/users/nraboy/repos","events_url":"https://api.github.com/users/nraboy/events{/privacy}","received_events_url":"https://api.github.com/users/nraboy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nraboy/ng-cordova-oauth/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-01-22T17:04:55Z","updated_at":"2016-01-24T04:48:35Z","closed_at":null,"body":"Figured this would be the best thing to do since I'm getting messages on every platform that I use.\r\n\r\nApache Cordova released version 1.2.0 of their InAppBrowser plugin.  In this version, dead or non-existent pages will trigger the `loaderror` event listener rather than still piping into the `loadstart` event.  The ng-cordova-oauth library currently expects that all page load events end up in the `loadstart` listener regardless on if they exist or not.\r\n\r\nWhy does ng-cordova-oauth currently fail?\r\n\r\nng-cordova-oauth by default will use http://localhost/callback as the redirection and `loadstart` listener.  Because this URL will never exist, it will now never make it into the `loadstart` event, but the `loaderror` instead.\r\n\r\nThe fix?\r\n\r\nThere are three things you can do:\r\n\r\n1. Downgrade to the Apache Cordova InAppBrowser version 1.1\r\n2. Host your own callback URL and override the optional `redirect_uri`\r\n3. Wait patiently for me and @matheusrocha89 to get a permanent fix in place\r\n\r\nTo consolidate all the messages, it would be appreciated if everyone is directed to this GitHub issue.  It will contain updates on the issue and reflect resolution when ready.\r\n\r\ncc @mlynch @pbernasconi @mhartington"},"comment":{"url":"https://api.github.com/repos/nraboy/ng-cordova-oauth/issues/comments/174253354","html_url":"https://github.com/nraboy/ng-cordova-oauth/issues/193#issuecomment-174253354","issue_url":"https://api.github.com/repos/nraboy/ng-cordova-oauth/issues/193","id":174253354,"user":{"login":"nraboy","id":983958,"avatar_url":"https://avatars.githubusercontent.com/u/983958?v=3","gravatar_id":"","url":"https://api.github.com/users/nraboy","html_url":"https://github.com/nraboy","followers_url":"https://api.github.com/users/nraboy/followers","following_url":"https://api.github.com/users/nraboy/following{/other_user}","gists_url":"https://api.github.com/users/nraboy/gists{/gist_id}","starred_url":"https://api.github.com/users/nraboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nraboy/subscriptions","organizations_url":"https://api.github.com/users/nraboy/orgs","repos_url":"https://api.github.com/users/nraboy/repos","events_url":"https://api.github.com/users/nraboy/events{/privacy}","received_events_url":"https://api.github.com/users/nraboy/received_events","type":"User","site_admin":false},"created_at":"2016-01-24T04:48:34Z","updated_at":"2016-01-24T04:48:34Z","body":"So you get different problems with the new InAppBrowser master?  "}}