Comments (6)
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.
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.
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.
Can anybody confirm if it is bug in ios API ((instancetype)initWithSSID:(NSString *)SSID) for open network?
from cordova-network-manager.
@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.
Sorry guys I've been away for a bit. I'll be looking to add this shortly.
from cordova-network-manager.
Related Issues (18)
- connectNetwork function success callback should only fire when specified network connects
- How do I use getConnectedSSID HOT 3
- Is it possible to list available networks on iOS HOT 5
- Missing ACCESS_COARSE_LOCATION permission HOT 5
- Ios buidl faild in ionic3 when run "ionic cordova build ios". HOT 5
- xCode simulator fail HOT 2
- App crashes on iPhone 5 when 'getCurrentSSID' is called HOT 5
- addNetwork API fails HOT 2
- Error: The WIFI_SERVICE must be looked up on the Application context or memory will leak on devices < Android N HOT 1
- Error compile in IOS HOT 3
- ssidToNetworkId - check test.SSID before test.SSID.equals HOT 7
- androidConnectNetwork requires ssidToDisable HOT 6
- Enable WiFi when calling funcs that require WiFi enabled HOT 5
- Improve documentation HOT 1
- getCurrentSSID() returns SSID even when not connected (getCurrentBSSID does not exist) HOT 4
- Rewrite Android Platform
- It does not work in IOS HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-network-manager.