{"action":"created","issue":{"url":"https://api.github.com/repos/playgameservices/ios-basic-samples/issues/12","labels_url":"https://api.github.com/repos/playgameservices/ios-basic-samples/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/playgameservices/ios-basic-samples/issues/12/comments","events_url":"https://api.github.com/repos/playgameservices/ios-basic-samples/issues/12/events","html_url":"https://github.com/playgameservices/ios-basic-samples/issues/12","id":73633154,"number":12,"title":"Can't find any friends in GPGLauncherController","user":{"login":"dehlen","id":680180,"avatar_url":"https://avatars.githubusercontent.com/u/680180?v=3","gravatar_id":"","url":"https://api.github.com/users/dehlen","html_url":"https://github.com/dehlen","followers_url":"https://api.github.com/users/dehlen/followers","following_url":"https://api.github.com/users/dehlen/following{/other_user}","gists_url":"https://api.github.com/users/dehlen/gists{/gist_id}","starred_url":"https://api.github.com/users/dehlen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dehlen/subscriptions","organizations_url":"https://api.github.com/users/dehlen/orgs","repos_url":"https://api.github.com/users/dehlen/repos","events_url":"https://api.github.com/users/dehlen/events{/privacy}","received_events_url":"https://api.github.com/users/dehlen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-06T14:10:04Z","updated_at":"2015-05-06T16:49:27Z","closed_at":"2015-05-06T16:49:27Z","body":"Hello,\r\n\r\nI am trying to use the GPGLauncherController in order to invite friends or create an Auto Match in a turn based game.\r\n\r\nThis is what I tried:\r\n``` objective-c\r\n-(void)newGame:(id)sender {\r\n    [GPGLauncherController sharedInstance].playerPickerLauncherDelegate = self;\r\n    [[GPGLauncherController sharedInstance] presentPlayerPicker];\r\n}\r\n```\r\n\r\n``` objective-c\r\n#pragma mark -\r\n#pragma mark GPGLauncherDelegate\r\n-(int)minPlayersForPlayerPickerLauncher {\r\n    return 1;\r\n}\r\n\r\n-(int)maxPlayersForPlayerPickerLauncher {\r\n    return 1;\r\n}\r\n\r\n-(void)playerPickerLauncherDidPickPlayers:(NSArray *)players autoPickPlayerCount:(int)autoPickPlayerCount {\r\n    if (players == NULL) return;\r\n    \r\n    for (NSString *nextPlayerId in players) {\r\n        NSLog(@\"This is who we picked %@\", nextPlayerId);\r\n    }\r\n    GPGMultiplayerConfig *matchConfigForCreation = [[GPGMultiplayerConfig alloc] init];\r\n    matchConfigForCreation.invitedPlayerIds = players;\r\n    matchConfigForCreation.minAutoMatchingPlayers = autoPickPlayerCount;\r\n    matchConfigForCreation.maxAutoMatchingPlayers = autoPickPlayerCount;\r\n    \r\n    [GPGTurnBasedMatch createMatchWithConfig:matchConfigForCreation completionHandler:^(GPGTurnBasedMatch *match, NSError *error) {\r\n        if (error) {\r\n            NSLog(@\"Received an error trying to create a match %@\", [error localizedDescription]);\r\n        } else {\r\n           //TODO: Take Turn in Match\r\n        }\r\n    }];\r\n\r\n}\r\n```\r\n\r\nThe Controller is shown just fine unfortunately If I enter something into the Textfield none of my friends are found.\r\n\r\nAlso this is the stacktrace : (I think it has something to do with the error message: \"Attempting to get... of an invalid player\" but couldn't find a solution)\r\n\r\nStacktrace:\r\n```\r\n2015-05-06 15:50:53.253 PinFever[545:132418] INFO: Auth operation started: SIGN IN\r\n2015-05-06 15:50:53.260 PinFever[545:132418] INFO: Auth operation SIGN IN finished with status VALID\r\n2015-05-06 15:50:53.265 PinFever[545:132261] ERROR: Attempting to get name of an invalid Player\r\n2015-05-06 15:50:53.266 PinFever[545:132261] ERROR: Attempting to get avatar URL of an invalid Player\r\n2015-05-06 15:50:53.266 PinFever[545:132261] ERROR: Attempting to get id of an invalid Player\r\n2015-05-06 15:50:53.266 PinFever[545:132261] ERROR: Attempting to get title of an invalid Player\r\n2015-05-06 15:50:53.266 PinFever[545:132261] ERROR: Attempting to get current xp of an invalid Player\r\n2015-05-06 15:50:53.266 PinFever[545:132261] ERROR: Attempting to get last level up timestamp of an invalid Player\r\n2015-05-06 15:50:53.267 PinFever[545:132261] ERROR: Attempting to get current level of an invalid Player\r\n2015-05-06 15:50:53.267 PinFever[545:132261] ERROR: Attempting to get level number of an invalid PlayerLevel\r\n2015-05-06 15:50:53.272 PinFever[545:132261] ERROR: Attempting to get minimum xp of an invalid PlayerLevel\r\n2015-05-06 15:50:53.272 PinFever[545:132261] ERROR: Attempting to get maximum xp of an invalid PlayerLevel\r\n2015-05-06 15:50:53.272 PinFever[545:132261] ERROR: Attempting to get next level of an invalid Player\r\n2015-05-06 15:50:53.272 PinFever[545:132261] ERROR: Attempting to get level number of an invalid PlayerLevel\r\n2015-05-06 15:50:53.272 PinFever[545:132261] ERROR: Attempting to get minimum xp of an invalid PlayerLevel\r\n2015-05-06 15:50:53.272 PinFever[545:132261] ERROR: Attempting to get maximum xp of an invalid PlayerLevel\r\n2015-05-06 15:50:53.331 [Core] (Error) __49-[GPGService executeOperation:completionHandler:]_block_invoke:[main] Server Operation Failed [appstate.states.list]\r\n\tError: Der Vorgang konnte nicht abgeschlossen werden. (Insufficient Permission)\r\n\tError Full: Error Domain=com.google.GTLJSONRPCErrorDomain Code=403 \"Der Vorgang konnte nicht abgeschlossen werden. (Insufficient Permission)\" UserInfo=0x1702681c0 {error=Insufficient Permission, NSLocalizedFailureReason=(Insufficient Permission), GTLStructuredError=GTLErrorObject 0x17004eeb0: {message:\"Insufficient Permission\" data:[1] code:403}}\r\n2015-05-06 15:50:53.351 PinFever[545:132261] Signed in!\r\n2015-05-06 15:50:53.545 PinFever[545:132261] VERBOSE: Automatically seeded snapshot cache.\r\n2015-05-06 15:50:53.570 PinFever[545:132261] VERBOSE: Automatically seeded achievement cache.\r\n2015-05-06 15:50:53.577 PinFever[545:132261] VERBOSE: Automatically seeded event cache.\r\n2015-05-06 15:50:56.159 PinFever[545:132261] CUICatalog: Invalid asset name supplied: (null)\r\n2015-05-06 15:50:56.160 PinFever[545:132261] CUICatalog: Invalid asset name supplied: (null)\r\n2015-05-06 15:50:56.879 PinFever[545:132261] Unbalanced calls to begin/end appearance transitions for <GPGLauncherWindowRootViewController: 0x127510b30>.\r\n2015-05-06 15:51:24.498 PinFever[545:132261] Warning: Attempt to present <UINavigationController: 0x127564f90> on <GPGPlayerPickerViewController: 0x12763abb0> whose view is not in the window hierarchy!\r\n2015-05-06 15:51:24.696 PinFever[545:132538] VERBOSE: Request had Apiary Status Code: 0\r\n2015-05-06 15:51:24.701 PinFever[545:132537] VERBOSE: Creating write batch.\r\n2015-05-06 15:51:24.703 PinFever[545:132537] VERBOSE: Enqueuing write to datastore: 113026229046302655353$tbm.ChoKCQipm-WttR4QAhACGAAg____________ARD6jK70vLnoh9gB.\r\n2015-05-06 15:51:24.705 PinFever[545:132537] VERBOSE: Writing batch to datastore.\r\n2015-05-06 15:51:28.316 PinFever[545:132261] CUICatalog: Invalid asset name supplied: (null)\r\n2015-05-06 15:51:28.317 PinFever[545:132261] CUICatalog: Invalid asset name supplied: (null)\r\n2015-05-06 15:51:29.512 PinFever[545:132548] VERBOSE: Request had Apiary Status Code: 0\r\n2015-05-06 15:51:30.777 PinFever[545:132261] Warning: Attempt to present <UINavigationController: 0x127663f90> on <GPGPlayerPickerViewController: 0x127560550> whose view is not in the window hierarchy!\r\n2015-05-06 15:51:31.502 PinFever[545:132553] VERBOSE: Request had Apiary Status Code: 0\r\n2015-05-06 15:51:31.503 PinFever[545:132537] VERBOSE: Creating write batch.\r\n2015-05-06 15:51:31.504 PinFever[545:132537] VERBOSE: Enqueuing write to datastore: 113026229046302655353$tbm.ChoKCQipm-WttR4QAhACGAAg____________ARC6kM7AwdaZuQg.\r\n2015-05-06 15:51:31.505 PinFever[545:132537] VERBOSE: Writing batch to datastore.\r\n\r\n``` "},"comment":{"url":"https://api.github.com/repos/playgameservices/ios-basic-samples/issues/comments/99535109","html_url":"https://github.com/playgameservices/ios-basic-samples/issues/12#issuecomment-99535109","issue_url":"https://api.github.com/repos/playgameservices/ios-basic-samples/issues/12","id":99535109,"user":{"login":"dehlen","id":680180,"avatar_url":"https://avatars.githubusercontent.com/u/680180?v=3","gravatar_id":"","url":"https://api.github.com/users/dehlen","html_url":"https://github.com/dehlen","followers_url":"https://api.github.com/users/dehlen/followers","following_url":"https://api.github.com/users/dehlen/following{/other_user}","gists_url":"https://api.github.com/users/dehlen/gists{/gist_id}","starred_url":"https://api.github.com/users/dehlen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dehlen/subscriptions","organizations_url":"https://api.github.com/users/dehlen/orgs","repos_url":"https://api.github.com/users/dehlen/repos","events_url":"https://api.github.com/users/dehlen/events{/privacy}","received_events_url":"https://api.github.com/users/dehlen/received_events","type":"User","site_admin":false},"created_at":"2015-05-06T16:49:27Z","updated_at":"2015-05-06T16:49:27Z","body":"Nevermind now It is working. It was some error concerning my Google+ Profile Setup. The above code is working as expected."}}