reactnativecn / react-native-weibo

124 stars 84 forks source link

分享问题 #5

Open StarksJohn opened 8 years ago

StarksJohn commented 8 years ago

调 WeiboAPI.share 函数 调出 H5的 授权登录页, IOS 模拟器 可以 登录进去. 但 安卓真机怎么都登不进去,为毛?

lee11qian commented 8 years ago

我也遇到了,楼主解决了么?

zhaolei06 commented 7 years ago

遇到这个问题的朋友,把注释里的内容复制到对应的位置. 这是ios的,安卓我还没改 改完了贴上来 message.mediaObject.thumbnailData = UIImageJPEGRepresentation(aImage, 0.7); } } //check weibo installed begin Boolean wbInstalled = [WeiboSDK isWeiboAppInstalled]; if(!wbInstalled){ NSMutableDictionary body = [NSMutableDictionary new]; body[@"errMsg"] = [WeiboSDK getWeiboAppInstallUrl]; body[@"errCode"] = @(-999); body[@"type"] = @"WBSendMessageToWeiboResponse"; [_bridge.eventDispatcher sendAppEventWithName:RCTWBEventName body:body]; return; } //check weibo installed end WBAuthorizeRequest authRequest = [self _genAuthRequest:aData];

lucky4627 commented 7 years ago

@zhaolei06 大哥安卓改好了吗?另外在装有微博客户端的时候,不管是客户端还是H5页面,我都无法调起。。