Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Can not connect to wifi without internet while internet enabled on other network, Android 8

$
0
0

I was connecting to wifi network using

`wifiManager.EnableNetwork(networkId, true);
 wifiManager.Reconnect();`

It was working fine with earlier android versions, but on android 8 it is not working properly. Continuously trying to connect the network with internet connectivity either mobile data network or other wifi network.

Tried to disable network auto connect using

 `wifiManager.DisableNetwork(networkId);`

which always returns false as now its not possible to disable or remove network created by other apps.

Looked at another option CaptivePortal.ignoreNetwork() in android(java), but could not find similar functionality in xamarin. Why??

Can I request suggestions if someone has faced and resolved similar kind of problem?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>