Coder Social home page Coder Social logo

Comments (6)

gailu avatar gailu commented on August 28, 2024

We are trying to connect with open network and passed empty string in the password as API does not have option to specify type of network (WPA/WEP/Open). It works in Android but fails in ios with same error [NEHotspotConfiguration valid:726 NEHotspotConfiguration invalid WPA/WPA2 passphrase length.

I tried to change following code

NEHotspotConfiguration *configuration = [[NEHotspotConfiguration alloc] initWithSSID:ssidString passphrase:passwordString isWEP:(BOOL)false];
to
NEHotspotConfiguration *configuration = [[NEHotspotConfiguration alloc] initWithSSID:ssidString ];
in cordovaNetworkManager.m hoping that it will fix the issue as other parameters are not required for open network. But its not taking effect. Probably its not rebuild properly. How to rebuild plugin so that code changes cordovaNetworkManager.m are reflected in the app?

from cordova-network-manager.

arsenal942 avatar arsenal942 commented on August 28, 2024

WPA standards specifies that you have to have a password length of >= 8. I was in the middle of implementing a fix for this and will finish it today. I was a bit naive in how I did in in 2.5.3 so I will address it by end of day.

For the latest stable release, install @2.5.0

from cordova-network-manager.

gailu avatar gailu commented on August 28, 2024

I understand that WPA standard specifies to have password length of >= 8 but here the problem is connecting with Open network not the WPA network. Apple has two different APIs to connect WPA and Open Network.

Actually plugin should check the length of password and if length is zero then it should call open network API otherwise WPA API. However problem is that calling Open Network API i.e. - (instancetype)initWithSSID:(NSString *)SSID; does not solve the problem and apple still checks the password length so I suspect a bug in apple API implementation of Open Network unless I am missing something obvious.

from cordova-network-manager.

gailu avatar gailu commented on August 28, 2024

Can anybody confirm if it is bug in ios API ((instancetype)initWithSSID:(NSString *)SSID) for open network?

from cordova-network-manager.

tripflex avatar tripflex commented on August 28, 2024

@gailu try the latest release of WifiWizard2 I added support for open networks (just can't test myself without an ios device):
https://github.com/tripflex/WifiWizard2

from cordova-network-manager.

arsenal942 avatar arsenal942 commented on August 28, 2024

Sorry guys I've been away for a bit. I'll be looking to add this shortly.

from cordova-network-manager.

Related Issues (18)

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.