Open AndrelsFlor opened 5 years ago
Hello, i'm on MIUI 9.6.2(Android 7.1.2) and, as the title says, i can't get the error callback to execute. Even when i put in the wrong password for the network, i get the success message.
this is the function i'm executing:
async connectToWifi(ssid, password) { console.log('SSID', ssid) console.log('PASSWORD', password) this.setState({status: 4}) WifiManager.connectToProtectedSSID(ssid, password, false) .then(() => { console.log('Connected successfully!') }, () => { console.log('Connection failed!') }) }
+1
same problem, is there a bug?
Hello, i'm on MIUI 9.6.2(Android 7.1.2) and, as the title says, i can't get the error callback to execute. Even when i put in the wrong password for the network, i get the success message.
this is the function i'm executing: