{"action":"closed","issue":{"url":"https://api.github.com/repos/playgameservices/play-games-plugin-for-unity/issues/348","labels_url":"https://api.github.com/repos/playgameservices/play-games-plugin-for-unity/issues/348/labels{/name}","comments_url":"https://api.github.com/repos/playgameservices/play-games-plugin-for-unity/issues/348/comments","events_url":"https://api.github.com/repos/playgameservices/play-games-plugin-for-unity/issues/348/events","html_url":"https://github.com/playgameservices/play-games-plugin-for-unity/issues/348","id":53567908,"number":348,"title":"Callbacks don't work for Turn Based Games on Android","user":{"login":"adepase","id":6826606,"avatar_url":"https://avatars.githubusercontent.com/u/6826606?v=3","gravatar_id":"","url":"https://api.github.com/users/adepase","html_url":"https://github.com/adepase","followers_url":"https://api.github.com/users/adepase/followers","following_url":"https://api.github.com/users/adepase/following{/other_user}","gists_url":"https://api.github.com/users/adepase/gists{/gist_id}","starred_url":"https://api.github.com/users/adepase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adepase/subscriptions","organizations_url":"https://api.github.com/users/adepase/orgs","repos_url":"https://api.github.com/users/adepase/repos","events_url":"https://api.github.com/users/adepase/events{/privacy}","received_events_url":"https://api.github.com/users/adepase/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-01-06T21:49:57Z","updated_at":"2015-01-26T17:01:14Z","closed_at":"2015-01-26T17:01:14Z","body":"I commented this on another (closed) issue, but I think that could be lost.\r\nI cannot get callbacks work in a turn based game even in version 0.9.11, both using \r\nPlayGamesPlatform.Instance.TurnBased.RegisterMatchDelegate(OnGotMatch);\r\nand/or\r\nPlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder()\r\n\t\t\t.WithInvitationDelegate(OnGotInvitation)\r\n\t\t\t.WithMatchDelegate(OnGotMatch).Build();\r\nPlayGamesPlatform.InitializeInstance(config);\r\n\r\nas for the new documentation.\r\nI even tried them both together (the documentation is not so clear and the sample game implements the old documentation).\r\nI'm working on Android.\r\nI got some callbacks, seldom and random, but I cannot understand the conditions in which they work or not. Just got them worked (seldom and random, as told before), if I received the notification AFTER the logon, never if the app was not running before or if I was logged with another user.\r\n\r\nTo be more precise: I think this works when the bool parameter is true, because selecting the notification brings me to play the match, but I cannot get the notification directly in the game, with the bool parameter = false, in a consistent way (maybe I cannot understand how this should work: I expect to receive both the notification in android - parameter = true if clicked - and also in the game - parameter = false, without clicking anything)"}}