{"action":"closed","issue":{"url":"https://api.github.com/repos/playgameservices/play-games-plugin-for-unity/issues/1878","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/1878/labels{/name}","comments_url":"https://api.github.com/repos/playgameservices/play-games-plugin-for-unity/issues/1878/comments","events_url":"https://api.github.com/repos/playgameservices/play-games-plugin-for-unity/issues/1878/events","html_url":"https://github.com/playgameservices/play-games-plugin-for-unity/issues/1878","id":250689910,"node_id":"MDU6SXNzdWUyNTA2ODk5MTA=","number":1878,"title":"Android back button leads the sign in loop when device has no google account","user":{"login":"TimberXiao","id":11477404,"node_id":"MDQ6VXNlcjExNDc3NDA0","avatar_url":"https://avatars2.githubusercontent.com/u/11477404?v=4","gravatar_id":"","url":"https://api.github.com/users/TimberXiao","html_url":"https://github.com/TimberXiao","followers_url":"https://api.github.com/users/TimberXiao/followers","following_url":"https://api.github.com/users/TimberXiao/following{/other_user}","gists_url":"https://api.github.com/users/TimberXiao/gists{/gist_id}","starred_url":"https://api.github.com/users/TimberXiao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimberXiao/subscriptions","organizations_url":"https://api.github.com/users/TimberXiao/orgs","repos_url":"https://api.github.com/users/TimberXiao/repos","events_url":"https://api.github.com/users/TimberXiao/events{/privacy}","received_events_url":"https://api.github.com/users/TimberXiao/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-08-16T16:41:38Z","updated_at":"2018-12-03T12:46:38Z","closed_at":"2018-12-03T12:46:37Z","author_association":"NONE","body":"I have the google account sign in flow in my Unity Android game when launch. The flow is like this:\r\n```\r\nPlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder()\r\n    .AddOauthScope(\"https://www.googleapis.com/auth/games_lite\")\r\n    .RequestServerAuthCode(false)\r\n    .RequestIdToken()\r\n    .Build();\r\nPlayGamesPlatform.InitializeInstance(config);\r\nPlayGamesPlatform.Activate();\r\nSocial.localUser.Authenticate((bool success) =>{\r\nif(success){\r\nDebug.Log(\"Google sign in success\");\r\nMY CODE 1\r\n}\r\nelse{\r\nDebug.Log(\"Google sign in fails\");\r\nMY CODE 2\r\n}\r\n```\r\nIf the device has a google account signed in and launch the game, it will show the toast \"Welcome XXX\" and print \"Google sign in success\", which is fine. However, if the device does not have google account signed in, when launch the game it will pop up the google play sign in UI prompt, and if the user tap back button it will instantly repeat the sign in prompt again, it will basically not get the Social.localUser.Authenticate fails feedback. It will loop sign in prompt until the user type in the account credentials and sign in, then get the success feedback. In my game I have different code in success and fail feedback, so I wish to get the fail feedback.\r\n\r\nAnyone have the same issue? Editor: Unity 5.6.1f, Google Play Games plugin: I tried 0.9.38a, 0.9.39a, 0.9.40, none of them work. GPGS: 11.0.4\r\n\r\nAddition: if I remove RequestServerAuthCode(false) and RequestIdToken() from config, it will work properly and receive the sign in fail feedback. But I will not get the string code = PlayGamesPlatform.Instance.GetServerAuthCode();\r\n"}}
{"actor":{"display_login":"olehkuznetsov"}}