Git Product home page Git Product logo

Comments (6)

eliaslecomte avatar eliaslecomte commented on July 2, 2024

You can actually remove it first yourself by calling isRemoveWifiNetwork(ssid) but there is one problem with this you can't fix; if the wifi network configuration was created by the user or by another app, your own app can't remove it.

from react-native-wifi-reborn.

ljbatwh avatar ljbatwh commented on July 2, 2024

@eliaslecomte Thanks for your solution. Yes, in my situation, I can not guarantee to remove the Wifi because maybe the user created the WIFI configuration. But in this situation, call wifiManager.updateNetwork() also will fail, right? In this situation, should we reject the promise by throw an exception to indicate the existed Wifi configuration is not the same as we passed in?

from react-native-wifi-reborn.

eliaslecomte avatar eliaslecomte commented on July 2, 2024

If this PR: #46 is accepted and a new version is published, this condition will actually be checked. (try to remove or if that fails, try to connect with saved connection). Also the promise will actually be rejected if it couldn't connect in this case.

from react-native-wifi-reborn.

Rapsssito avatar Rapsssito commented on July 2, 2024

@ljbatwh, thanks for the feedback! I am closing this issue since #46 was merged.

If the problem persists, feel free to reopen this issue.

from react-native-wifi-reborn.

rachitgupta98 avatar rachitgupta98 commented on July 2, 2024

hey @Rapsssito @eliaslecomte
connectToProtectedSSID does not work if password changes, is there any way to connect with the network other than going to wifi setting, forget the network and then connect.

from react-native-wifi-reborn.

eliaslecomte avatar eliaslecomte commented on July 2, 2024

Yes unfortunately this is how Android is. The app can't change a wifi configuration that the user or another app created. I am curious, since, starting Android 10, the network configuration isn't persisted in Wifi Settings, if this is also still a problem.

from react-native-wifi-reborn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.