{"action":"closed","number":494,"pull_request":{"url":"https://api.github.com/repos/segmentio/analytics-ios/pulls/494","id":53355429,"html_url":"https://github.com/segmentio/analytics-ios/pull/494","diff_url":"https://github.com/segmentio/analytics-ios/pull/494.diff","patch_url":"https://github.com/segmentio/analytics-ios/pull/494.patch","issue_url":"https://api.github.com/repos/segmentio/analytics-ios/issues/494","number":494,"state":"closed","locked":false,"title":"Make app lifecycle events synchronous.","user":{"login":"f2prateek","id":843979,"avatar_url":"https://avatars.githubusercontent.com/u/843979?v=3","gravatar_id":"","url":"https://api.github.com/users/f2prateek","html_url":"https://github.com/f2prateek","followers_url":"https://api.github.com/users/f2prateek/followers","following_url":"https://api.github.com/users/f2prateek/following{/other_user}","gists_url":"https://api.github.com/users/f2prateek/gists{/gist_id}","starred_url":"https://api.github.com/users/f2prateek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/f2prateek/subscriptions","organizations_url":"https://api.github.com/users/f2prateek/orgs","repos_url":"https://api.github.com/users/f2prateek/repos","events_url":"https://api.github.com/users/f2prateek/events{/privacy}","received_events_url":"https://api.github.com/users/f2prateek/received_events","type":"User","site_admin":false},"body":"Tracking events (i.e. for Segment spec) and flush/reset are still\r\nasynchronously delivered to integrations.\r\n\r\nImplementation:\r\nWe use a `initialized` property to indicate when integrations are ready\r\nto receive events. This flag is set to `TRUE` once the integration is\r\ninitialized and we've flushed the message queue.\r\n\r\nOnce `initialized` is true, any events that have opted for synchronous\r\ndelivery, will forwarded instantly to integrations.","created_at":"2015-12-11T05:34:52Z","updated_at":"2015-12-11T05:34:59Z","closed_at":"2015-12-11T05:34:59Z","merged_at":"2015-12-11T05:34:59Z","merge_commit_sha":"a1528e894676d9501674f5b843d7eb598334e5fd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/segmentio/analytics-ios/pulls/494/commits","review_comments_url":"https://api.github.com/repos/segmentio/analytics-ios/pulls/494/comments","review_comment_url":"https://api.github.com/repos/segmentio/analytics-ios/pulls/comments{/number}","comments_url":"https://api.github.com/repos/segmentio/analytics-ios/issues/494/comments","statuses_url":"https://api.github.com/repos/segmentio/analytics-ios/statuses/95bca23f1d36ecdd98f905c0a8d2096f45dcbf69","head":{"label":"segmentio:sync-calls","ref":"sync-calls","sha":"95bca23f1d36ecdd98f905c0a8d2096f45dcbf69","user":{"login":"segmentio","id":819518,"avatar_url":"https://avatars.githubusercontent.com/u/819518?v=3","gravatar_id":"","url":"https://api.github.com/users/segmentio","html_url":"https://github.com/segmentio","followers_url":"https://api.github.com/users/segmentio/followers","following_url":"https://api.github.com/users/segmentio/following{/other_user}","gists_url":"https://api.github.com/users/segmentio/gists{/gist_id}","starred_url":"https://api.github.com/users/segmentio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segmentio/subscriptions","organizations_url":"https://api.github.com/users/segmentio/orgs","repos_url":"https://api.github.com/users/segmentio/repos","events_url":"https://api.github.com/users/segmentio/events{/privacy}","received_events_url":"https://api.github.com/users/segmentio/received_events","type":"Organization","site_admin":false},"repo":{"id":8664152,"name":"analytics-ios","full_name":"segmentio/analytics-ios","owner":{"login":"segmentio","id":819518,"avatar_url":"https://avatars.githubusercontent.com/u/819518?v=3","gravatar_id":"","url":"https://api.github.com/users/segmentio","html_url":"https://github.com/segmentio","followers_url":"https://api.github.com/users/segmentio/followers","following_url":"https://api.github.com/users/segmentio/following{/other_user}","gists_url":"https://api.github.com/users/segmentio/gists{/gist_id}","starred_url":"https://api.github.com/users/segmentio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segmentio/subscriptions","organizations_url":"https://api.github.com/users/segmentio/orgs","repos_url":"https://api.github.com/users/segmentio/repos","events_url":"https://api.github.com/users/segmentio/events{/privacy}","received_events_url":"https://api.github.com/users/segmentio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/segmentio/analytics-ios","description":"The hassle-free way to integrate analytics into any iOS application. ","fork":false,"url":"https://api.github.com/repos/segmentio/analytics-ios","forks_url":"https://api.github.com/repos/segmentio/analytics-ios/forks","keys_url":"https://api.github.com/repos/segmentio/analytics-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/segmentio/analytics-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/segmentio/analytics-ios/teams","hooks_url":"https://api.github.com/repos/segmentio/analytics-ios/hooks","issue_events_url":"https://api.github.com/repos/segmentio/analytics-ios/issues/events{/number}","events_url":"https://api.github.com/repos/segmentio/analytics-ios/events","assignees_url":"https://api.github.com/repos/segmentio/analytics-ios/assignees{/user}","branches_url":"https://api.github.com/repos/segmentio/analytics-ios/branches{/branch}","tags_url":"https://api.github.com/repos/segmentio/analytics-ios/tags","blobs_url":"https://api.github.com/repos/segmentio/analytics-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/segmentio/analytics-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/segmentio/analytics-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/segmentio/analytics-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/segmentio/analytics-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/segmentio/analytics-ios/languages","stargazers_url":"https://api.github.com/repos/segmentio/analytics-ios/stargazers","contributors_url":"https://api.github.com/repos/segmentio/analytics-ios/contributors","subscribers_url":"https://api.github.com/repos/segmentio/analytics-ios/subscribers","subscription_url":"https://api.github.com/repos/segmentio/analytics-ios/subscription","commits_url":"https://api.github.com/repos/segmentio/analytics-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/segmentio/analytics-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/segmentio/analytics-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/segmentio/analytics-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/segmentio/analytics-ios/contents/{+path}","compare_url":"https://api.github.com/repos/segmentio/analytics-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/segmentio/analytics-ios/merges","archive_url":"https://api.github.com/repos/segmentio/analytics-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/segmentio/analytics-ios/downloads","issues_url":"https://api.github.com/repos/segmentio/analytics-ios/issues{/number}","pulls_url":"https://api.github.com/repos/segmentio/analytics-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/segmentio/analytics-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/segmentio/analytics-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/segmentio/analytics-ios/labels{/name}","releases_url":"https://api.github.com/repos/segmentio/analytics-ios/releases{/id}","created_at":"2013-03-09T02:46:59Z","updated_at":"2015-12-02T18:03:58Z","pushed_at":"2015-12-11T05:34:59Z","git_url":"git://github.com/segmentio/analytics-ios.git","ssh_url":"git@github.com:segmentio/analytics-ios.git","clone_url":"https://github.com/segmentio/analytics-ios.git","svn_url":"https://github.com/segmentio/analytics-ios","homepage":"https://segment.com/libraries/ios","size":187368,"stargazers_count":143,"watchers_count":143,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":110,"mirror_url":null,"open_issues_count":23,"forks":110,"open_issues":23,"watchers":143,"default_branch":"master"}},"base":{"label":"segmentio:master","ref":"master","sha":"c528c04eebd114a0ced177c022f1c69c580cb9f1","user":{"login":"segmentio","id":819518,"avatar_url":"https://avatars.githubusercontent.com/u/819518?v=3","gravatar_id":"","url":"https://api.github.com/users/segmentio","html_url":"https://github.com/segmentio","followers_url":"https://api.github.com/users/segmentio/followers","following_url":"https://api.github.com/users/segmentio/following{/other_user}","gists_url":"https://api.github.com/users/segmentio/gists{/gist_id}","starred_url":"https://api.github.com/users/segmentio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segmentio/subscriptions","organizations_url":"https://api.github.com/users/segmentio/orgs","repos_url":"https://api.github.com/users/segmentio/repos","events_url":"https://api.github.com/users/segmentio/events{/privacy}","received_events_url":"https://api.github.com/users/segmentio/received_events","type":"Organization","site_admin":false},"repo":{"id":8664152,"name":"analytics-ios","full_name":"segmentio/analytics-ios","owner":{"login":"segmentio","id":819518,"avatar_url":"https://avatars.githubusercontent.com/u/819518?v=3","gravatar_id":"","url":"https://api.github.com/users/segmentio","html_url":"https://github.com/segmentio","followers_url":"https://api.github.com/users/segmentio/followers","following_url":"https://api.github.com/users/segmentio/following{/other_user}","gists_url":"https://api.github.com/users/segmentio/gists{/gist_id}","starred_url":"https://api.github.com/users/segmentio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segmentio/subscriptions","organizations_url":"https://api.github.com/users/segmentio/orgs","repos_url":"https://api.github.com/users/segmentio/repos","events_url":"https://api.github.com/users/segmentio/events{/privacy}","received_events_url":"https://api.github.com/users/segmentio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/segmentio/analytics-ios","description":"The hassle-free way to integrate analytics into any iOS application. ","fork":false,"url":"https://api.github.com/repos/segmentio/analytics-ios","forks_url":"https://api.github.com/repos/segmentio/analytics-ios/forks","keys_url":"https://api.github.com/repos/segmentio/analytics-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/segmentio/analytics-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/segmentio/analytics-ios/teams","hooks_url":"https://api.github.com/repos/segmentio/analytics-ios/hooks","issue_events_url":"https://api.github.com/repos/segmentio/analytics-ios/issues/events{/number}","events_url":"https://api.github.com/repos/segmentio/analytics-ios/events","assignees_url":"https://api.github.com/repos/segmentio/analytics-ios/assignees{/user}","branches_url":"https://api.github.com/repos/segmentio/analytics-ios/branches{/branch}","tags_url":"https://api.github.com/repos/segmentio/analytics-ios/tags","blobs_url":"https://api.github.com/repos/segmentio/analytics-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/segmentio/analytics-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/segmentio/analytics-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/segmentio/analytics-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/segmentio/analytics-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/segmentio/analytics-ios/languages","stargazers_url":"https://api.github.com/repos/segmentio/analytics-ios/stargazers","contributors_url":"https://api.github.com/repos/segmentio/analytics-ios/contributors","subscribers_url":"https://api.github.com/repos/segmentio/analytics-ios/subscribers","subscription_url":"https://api.github.com/repos/segmentio/analytics-ios/subscription","commits_url":"https://api.github.com/repos/segmentio/analytics-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/segmentio/analytics-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/segmentio/analytics-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/segmentio/analytics-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/segmentio/analytics-ios/contents/{+path}","compare_url":"https://api.github.com/repos/segmentio/analytics-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/segmentio/analytics-ios/merges","archive_url":"https://api.github.com/repos/segmentio/analytics-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/segmentio/analytics-ios/downloads","issues_url":"https://api.github.com/repos/segmentio/analytics-ios/issues{/number}","pulls_url":"https://api.github.com/repos/segmentio/analytics-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/segmentio/analytics-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/segmentio/analytics-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/segmentio/analytics-ios/labels{/name}","releases_url":"https://api.github.com/repos/segmentio/analytics-ios/releases{/id}","created_at":"2013-03-09T02:46:59Z","updated_at":"2015-12-02T18:03:58Z","pushed_at":"2015-12-11T05:34:59Z","git_url":"git://github.com/segmentio/analytics-ios.git","ssh_url":"git@github.com:segmentio/analytics-ios.git","clone_url":"https://github.com/segmentio/analytics-ios.git","svn_url":"https://github.com/segmentio/analytics-ios","homepage":"https://segment.com/libraries/ios","size":187368,"stargazers_count":143,"watchers_count":143,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":110,"mirror_url":null,"open_issues_count":23,"forks":110,"open_issues":23,"watchers":143,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/segmentio/analytics-ios/pulls/494"},"html":{"href":"https://github.com/segmentio/analytics-ios/pull/494"},"issue":{"href":"https://api.github.com/repos/segmentio/analytics-ios/issues/494"},"comments":{"href":"https://api.github.com/repos/segmentio/analytics-ios/issues/494/comments"},"review_comments":{"href":"https://api.github.com/repos/segmentio/analytics-ios/pulls/494/comments"},"review_comment":{"href":"https://api.github.com/repos/segmentio/analytics-ios/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/segmentio/analytics-ios/pulls/494/commits"},"statuses":{"href":"https://api.github.com/repos/segmentio/analytics-ios/statuses/95bca23f1d36ecdd98f905c0a8d2096f45dcbf69"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"f2prateek","id":843979,"avatar_url":"https://avatars.githubusercontent.com/u/843979?v=3","gravatar_id":"","url":"https://api.github.com/users/f2prateek","html_url":"https://github.com/f2prateek","followers_url":"https://api.github.com/users/f2prateek/followers","following_url":"https://api.github.com/users/f2prateek/following{/other_user}","gists_url":"https://api.github.com/users/f2prateek/gists{/gist_id}","starred_url":"https://api.github.com/users/f2prateek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/f2prateek/subscriptions","organizations_url":"https://api.github.com/users/f2prateek/orgs","repos_url":"https://api.github.com/users/f2prateek/repos","events_url":"https://api.github.com/users/f2prateek/events{/privacy}","received_events_url":"https://api.github.com/users/f2prateek/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":36,"deletions":25,"changed_files":1}}