yorkie / react-native-wechat

🚀 WeChat login, share, favorite and payment for React-Native on iOS and Android platforms (QQ: 336021910)
https://npmjs.org/package/react-native-wechat
MIT License
2.9k stars 711 forks source link

WeChat.sendAuthRequest('snsapi_userinfo') 无响应 ios #328

Open pony1179 opened 6 years ago

pony1179 commented 6 years ago
  1. react-native: "0.49.3" react-native-wechat:"1.9.9" platform:ios
  2. 在Android上运行良好,可以实现登录功能,可以确认appid没有问题,bundleID也没有问题,与微信开放平台一致,info.plist中加入了weixin和wechat,url Schema也配置了,AppDelegate.m中配置与 Build Setup for iOS中一致,目前在ios端点击微信登录,可以启动微信,但是只有白屏页面,没有任何相应,调试可以确定卡在WeChat.sendAuthRequest('snsapi_userinfo')这里了,有哪位仁兄可以帮忙解答一下
Kennytian commented 6 years ago

跟你一样,点击确认登录没反应。 iPhone 真机,debug环境。

pony1179 commented 6 years ago

@Kennytian 我今天什么都没做,居然可以了,很奇怪

Kennytian commented 6 years ago

@WangchuanShuo

const scope = 'snsapi_userinfo'; const result = await WeChat.sendAuthRequest(scope);

是这样调用吗?

pony1179 commented 6 years ago

@Kennytian 是这样的

Kennytian commented 6 years ago

我现在是分享给好友,分享到朋友圈正常。但 sendAuthRequest 后,确认登录 没反应

qwlong commented 6 years ago

我这边解决了,是因为URL Types的问题,看看可以帮助你们不 @Kennytian https://user-images.githubusercontent.com/607963/35719570-fd767b9a-0824-11e8-9c58-5537bcd56c72.png