{"action":"closed","issue":{"url":"https://api.github.com/repos/amplitude/unity-plugin/issues/3","repository_url":"https://api.github.com/repos/amplitude/unity-plugin","labels_url":"https://api.github.com/repos/amplitude/unity-plugin/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/amplitude/unity-plugin/issues/3/comments","events_url":"https://api.github.com/repos/amplitude/unity-plugin/issues/3/events","html_url":"https://github.com/amplitude/unity-plugin/issues/3","id":149335367,"number":3,"title":"Submitting event just before leaving app","user":{"login":"mgrider","id":604867,"avatar_url":"https://avatars.githubusercontent.com/u/604867?v=3","gravatar_id":"","url":"https://api.github.com/users/mgrider","html_url":"https://github.com/mgrider","followers_url":"https://api.github.com/users/mgrider/followers","following_url":"https://api.github.com/users/mgrider/following{/other_user}","gists_url":"https://api.github.com/users/mgrider/gists{/gist_id}","starred_url":"https://api.github.com/users/mgrider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgrider/subscriptions","organizations_url":"https://api.github.com/users/mgrider/orgs","repos_url":"https://api.github.com/users/mgrider/repos","events_url":"https://api.github.com/users/mgrider/events{/privacy}","received_events_url":"https://api.github.com/users/mgrider/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-04-19T03:07:35Z","updated_at":"2016-08-09T22:46:38Z","closed_at":"2016-08-09T22:46:37Z","body":"I am working on an application published to both iOS and Android. We are tracking \"exit\" events, and the code (roughly) looks like this:\r\n\r\n```\r\n\t\tDictionary<string, object> eventOptions = new Dictionary<string, object>() {\r\n\t\t\t{\"screenName\" , pageName },\r\n\t\t\t{\"tapElement\" , tappedElement }\r\n\t\t};\r\n\t\tAmplitude.Instance.logEvent(EVENT_TYPE_TAPPED, eventOptions);\r\n\t\tApplication.OpenURL(URL);\r\n```\r\n\r\nThe strange thing is that the events are reported correctly on Android, but not on iOS.\r\n\r\nMy first thought is that it's probably a timing and/or caching `logEvent`s issue, (where essentially the app stops running before the events hit the network, but in Android, presumably the app is still running in the background). I looked for a `flush` or equivalent method, but didn't see one. Does that sound like the likely culprit to whoever is reading this?"}}
{"actor":{"display_login":"djih"}}