{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/3584","repository_url":"https://api.github.com/repos/mapbox/mapbox-gl-native","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/3584/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/3584/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/3584/events","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/3584","id":126983065,"number":3584,"title":"[Android] Annotation do not open info when clicked","user":{"login":"bsudekum","id":1058624,"avatar_url":"https://avatars.githubusercontent.com/u/1058624?v=3","gravatar_id":"","url":"https://api.github.com/users/bsudekum","html_url":"https://github.com/bsudekum","followers_url":"https://api.github.com/users/bsudekum/followers","following_url":"https://api.github.com/users/bsudekum/following{/other_user}","gists_url":"https://api.github.com/users/bsudekum/gists{/gist_id}","starred_url":"https://api.github.com/users/bsudekum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsudekum/subscriptions","organizations_url":"https://api.github.com/users/bsudekum/orgs","repos_url":"https://api.github.com/users/bsudekum/repos","events_url":"https://api.github.com/users/bsudekum/events{/privacy}","received_events_url":"https://api.github.com/users/bsudekum/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":11,"created_at":"2016-01-16T00:00:16Z","updated_at":"2016-02-10T23:43:46Z","closed_at":null,"body":"I've been trying to [debug this issue](https://github.com/mapbox/react-native-mapbox-gl/issues/102) now in react-native land for a while. Symptoms:\r\n\r\n* Touching an annotation marker does not open the infowindow\r\n* However, I can log events  with `setOnMarkerClickListener`. The event fires but there is no infowindow\r\n* When rotating the map, if the annotation was clicked, the info window appears\r\n* When rotating back upright, the infowindow is displayed when clicked normally\r\n* (Also, the map becomes very distorted when rotated, this can be handled in another ticket) \r\n\r\nI'm not certain if this is a react native bug or a gl-native bug. Perhaps react is clobbering touch events on initial load? \r\n\r\n/cc @brentvatne @tobrun @zugaldia @bleege \r\n\r\n![](https://cldup.com/rQpDPUoUNw.gif)"},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/comments/182638106","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/3584#issuecomment-182638106","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/3584","id":182638106,"user":{"login":"bsudekum","id":1058624,"avatar_url":"https://avatars.githubusercontent.com/u/1058624?v=3","gravatar_id":"","url":"https://api.github.com/users/bsudekum","html_url":"https://github.com/bsudekum","followers_url":"https://api.github.com/users/bsudekum/followers","following_url":"https://api.github.com/users/bsudekum/following{/other_user}","gists_url":"https://api.github.com/users/bsudekum/gists{/gist_id}","starred_url":"https://api.github.com/users/bsudekum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsudekum/subscriptions","organizations_url":"https://api.github.com/users/bsudekum/orgs","repos_url":"https://api.github.com/users/bsudekum/repos","events_url":"https://api.github.com/users/bsudekum/events{/privacy}","received_events_url":"https://api.github.com/users/bsudekum/received_events","type":"User","site_admin":false},"created_at":"2016-02-10T23:43:46Z","updated_at":"2016-02-10T23:43:46Z","body":"Option 2 gives the following error:\r\n\r\n```\r\n02-11 07:42:51.013 6937-6937/com.testbed E/unknown:React: Exception in native call from JS\r\n02-11 07:42:51.013 6937-6937/com.testbed E/unknown:React: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.mapbox.mapboxsdk.views.MapView.onResume()' on a null object reference\r\n02-11 07:42:51.013 6937-6937/com.testbed E/unknown:React:     at com.mapbox.reactnativemapboxgl.ReactNativeMapboxGLModule$1.onHostResume(ReactNativeMapboxGLModule.java:37)\r\n02-11 07:42:51.013 6937-6937/com.testbed E/unknown:React:     at com.facebook.react.bridge.ReactContext.onResume(ReactContext.java:140)\r\n02-11 07:42:51.013 6937-6937/com.testbed E/unknown:React:     at com.facebook.react.ReactInstanceManagerImpl.moveReactContextToCurrentLifecycleState(ReactInstanceManagerImpl.java:761)\r\n02-11 07:42:51.013 6937-6937/com.testbed E/unknown:React:     at com.facebook.react.ReactInstanceManagerImpl.setupReactContext(ReactInstanceManagerImpl.java:599)\r\n02-11 07:42:51.013 6937-6937/com.testbed E/unknown:React:     at com.facebook.react.ReactInstanceManagerImpl.access$700(ReactInstanceManagerImpl.java:84)\r\n02-11 07:42:51.013 6937-6937/com.testbed E/unknown:React:     at com.facebook.react.ReactInstanceManagerImpl$ReactContextInitAsyncTask.onPostExecute(ReactInstanceManagerImpl.java:187)\r\n02-11 07:42:51.013 6937-6937/com.testbed E/unknown:React:     at com.facebook.react.ReactInstanceManagerImpl$ReactContextInitAsyncTask.onPostExecute(ReactInstanceManagerImpl.java:162)\r\n02-11 07:42:51.013 6937-6937/com.testbed E/unknown:React:     at android.os.AsyncTask.finish(AsyncTask.java:632)\r\n02-11 07:42:51.013 6937-6937/com.testbed E/unknown:React:     at android.os.AsyncTask.access$600(AsyncTask.java:177)\r\n02-11 07:42:51.013 6937-6937/com.testbed E/unknown:React:     at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645)\r\n02-11 07:42:51.013 6937-6937/com.testbed E/unknown:React:     at android.os.Handler.dispatchMessage(Handler.java:102)\r\n02-11 07:42:51.013 6937-6937/com.testbed E/unknown:React:     at android.os.Looper.loop(Looper.java:135)\r\n02-11 07:42:51.013 6937-6937/com.testbed E/unknown:React:     at android.app.ActivityThread.main(ActivityThread.java:5292)\r\n02-11 07:42:51.013 6937-6937/com.testbed E/unknown:React:     at java.lang.reflect.Method.invoke(Native Method)\r\n02-11 07:42:51.013 6937-6937/com.testbed E/unknown:React:     at java.lang.reflect.Method.invoke(Method.java:372)\r\n02-11 07:42:51.013 6937-6937/com.testbed E/unknown:React:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:908)\r\n02-11 07:42:51.013 6937-6937/com.testbed E/unknown:React:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:703)\r\n```"}}