code_fyf
code_fyf
  • 发布:2024-07-05 14:43
  • 更新:2024-07-05 14:45
  • 阅读:184

#插件讨论# 【 uni-wifi - DCloud移动团队 】IOS调用uni.getConnectedWifi报错12010

分类:uni-app
关联插件: uni-wifi
uni.startWifi({  
                success: (ret) => {  
                    console.log(ret, 'startWifi'); // {"errSubject":"uni-startWifi","errCode":0,"errMsg":"startWifi:ok"}  
                    uni.getConnectedWifi({  
                        partialInfo: true,  
                        success: (res) => {  
                            console.log(res, 'startWifi');  
                            uni.stopWifi({  
                                success: () => {  
                                    console.log('stopWifi');  
                                }  
                            })  
                        },  
                        fail: (err) => {  
                            console.log(err); // {     "errSubject": "uni-wifi",     "errCode": 12010,     "errMsg": "unknown error" }  
                        },  
                        complete: (e) => {  
                            console.log(e); // {     "errSubject": "uni-wifi",     "errCode": 12010,     "errMsg": "unknown error" }  
                        }  
                    })  
                },  
                fail: (err) => {  
                    uni.stopWifi({})  
                    console.log(err);  
                }  
            })
2024-07-05 14:43 负责人:无 分享
已邀请:
code_fyf

code_fyf (作者)

android正常,ios报错

要回复问题请先登录注册