{"action":"created","issue":{"url":"https://api.github.com/repos/playgameservices/play-games-plugin-for-unity/issues/962","repository_url":"https://api.github.com/repos/playgameservices/play-games-plugin-for-unity","labels_url":"https://api.github.com/repos/playgameservices/play-games-plugin-for-unity/issues/962/labels{/name}","comments_url":"https://api.github.com/repos/playgameservices/play-games-plugin-for-unity/issues/962/comments","events_url":"https://api.github.com/repos/playgameservices/play-games-plugin-for-unity/issues/962/events","html_url":"https://github.com/playgameservices/play-games-plugin-for-unity/issues/962","id":132317818,"number":962,"title":"GetAccessToken() remains null for 2-3s after successful Authenticate(); need callback?","user":{"login":"mwk888","id":5809172,"avatar_url":"https://avatars.githubusercontent.com/u/5809172?v=3","gravatar_id":"","url":"https://api.github.com/users/mwk888","html_url":"https://github.com/mwk888","followers_url":"https://api.github.com/users/mwk888/followers","following_url":"https://api.github.com/users/mwk888/following{/other_user}","gists_url":"https://api.github.com/users/mwk888/gists{/gist_id}","starred_url":"https://api.github.com/users/mwk888/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwk888/subscriptions","organizations_url":"https://api.github.com/users/mwk888/orgs","repos_url":"https://api.github.com/users/mwk888/repos","events_url":"https://api.github.com/users/mwk888/events{/privacy}","received_events_url":"https://api.github.com/users/mwk888/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2016-02-09T02:55:49Z","updated_at":"2016-02-12T22:16:20Z","closed_at":null,"body":"Hi, we've been using the plugin successfully for months, but something changed in the last few weeks so that when we call GetAccessToken() immediately after a successful Authenticate() it returns null. But if we call GetAccessToken() twice with about 3s delay the second call returns the token, so clearly the first call is starting an async process to get the token.\r\n\r\n[I don't know why this used to work for us -- did underlying android gplay lib change?]\r\n\r\nI've implemented a horrendous hack fix for now where delay etc, but it would be much cleaner if this method had an async callback option like GetIdToken().\r\n\r\nbtw I saw your post on another issue recommending GetServerAuthCode() but we are using GetUserEmail() so I think we need to keep using the G+ scopes. Unless that is available through the new GPlay auth flow somehow?\r\n\r\n**UPDATE**: Thought about it further and maybe we could switch to using GetServerAuthCode(), the expedited sign-in would be nice. But I tried to test it and got status AuthApiAccessForbidden, does this need some manifest setup which is not done by the Android setup dialog? (We do provide a Web App Client ID)\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/playgameservices/play-games-plugin-for-unity/issues/comments/183508891","html_url":"https://github.com/playgameservices/play-games-plugin-for-unity/issues/962#issuecomment-183508891","issue_url":"https://api.github.com/repos/playgameservices/play-games-plugin-for-unity/issues/962","id":183508891,"user":{"login":"nmcgill","id":1760899,"avatar_url":"https://avatars.githubusercontent.com/u/1760899?v=3","gravatar_id":"","url":"https://api.github.com/users/nmcgill","html_url":"https://github.com/nmcgill","followers_url":"https://api.github.com/users/nmcgill/followers","following_url":"https://api.github.com/users/nmcgill/following{/other_user}","gists_url":"https://api.github.com/users/nmcgill/gists{/gist_id}","starred_url":"https://api.github.com/users/nmcgill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmcgill/subscriptions","organizations_url":"https://api.github.com/users/nmcgill/orgs","repos_url":"https://api.github.com/users/nmcgill/repos","events_url":"https://api.github.com/users/nmcgill/events{/privacy}","received_events_url":"https://api.github.com/users/nmcgill/received_events","type":"User","site_admin":false},"created_at":"2016-02-12T22:16:20Z","updated_at":"2016-02-12T22:16:20Z","body":"@daguirre6 Working for me now as well, thanks for sharing!"}}