{"action":"opened","issue":{"url":"https://api.github.com/repos/mcharmas/Android-ReactiveLocation/issues/133","repository_url":"https://api.github.com/repos/mcharmas/Android-ReactiveLocation","labels_url":"https://api.github.com/repos/mcharmas/Android-ReactiveLocation/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/mcharmas/Android-ReactiveLocation/issues/133/comments","events_url":"https://api.github.com/repos/mcharmas/Android-ReactiveLocation/issues/133/events","html_url":"https://github.com/mcharmas/Android-ReactiveLocation/issues/133","id":179600534,"number":133,"title":"NetworkOnMainThread on retrofit all that follows getLastKnowLocation","user":{"login":"KennyGoers","id":429628,"avatar_url":"https://avatars.githubusercontent.com/u/429628?v=3","gravatar_id":"","url":"https://api.github.com/users/KennyGoers","html_url":"https://github.com/KennyGoers","followers_url":"https://api.github.com/users/KennyGoers/followers","following_url":"https://api.github.com/users/KennyGoers/following{/other_user}","gists_url":"https://api.github.com/users/KennyGoers/gists{/gist_id}","starred_url":"https://api.github.com/users/KennyGoers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KennyGoers/subscriptions","organizations_url":"https://api.github.com/users/KennyGoers/orgs","repos_url":"https://api.github.com/users/KennyGoers/repos","events_url":"https://api.github.com/users/KennyGoers/events{/privacy}","received_events_url":"https://api.github.com/users/KennyGoers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-27T20:13:09Z","updated_at":"2016-09-27T20:13:09Z","closed_at":null,"body":"As a simplified example from an Activity\r\n        new ReactiveLocationProvider(this).getLastKnownLocation()\r\n            .singleOrDefault(null)\r\n            .flatMap(new Func1<Location, Observable<List<OfferLocation>>>() {\r\n                @Override\r\n                public Observable<List<OfferLocation>> call(Location location) {\r\n                        return ARetrofitAPI.getOfferLocations(offer.getId(), latLng);\r\n                }\r\n            })\r\n            .subscribeOn(Schedulers.io())\r\n            .observeOn(AndroidSchedulers.mainThread())\r\n            .subscribe();\r\n\r\ngetLastKnownLocation() works fine and then the RetroFit wrapper call, that works EVERYWHERE else, throws NetworkOnMainThreadException, I've tried both 0.9 and 0.10, when either are by themselves in separate subscriptions all is fine.\r\n"}}
{"actor":{"display_login":"KennyGoers"}}