payload: {"action":"opened","number":1222,"pull_request":{"url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/pulls/1222","id":305762185,"node_id":"MDExOlB1bGxSZXF1ZXN0MzA1NzYyMTg1","html_url":"https://github.com/microsoft/appcenter-sdk-android/pull/1222","diff_url":"https://github.com/microsoft/appcenter-sdk-android/pull/1222.diff","patch_url":"https://github.com/microsoft/appcenter-sdk-android/pull/1222.patch","issue_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/issues/1222","number":1222,"state":"open","locked":false,"title":"Fix delayed start push","user":{"login":"guperrot","id":623672,"node_id":"MDQ6VXNlcjYyMzY3Mg==","avatar_url":"https://avatars3.githubusercontent.com/u/623672?v=4","gravatar_id":"","url":"https://api.github.com/users/guperrot","html_url":"https://github.com/guperrot","followers_url":"https://api.github.com/users/guperrot/followers","following_url":"https://api.github.com/users/guperrot/following{/other_user}","gists_url":"https://api.github.com/users/guperrot/gists{/gist_id}","starred_url":"https://api.github.com/users/guperrot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guperrot/subscriptions","organizations_url":"https://api.github.com/users/guperrot/orgs","repos_url":"https://api.github.com/users/guperrot/repos","events_url":"https://api.github.com/users/guperrot/events{/privacy}","received_events_url":"https://api.github.com/users/guperrot/received_events","type":"User","site_admin":false},"body":"<!-- \r\nThank you for submitting a pull request! Please add some info (if applicable) to give us some context on the PR.\r\n\r\nWe will review the PR as soon as possible, leave feedback, add a tag, etc. and let you know what's going on.\r\n\r\nCheers!\r\n\r\nThe App Center team -->\r\n\r\nPlease have a look at our [guidelines for contributions](https://github.com/microsoft/appcenter-sdk-android/blob/develop/CONTRIBUTING.md) and consider the following before you submit the PR:\r\n\r\n* [ ] Has `CHANGELOG.md` been updated?\r\n* [ ] Are tests passing locally?\r\n* [ ] Are the files formatted correctly?\r\n* [ ] Did you add unit tests?\r\n* [ ] Did you test your change with either the sample apps that are included in the repository or with a blank app that uses your change?\r\n* [ ] Did you check UI tests on the sample app? They are not executed on CI.\r\n\r\n## Description\r\n\r\nNoticed this while testing something on React Native. Firebase now initialize on its own and scan end the token update before AppCenter is initialized (which is especially visible with delayed push scenario). And we have an optimization not to send the same token twice but it was used before checking for started/enabled...","created_at":"2019-08-08T21:49:49Z","updated_at":"2019-08-08T21:49:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/pulls/1222/commits","review_comments_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/pulls/1222/comments","review_comment_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/issues/1222/comments","statuses_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/statuses/d9b39934cab23a442404d4b83742c3e0f82d0c69","head":{"label":"microsoft:fix/delayed-start-push","ref":"fix/delayed-start-push","sha":"d9b39934cab23a442404d4b83742c3e0f82d0c69","user":{"login":"microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/microsoft","html_url":"https://github.com/microsoft","followers_url":"https://api.github.com/users/microsoft/followers","following_url":"https://api.github.com/users/microsoft/following{/other_user}","gists_url":"https://api.github.com/users/microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/microsoft/subscriptions","organizations_url":"https://api.github.com/users/microsoft/orgs","repos_url":"https://api.github.com/users/microsoft/repos","events_url":"https://api.github.com/users/microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":60783603,"node_id":"MDEwOlJlcG9zaXRvcnk2MDc4MzYwMw==","name":"appcenter-sdk-android","full_name":"microsoft/appcenter-sdk-android","private":false,"owner":{"login":"microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/microsoft","html_url":"https://github.com/microsoft","followers_url":"https://api.github.com/users/microsoft/followers","following_url":"https://api.github.com/users/microsoft/following{/other_user}","gists_url":"https://api.github.com/users/microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/microsoft/subscriptions","organizations_url":"https://api.github.com/users/microsoft/orgs","repos_url":"https://api.github.com/users/microsoft/repos","events_url":"https://api.github.com/users/microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/microsoft/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/microsoft/appcenter-sdk-android","description":"Development repository for the App Center SDK for Android","fork":false,"url":"https://api.github.com/repos/microsoft/appcenter-sdk-android","forks_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/forks","keys_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/teams","hooks_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/hooks","issue_events_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/issues/events{/number}","events_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/events","assignees_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/assignees{/user}","branches_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/branches{/branch}","tags_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/tags","blobs_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/statuses/{sha}","languages_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/languages","stargazers_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/stargazers","contributors_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/contributors","subscribers_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/subscribers","subscription_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/subscription","commits_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/contents/{+path}","compare_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/merges","archive_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/downloads","issues_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/issues{/number}","pulls_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/pulls{/number}","milestones_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/milestones{/number}","notifications_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/labels{/name}","releases_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/releases{/id}","deployments_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/deployments","created_at":"2016-06-09T15:03:59Z","updated_at":"2019-08-08T08:58:05Z","pushed_at":"2019-08-08T21:48:20Z","git_url":"git://github.com/microsoft/appcenter-sdk-android.git","ssh_url":"git@github.com:microsoft/appcenter-sdk-android.git","clone_url":"https://github.com/microsoft/appcenter-sdk-android.git","svn_url":"https://github.com/microsoft/appcenter-sdk-android","homepage":"","size":14941,"stargazers_count":101,"watchers_count":101,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":76,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":9,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":76,"open_issues":9,"watchers":101,"default_branch":"develop"}},"base":{"label":"microsoft:develop","ref":"develop","sha":"a12439bf07fd5ae6a45d50489432e744f5f4b508","user":{"login":"microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/microsoft","html_url":"https://github.com/microsoft","followers_url":"https://api.github.com/users/microsoft/followers","following_url":"https://api.github.com/users/microsoft/following{/other_user}","gists_url":"https://api.github.com/users/microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/microsoft/subscriptions","organizations_url":"https://api.github.com/users/microsoft/orgs","repos_url":"https://api.github.com/users/microsoft/repos","events_url":"https://api.github.com/users/microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":60783603,"node_id":"MDEwOlJlcG9zaXRvcnk2MDc4MzYwMw==","name":"appcenter-sdk-android","full_name":"microsoft/appcenter-sdk-android","private":false,"owner":{"login":"microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/microsoft","html_url":"https://github.com/microsoft","followers_url":"https://api.github.com/users/microsoft/followers","following_url":"https://api.github.com/users/microsoft/following{/other_user}","gists_url":"https://api.github.com/users/microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/microsoft/subscriptions","organizations_url":"https://api.github.com/users/microsoft/orgs","repos_url":"https://api.github.com/users/microsoft/repos","events_url":"https://api.github.com/users/microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/microsoft/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/microsoft/appcenter-sdk-android","description":"Development repository for the App Center SDK for Android","fork":false,"url":"https://api.github.com/repos/microsoft/appcenter-sdk-android","forks_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/forks","keys_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/teams","hooks_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/hooks","issue_events_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/issues/events{/number}","events_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/events","assignees_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/assignees{/user}","branches_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/branches{/branch}","tags_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/tags","blobs_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/statuses/{sha}","languages_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/languages","stargazers_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/stargazers","contributors_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/contributors","subscribers_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/subscribers","subscription_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/subscription","commits_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/contents/{+path}","compare_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/merges","archive_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/downloads","issues_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/issues{/number}","pulls_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/pulls{/number}","milestones_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/milestones{/number}","notifications_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/labels{/name}","releases_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/releases{/id}","deployments_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/deployments","created_at":"2016-06-09T15:03:59Z","updated_at":"2019-08-08T08:58:05Z","pushed_at":"2019-08-08T21:48:20Z","git_url":"git://github.com/microsoft/appcenter-sdk-android.git","ssh_url":"git@github.com:microsoft/appcenter-sdk-android.git","clone_url":"https://github.com/microsoft/appcenter-sdk-android.git","svn_url":"https://github.com/microsoft/appcenter-sdk-android","homepage":"","size":14941,"stargazers_count":101,"watchers_count":101,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":76,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":9,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":76,"open_issues":9,"watchers":101,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/microsoft/appcenter-sdk-android/pulls/1222"},"html":{"href":"https://github.com/microsoft/appcenter-sdk-android/pull/1222"},"issue":{"href":"https://api.github.com/repos/microsoft/appcenter-sdk-android/issues/1222"},"comments":{"href":"https://api.github.com/repos/microsoft/appcenter-sdk-android/issues/1222/comments"},"review_comments":{"href":"https://api.github.com/repos/microsoft/appcenter-sdk-android/pulls/1222/comments"},"review_comment":{"href":"https://api.github.com/repos/microsoft/appcenter-sdk-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/microsoft/appcenter-sdk-android/pulls/1222/commits"},"statuses":{"href":"https://api.github.com/repos/microsoft/appcenter-sdk-android/statuses/d9b39934cab23a442404d4b83742c3e0f82d0c69"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":44,"deletions":5,"changed_files":3}}
other: {"actor":{"display_login":"guperrot"}}