wx.miniapp.jumpToGooglePlay

WARNING

请注意,当前域名 https://dev.weixin.qq.com/docs/framework 文档已不维护,请前往微信文档中心open in new window 找到对应的新文档继续使用

该接口用于跳至当前 App 的 GooglePlay 下载页

Android SDK >= 1.3.24

注意:App 需上架 Google Play 后方可调用此接口

接口详情

参数

属性类型默认值必填说明
successfunction获取后成功回调

返回参数

属性类型说明
errcodenumber错误码
errmsgstring错误提示

JSAPI 代码例子

wx.miniapp.jumpToGooglePlay({ success: (res) => { // 跳转成功 console.log('jumpToGooglePlay success:', res) } fail: (res) { // 本机未安装 Google Play console.log('jumpToGooglePlay fail:', res) } })