Open Audrey-Ann opened 11 months ago
As I know using connectToLocalNetwork
will cause the network to be disconnected once the app killed unless that network are saved to device's network list or suggested before using connectToNetwork
.
Did you call connectToLocalNetwork
before calling disconnectFromLocalNetwork
?
Thanks for your reply!
Yes I did.. but I will make further tests to fully confirm it.
Furthermore, are you suggesting I shall call disconnectFromLocalNetwork
method before connectToLocalNetwork
?
Thank you!
Another question.. should I use connectToNetwork
if I want to connect to a local network that has internet and is not hidden? Apologies if that should be a straight forward answer..
Thanks for your reply!
Yes I did.. but I will make further tests to fully confirm it.
Furthermore, are you suggesting I shall call
disconnectFromLocalNetwork
method beforeconnectToLocalNetwork
?Thank you!
Yes
Another question.. should I use
connectToNetwork
if I want to connect to a local network that has internet and is not hidden? Apologies if that should be a straight forward answer..
Depends on what you're looking for but in a case where you need to connect to a network with internet connection you may use both connectToNetwork and openWifiSettings together when a popup displayed user will only have to select that network without typing credentials
Hi again!
When using
I am having issues when connecting to a local network using
connectToLocalNetwork
while testing on Android 13:connectToLocalNetwork
Then I was thinking I should disconnect to the local network before reconnecting, but:
disconnectFromLocalNetwork
, it returns aNetworkCallback was not registered
error.Would you have an explanation / reasons for the above issues please?
Thanks in advance. Let me know if you need more information!