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

Receive null from iOSConnectNetwork() when Cellular is enabled and Network is Saved #133

Open
3 of 7 tasks
allidoisace opened this issue Apr 21, 2022 · 2 comments
Open
3 of 7 tasks

Comments

@allidoisace
Copy link

allidoisace commented Apr 21, 2022

Prerequisites

Check all boxes if you have done the following:

Issue type

Select all that apply

  • Bug
  • Enhancement
  • Task
  • Question
  • Other

Description

Device: iPad Pro 12.9 in.
Version: 15.4.1
Conditions: Cellular data is enabled, but currently connected to WiFi (House WiFi for example). Desired Network to connect to is saved under "My Networks" in the WiFi Settings.

When initiating await WifiWizard2.iOSConnectNetwork(ssid, ssidPassword);, the Promise returns almost instantly with a caught error of null and a prompt is displayed on the iPad: "Unable to join the network '...' ".

Steps to Reproduce

  1. Turn on Cellar Data (wait like 30s after)
  2. Connect to WiFi
  3. Open app and initiate the iOSConnectNetwork() call to some other network.

Expected behavior: Connects to WiFi as defined by the ssid and ssidPassword

Actual behavior: Returns null from Promise and displays prompt on the iOS screen "Unable to join the network '...' " immediately.

Reproduces how often: 95%. The 5% it works is when switching cellular on and off.

Versions

iOS: 15.4.1
WiFiWizard2: 3.1.1
Ionic: 6.0.8

Additional Information

  • I enabled all Network Extension Capabilities on the Xcode Project
  • I enabled Hotspot Configuration on the Xcode Project
  • I enabled Access to WiFi Information on the Xcode Project

development.plist

        <key>com.apple.developer.networking.HotspotConfiguration</key>
	<true/>
@allidoisace allidoisace changed the title Receive null from iOSConnectNetwork() when Cellular is enabled and connected to WiFi Receive null from iOSConnectNetwork() when Cellular is enabled and Network is Saved Apr 21, 2022
@allidoisace
Copy link
Author

allidoisace commented Apr 21, 2022

I changed the title because I believe this issue is actually being caused by the desired network already being saved under "My Networks".

@EYALIN
Copy link

EYALIN commented Apr 12, 2023

@allidoisace
it has been fixed in my forked repo:
https://github.com/EYALIN/community-cordova-plugin-wifi-wizard

you can install it as an npm package:
cordova plugin add community-cordova-plugin-wifi-wizard --save

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