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!
Hello, you need to complete the user privacy protection guide in the applet background, menu, settings, and basic settings, and get the right to access photos. Pay attention to the right to read albums.
https://developers.weixin.qq.com/miniprogram/dev/framework/user-privacy/
First, print the error message, which is likely due to the absence of a User Privacy Protection Guidelines. Please refer to the documentation:https://developers.weixin.qq.com/miniprogram/dev/framework/user-privacy/
hello,look this
https://developers.weixin.qq.com/miniprogram/en/dev/framework/user-privacy/