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

wifi.findAndConnect how do i listen to the response? #2

Closed
rares-lupascu opened this issue Sep 26, 2016 · 1 comment
Closed

wifi.findAndConnect how do i listen to the response? #2

rares-lupascu opened this issue Sep 26, 2016 · 1 comment

Comments

@rares-lupascu
Copy link

Hey

so if i try to connect to a wifi network using wifi.findAndConnect ... the responso only tells me if it is in range not if i got connected ... how do i know if the connection succeeded?

@devstepbcn
Copy link
Owner

Hey wowzaaa

Android doesn’t provide a callback when you try to connect to a wifi. You have to listen for connectivity changes to know if connection succeeded. You can use NetInfo from React Native Components.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants