使用Sample中订阅小程序的代码
val api = WXAPIFactory.createWXAPI(this, "app id", false)
val supported: Boolean =
api.wxAppSupportAPI >= Build.SUBSCRIBE_MINI_PROGRAM_MSG_SUPPORTED_SDK_INT
if (supported) {
val req = SubscribeMiniProgramMsg.Req()
req.miniProgramAppId = "mini program app id"
val ret = api.sendReq(req)
}
可以唤起微信,但是打开的页面会出现以下错误:
{“errcode":-11011}
错误码里面好像也没这个,请问有遇到相同错误的能指点下吗?
Sample订阅小程序是指?