收藏
回答

微信小程序打包成APK以后 WebSocket无法使用?

AppID
wxc2423eee7aa39633

微信小程序升级生成多端应用模式之后 接口调用正常 但是WebSocket缺无法使用

下面是报错信息

MiniProgramError
Cannot read properties of undefined (reading 'onOpen')
TypeError: Cannot read properties of undefined (reading 'onOpen')
    at bi.initWebSocket (https://usr/pages/index/index.appservice.js:2:1095)
    at bi.onLoad (https://usr/pages/index/index.appservice.js:2:321)
    at bi. (WASubContext.js:1:451955)
    at l.__callPageLifeTime__ (WASubContext.js:1:451748)
    at WASubContext.js:1:463841
    at WASubContext.js:1:423314
    at WASubContext.js:1:464400
    at WASubContext.js:1:423314
    at WASubContext.js:1:470076
    at WASubContext.js:1:423314

最后一次编辑于  2024-12-29
回答关注问题邀请回答
收藏

2 个回答

  • 0
    0
    01-03

    network SDK开启了吗

    01-03
    有用
    回复
  • 智能回答 智能回答 该问答由AI生成
    2024-12-29
    有用
登录 后发表内容