Skip to content

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

@allidoisace

Description

@allidoisace

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/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions