Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isConnected returning always false but the Phone connected successfully to the wifi #75

Closed
felixsmart opened this issue Jul 12, 2020 · 8 comments · Fixed by #150
Closed
Labels
bug Something isn't working help wanted Extra attention is needed invalid This doesn't seem right

Comments

@felixsmart
Copy link

Hi there,

I'm testing and the module works perfect with iOS.

I'm now testing an Android (Using a Xiaomi M10) and this always returns false. The issue is that the Android Phone connected successfully to the Wifi (I can see it is connected).

bool isConnected = await WiFiForIoTPlugin.connect(STA_DEFAULT_SSID,
password: STA_DEFAULT_PASSWORD,
joinOnce: false,
security: NetworkSecurity.WPA);

Any ideas?

@cool-518
Copy link

same problem!

@bigbirdhzp
Copy link

i hava the same problem!!!

@qhu91it
Copy link

qhu91it commented Aug 9, 2020

Me too, Pixel XL android 10

@florian-guillemard florian-guillemard added bug Something isn't working help wanted Extra attention is needed invalid This doesn't seem right labels Sep 22, 2020
@pyon123
Copy link

pyon123 commented May 16, 2021

In my case, Android is working fine, but not working in iOS.
Would you like to explain me how you implement it in iOS?

@daadu
Copy link
Member

daadu commented May 16, 2021

isConnected is not working because of new restrictions added by iOS (not returning current SSID, based on which isConnected works). Issue #142 is tracking this change and it's fix. PR is most welcomed.

@daadu
Copy link
Member

daadu commented Jul 9, 2021

The fix has landed on pub.dev with v0.3.4.

@felixsmart Thanks for filing this bug. Check yourself in README!!

@lgozalvez
Copy link

The fix has landed on pub.dev with v0.3.4.

@felixsmart Thanks for filing this bug. Check yourself in README!!

Amazing!, Thanks (I'm the CTO of Felix Smart)

@usmanNoor5
Copy link

same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed invalid This doesn't seem right
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants