unity版本:2021.3.14f1c1,
微信sdk版本:202407050885
出现问题的设备:苹果XR
微信版本:8.0.41
调起用户信息授权用的以下代码,当点击后要很慢才能弹出授权弹窗
var infoButton = WeChatWASM.WXBase.CreateUserInfoButton(x, y, width, height, "zh_CN", true);
infoButton.Show();
infoButton.OnTap((res) =>
{
if (res.errMsg.IndexOf(":ok") > -1 && !string.IsNullOrEmpty(res.userInfoRaw))
{
var userinfo = res.userInfo;
PlatformUserInfo platformUserInfo = new PlatformUserInfo
{
NickName = userinfo.nickName,
Avatar = userinfo.avatarUrl
};
GameInstance.Instance.SePlatformUserInfo(platformUserInfo);
}
else
{
ToastScreenPresenter.Show(res.errMsg);
}
GameInstance.Instance.SetHasRequestPlatformUserInfo();
OnAuthorizationClicked();
infoButton?.Destroy();
});
