react native wifi reborn - connected to wifi, but no internet available with exclamation mark

Viewed 257

'''

const connectToSSID = () => {

            ToastAndroid.show('Connecting', ToastAndroid.LONG)

            WifiManager.connectToProtectedSSID(ssid, password, isWep).then(
                (res) => {
                    console.log("Accounts / connectToSSID / status ===> Connected successfully!");
                    ToastAndroid.show(`Connected to ${ssid}`, ToastAndroid.LONG)
                    setConnectionStatus(true)
                    // WifiManager.forceWifiUsageWithOptions(true,{noInternet: false}) 
                },
                (err) => {
                    console.log("Accounts / connectToSSID / status ===> Connection failed! ");
                    console.log("Error ===> ", err);
                    // ToastAndroid.show(err, ToastAndroid.LONG)
                }
            )
        }

'''

I can connect suddecsfully to my wifi network, but after connecting, the internet is not available. an exclamation mark is present as shown in the photo.

here is the wifi connection in UI system

is there anyway I can solve this? thank you

0 Answers
Related