我安装了Google+ iOS SDK,并实现了分享功能:
- (void)customUIASView:(CustomUIASView *)customUIASView didClickGoogle:(UIButton *)sender{
static NSString * const kClientId = @"122385832599-2mcvobo565un3ab7d6d06m6fjemocto9.apps.googleusercontent.com";
share = [[GPPShare alloc] initWithClientID:kClientId];
share.delegate = self;
[[[[share shareDialog]
setURLToShare:[NSURL URLWithString:myUrl]]
setPrefillText:oPin.sName] open];
}
一切都正常运行,控制台没有错误,但是当使用这个链接在Safari移动版上打开时(对于所有桌面浏览器都正常工作),我收到了404错误!
有人遇到了同样的错误: https://groups.google.com/forum/#!msg/google-plus-developers/ZSCxGNTqRJY/jidPJ076BfYJ
但解决方法是将BundleID更改为至少带一个点的其他ID。我的BundleID已经有两个点了,所以我不知道该怎么办。有人知道如何解决吗?谢谢!