-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
支付宝小程序 Taro.canIUse('getDeviceInfo') 返回 true,但是 Taro.getDeviceInfo() 返回的信息不正确 #17309
Comments
除非有一些api会特殊处理,默认的api调用都是直接换成 |
Taro 这边是否特殊处理下支付宝的这种情况 |
This was referenced Feb 15, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Taro 环境
这个特性解决了什么问题?
支付宝小程序 Taro.canIUse('getDeviceInfo') 返回 true,但是 Taro.getDeviceInfo() 返回的信息不正确
my.getDeviceBaseInfo:https://opendocs.alipay.com/mini/071680?pathHash=92d76c0e
支付宝小程序提供的是 my.getDeviceBaseInfo
方案1、Taro.getDeviceInfo() 在支付宝小程序上,底层应该是要调用支付宝的 getDeviceBaseInfo 获取对应的信息
方案2、如果不支持第一种方案,则 Taro.canIUse('getDeviceInfo') 在支付宝小程序上应该返回 false
这个 API 长什么样?
Taro.canIUse('getDeviceInfo') 或 Taro.getDeviceInfo() 在支付宝小程序上,表现正常
The text was updated successfully, but these errors were encountered: