Google+ iOS登录地址无效

时间:2014-11-02 13:55:57

标签: ios google-api google-plus

对此有很多疑问 - 所有人都有相同的答案,对我来说没有帮助。

验证后 - 我应该通过Safari回到我的应用程序 我收到“地址无效”错误消息。

我的网址方案还可以: enter image description here

它应该有效的“证据”是当我在Safari中手动输入时: com.Cookila.Cookila-test://我被重定向到我的应用。

导致登录的代码:

- (IBAction)doGoogleLogin:(id)sender {
    NSString *clientID = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"googleLoginKey"];
    GPPSignIn *signIn = [GPPSignIn sharedInstance];
    signIn.shouldFetchGooglePlusUser = YES;
    signIn.shouldFetchGoogleUserEmail = YES;

    signIn.clientID = clientID;

    signIn.scopes = @[ kGTLAuthScopePlusLogin ];

    signIn.delegate = self;

    [signIn authenticate];
}

1 个答案:

答案 0 :(得分:0)

嗯......有一个$ PRODUCT_NAME /真实捆绑ID的混音。 BundleID(g +正确演绎)是com.Cookila.Cookila-copy。更改后全部工作

所以答案供将来参考 - 确保在两个地方都有readl包ID名称

相关问题