秋暴
秋暴
  • 发布:2024-03-02 09:41
  • 更新:2024-03-05 16:57
  • 阅读:398

await uni.getPushClientId() 报client is not defined

分类:uniCloud

用uni-ai-chat,调用await uni.getPushClientId() 报错如下:

{  
    "message": "client is not defined",  
    "stack": "ReferenceError: client is not defined\n    at _callee2$ (webpack-internal:///qUu5:355:42)\n    at tryCatch (http://localhost:8080/static/js/chunk-vendors.js:54792:17)\n    at Generator.<anonymous> (http://localhost:8080/static/js/chunk-vendors.js:54873:22)\n    at Generator.next (http://localhost:8080/static/js/chunk-vendors.js:54817:21)\n    at asyncGeneratorStep (http://localhost:8080/static/js/chunk-vendors.js:16409:24)\n    at _next (http://localhost:8080/static/js/chunk-vendors.js:16428:9)"  
}  

manifest.json  
   "sdkConfigs" : {  
                "ad" : {  
                    "gdt" : {},  
                    "ks" : {},  
                    "ks-content" : {},  
                    "sigmob" : {},  
                    "hw" : {},  
                    "bd" : {},  
                    "gm" : {},  
                    "wm" : {}  
                },  
                "oauth" : {},  
                "push" : {  
                    "unipush" : {  
                        "version" : "2",  
                        "offline" : false  
                    }  
                }  
            }  
 "mp-weixin" : {  
       。。。  
        "usingComponents" : true,  
        "secureNetwork" : {  
            "enable" : false  
        },  
        "unipush" : {  
            "enable" : true  
        }  
    },  
    "h5" : {  
        "unipush" : {  
            "enable" : true  
        },  
        "devServer" : {  
            "port" : 8080  
        }
2024-03-02 09:41 负责人:DCloud_uniCloud_JSON 分享
已邀请:
套马杆的套子

套马杆的套子 - 没有解决不了的问题,只有解决不完的问题

manifest.json中开通push么

秋暴

秋暴 (作者)

开通了。

秋暴

秋暴 (作者)

没人遇到过吗?

要回复问题请先登录注册