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

Android 13 - Not returning correct error when password was wrong #354

Closed
alexma01 opened this issue Dec 28, 2023 · 1 comment
Closed

Android 13 - Not returning correct error when password was wrong #354

alexma01 opened this issue Dec 28, 2023 · 1 comment
Labels

Comments

@alexma01
Copy link
Contributor

alexma01 commented Dec 28, 2023

·> npx react-native info   
info Fetching system and libraries information...
System:
  OS: macOS 14.2.1
  CPU: (8) arm64 Apple M2
  Memory: 107.39 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 18.17.0
    path: ~/.asdf/installs/nodejs/18.17.0/bin/node
  Yarn:
    version: 1.22.19
    path: ~/.asdf/installs/nodejs/18.17.0/bin/yarn
  npm:
    version: 9.6.7
    path: ~/.asdf/plugins/nodejs/shims/npm
  Watchman:
    version: 2023.09.18.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.14.2
    path: /Users/alessandromarra/.asdf/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.2
      - iOS 17.2
      - macOS 14.2
      - tvOS 17.2
      - watchOS 10.2
  Android SDK:
    API Levels:
      - "31"
      - "32"
      - "33"
      - "34"
    Build Tools:
      - 30.0.3
      - 33.0.0
      - 33.0.1
      - 34.0.0
    System Images:
      - android-30 | Google Play ARM 64 v8a
      - android-31 | Google APIs ARM 64 v8a
      - android-34 | Google APIs ARM 64 v8a
      - android-34 | Google Play ARM 64 v8a
    Android NDK: Not Found
IDEs:
  Android Studio: 2023.1 AI-231.9392.1.2311.11076708
  Xcode:
    version: 15.1/15C65
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: javac 17
    path: /Users/alessandromarra/.asdf/shims/javac
  Ruby:
    version: 3.2.2
    path: /Users/alessandromarra/.asdf/shims/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.72.3
    wanted: 0.72.3
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

Example of usage:

`

    if (IS_ANDROID) {
      await WifiManager.reScanAndLoadWifiList();
      await WifiManager.isRemoveWifiNetwork(ssid);
    }

    await WifiManager.connectToProtectedSSID(
      ssid,
      password ?? null,
      false,
      false,
    );

    if (IS_ANDROID) {
      await WifiManager.forceWifiUsageWithOptions(true, {
        noInternet: true,
      });
    }

`

My problem is that, when the password entered is incorrect, the error that comes back is the following:

[[Error: Network not found or network request cannot be fulfilled.]]

Instead, an error should return due to the password entered being invalid.

Copy link

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community attention? This issue may be closed if no further activity occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant