What steps will reproduce the problem?
1. Log into YouTube using iOS SDK and specific client ID/Secret
2. Upload video, works fine
3. Change app to use another client ID/Secret
4. attempt to upload video
5. executeQuery (queryForVideosInsertWithObject) just hangs and never calls
completionHandler
6. log out, log back in, works fine
What is the expected output? What do you see instead?
- an error message
- ideally when we check auth.canAuthorize it reports NO
What version of the product are you using? On what operating system?
3.0 sdk for ios
Please provide any additional information below.
Now this is an extreme example. We've had users hit the same "hang" out in the
field where the cid/secret are not changing on them. So, did their login expire
or something else? They can always fix it by logging out and back in.
We followed the example code for determining if someone is signed in, which is
below. If there's something further we should check. I've looked at
expirationDate and expiresIn and they are no help.
- (NSString *)signedInName {
// Get the email address of the signed-in user
GTMOAuth2Authentication *auth = [[self youTubeService] authorizer];
BOOL isSignedIn = auth.canAuthorize;
if (isSignedIn) {
return auth.userEmail;
} else {
return nil;
}
}
- (BOOL)loggedIn {
return [self signedInName]!=nil;
}
Original issue reported on code.google.com by
jhalst...@gmail.comon 5 Sep 2013 at 2:10