{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/4393","repository_url":"https://api.github.com/repos/mapbox/mapbox-gl-native","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/4393/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/4393/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/4393/events","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/4393","id":141999656,"number":4393,"title":"[android] onMapReady not called in offline mode (for non mapbox:// styles)","user":{"login":"erikandre","id":4519148,"avatar_url":"https://avatars.githubusercontent.com/u/4519148?v=3","gravatar_id":"","url":"https://api.github.com/users/erikandre","html_url":"https://github.com/erikandre","followers_url":"https://api.github.com/users/erikandre/followers","following_url":"https://api.github.com/users/erikandre/following{/other_user}","gists_url":"https://api.github.com/users/erikandre/gists{/gist_id}","starred_url":"https://api.github.com/users/erikandre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikandre/subscriptions","organizations_url":"https://api.github.com/users/erikandre/orgs","repos_url":"https://api.github.com/users/erikandre/repos","events_url":"https://api.github.com/users/erikandre/events{/privacy}","received_events_url":"https://api.github.com/users/erikandre/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/Android","name":"Android","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-18T23:16:32Z","updated_at":"2016-03-20T13:51:52Z","closed_at":null,"body":"**Build**\r\n\r\nLatest 4.0.0 SNAPSHOT build (as of March 18th)\r\n\r\n**Steps to reproduce**\r\n\r\n(the attached log covers step 3-4) [log.txt](https://github.com/mapbox/mapbox-gl-native/files/180522/log.txt)\r\n\r\n1. Load map with style from http://*.json address\r\n2. Kill app\r\n3. Enable airplane mode\r\n4. Reopen app\r\n\r\n**Expected result**\r\n\r\nMap is displayed based on cached and offline data. onMapReady() callback method is invoked.\r\n\r\n**Actual result**\r\n\r\nNo map is displayed, onMapReady() callback method is not invoked until network becomes available.\r\n\r\n**Other info**\r\n\r\nWhen using one of the predefined mapbox://... styles I get the expected result (being able to show something even with no network connection and callback being invoked)."},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/comments/198932370","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/4393#issuecomment-198932370","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/4393","id":198932370,"user":{"login":"tobrun","id":2151639,"avatar_url":"https://avatars.githubusercontent.com/u/2151639?v=3","gravatar_id":"","url":"https://api.github.com/users/tobrun","html_url":"https://github.com/tobrun","followers_url":"https://api.github.com/users/tobrun/followers","following_url":"https://api.github.com/users/tobrun/following{/other_user}","gists_url":"https://api.github.com/users/tobrun/gists{/gist_id}","starred_url":"https://api.github.com/users/tobrun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobrun/subscriptions","organizations_url":"https://api.github.com/users/tobrun/orgs","repos_url":"https://api.github.com/users/tobrun/repos","events_url":"https://api.github.com/users/tobrun/events{/privacy}","received_events_url":"https://api.github.com/users/tobrun/received_events","type":"User","site_admin":false},"created_at":"2016-03-20T13:51:52Z","updated_at":"2016-03-20T13:51:52Z","body":"@jfirebaugh is waiting for `view.notifyMapChange(MapChangeDidFinishLoadingMap);` event not correct when taking in account caching and offline? "}}