- wx.getUserProfile接口用户同意授权后,scope.userInfo不为true?
根据公告https://developers.weixin.qq.com/community/develop/doc/000cacfa20ce88df04cb468bc52801?highLine=wx.getUserProfile提到的一点 若开发者调用wx.getSetting接口请求用户的授权状态,会直接读取到scope.userInfo为true 目前wx.getUserProfile接口用户同意授权后,scope.userInfo不为true
2021-03-02 - wx.getUserProfile用户授权后,scope.userInfo不能判断用户是否授权吗?
如题:4月13日之后发布的小程序,使用接口wx.getUserProfile获取用户授权,而原先的scope.userInfo默认值为true,也就是页面逻辑不能再根据scope.userInfo获取用户是否授权过,并且每次需要获取用户信息时,则都需要弹窗wx.getUserProfile去获取用户信息 。。。。。。。。。 总结:scope.userInfo判断用户是否授权已经不管用了????且每次登录相关操作都需要授权弹窗???? 头大。。。。。。。。。
2021-03-09 - 如何换成wx.getUserProfile?
[图片]如何换成wx.getUserProfile 那么这几个参数怎么获取呢 wx.getUserInfo 获取到的以上信息,怎么得到?
2021-03-08 - getUserProfile接口授权之后wx.getSetting获取用户授权状态,获取不到?
使用getUserProfile接口获取用户信息成功后,在进入小程序还是需要授权, 之前用getsetting里的scope.userinfo判断是否授权, 但是现在getUserProfile授权完之后getSetting里没有scope.userInfo [图片] [图片] 解决办法 目前我的解决办法自己写接口去记录用户是否授权,授权过再也不会弹出授权框。 有个弊端,若过想获取用户最新的昵称和头像等信息的话,得需要用户主动触发授权按钮才能获取 这是我目前的解决办法,大家可以参考
2021-04-09 - wx.getUserProfile 如何做兼容?
wx.getUserProfile 和 wx.canIUse('wx.getUserProfile') 都是 undefined ,该怎么做兼容呢!!!🤷♂️ IOS 14.4 、微信 8.0.2、版本库 2.15.0 [图片] [图片]
2021-03-03 - 官方说小程序登录接口登陆凭证可以直接换取 unionID!, 我怎么拿不到?
上周三官方发表了《小程序登录、用户信息相关接口调整说明》https://developers.weixin.qq.com/community/develop/doc/000cacfa20ce88df04cb468bc52801?source=templateb&page=6#comment-list 我们紧跟官方步伐, 准备搞些大动作. 奈何一直拿不到 unionID! 是有什么窍门吗? [图片] wx.login 也没有做解释, 该如何直接换取 unionID ? . 还请官方给出使用文档
2021-03-01 - wx.getUserProfile到底要怎么用啊?
<button class='fs32 fw_b text-white' bindtap="userInfoHandler" hover-class='none'>授权登录</button> [图片] 一直报下面这样的错误 任何提示也没有,编译时基础库也调到2.14.0了 搞不懂是啥用的 wx.getUserProfile is not a function; [Component] Event Handler Error @ pages/authorizeLogin/authorizeLogin#bound userInfoHandler 果然还是有问题,现在正式环境时不时提示 昵称: 细莫商城 时间: 2021-03-09 11:46:25 次数: 5分钟 11次 类型:脚本错误 错误样例: wx.getUserProfile is not a function 登录公众平台小程序运维中心可查看更多错误信息
2021-03-09 - 安卓机下input输入框收起键盘之类的操作会多触发一次input事件2021-03-11
- wx.getUserInfo适配wx.getUserProfile时,拒绝一次授权,前者不可用了?
响应官方公告,做wx.getUserInfo适配 wx.getUserProfile。 在wx.getUserProfile 唤起的弹框中点击了一次拒绝按钮 [图片]之后,wx.getUserInfo就不能用了[图片]。 使用wx.getSetting、wx.openSetting都不能重新打开这个授权。 补充说明: 1、开发者工具、真机都不行 2、本来可以正常使用的小程序,为了验证这个问题,点了一次拒绝,也不能用了 3、开发者工具版本:[图片],基础库: 2.15.0
2021-03-10 - 关于4.13号更新wx.getUserInfo()和wx.getUserProfile()的问题?
官方是否能保证4.13后的小程序调用wx.getUserInfo()时候不会弹出授权弹窗,并且能直接拿到除了匿名的rawData之外的所有信息。无需用户进行弹窗授权。
2021-03-03