收藏
回答

onChooseAvatar not working for album photo?

Hello, we are using TaroJS to make a react mini program. We have a taroJS button: <Button openType='chooseAvatar' onChooseAvatar={onChooseAvatar}/>. The button successfully opens the wechat native avatar selector modal, as seen below:

Getting the WeChat avatar works well, but selecting "从相册选择" in the popup does not work. It loads, then silently fails after selecting a photo from the album on the ios device. Is there some permissions issue I'm missing? Again, only the wechat avatar photo selection works, camera and photo album options do not work.

If we cannot get the native avatar selection to work, can we edit the popup so that only the wechat avatar option is available? Then we could handle uploading photos or taking pictures and using them separately, as the wx.chooseImage function works successfully. I want to know if there is a separate function like wx.chooseAvatar for just getting the wechat avatar. Thanks!

回答关注问题邀请回答
收藏

3 个回答

登录 后发表内容