question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Plugin returns "Not avaiable" error

See original GitHub issue

Prerequisites

Check all boxes if you have done the following:

Issue type

Select all that apply

  • Bug
  • Enhancement
  • Task
  • Question
  • Other

Description

Plugin returns returns “Not avaiable” error on iOS 13 when getConnectedSSID() is called, same application was working just fine on iOS 12. Also checked the app permissions and updated dependencies, but problem persists.

Steps to Reproduce

  1. Build Ionic application and install on a device running iOS 13.1.3
  2. Connect to any wifi network on the iOS device
  3. Trigger the getConnectedSSID() method from anywhere in the code (make sure promise gets called after device is ready) e.g.
WifiWizard2.getConnectedSSID()
      .then(result => alert(JSON.stringify(result)))
      .catch(error => alert(JSON.stringify(error)))

Expected behavior: The method should resolve successfully and result should be shown in the alert message

Actual behavior: The method does not resolve and the catch callback is called, the message shown in the device is “Not available”

Reproduces how often: 100%

Versions

  • iPhone 7
  • iOS 13.1.3
  • WifiWizard2 3.1.1

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:4
  • Comments:26

github_iconTop GitHub Comments

1reaction
angelofancommented, Jul 7, 2020

@arsenal942 @andreareidel @digaus Call WifiWizard2.getConnectedSSID() will throw Not available error on device of iOS 14 Beta.

The following is the console log:

2020-07-07 15:04:45.414730+0800 SmartHome[77847:3122999] Supported interfaces: (
    en0
)
2020-07-07 15:04:45.430937+0800 SmartHome[77847:3122999] [] nehelper sent invalid result code [1] for Wi-Fi information request
2020-07-07 15:04:45.431060+0800 SmartHome[77847:3122999] en0 => (null)
2020-07-07 15:04:45.431224+0800 SmartHome[77847:3122999] THREAD WARNING: ['WifiWizard2'] took '64.452148' ms. Plugin should use a background thread.
2020-07-07 15:04:45.447312+0800 SmartHome[77847:3122999] ERROR: Not available

package.json

"cordova-plugin-wifiwizard2": "git+https://github.com/tripflex/WifiWizard2.git"

Then, I tried to switch the npm package to digaus

"cordova-plugin-wifiwizard2": "git+https://github.com/digaus/WifiWizard2.git"

Still throws this error.

I have checked the location authorization and I have connected a WiFi hotspot.

This may be fatal, because Apple will release the official version of its iOS 14 system in the near future.

If I still need to provide any information, I can provide it immediately.

0reactions
cf1991commented, Jun 28, 2022

iPhone 13pro,IOS 15.4.1,use getCurrentPosition() return “Not available”,can you help solve this problem?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fixing “This Plugin is Not Supported” error in Windows 10
1. Enable Flash in Chrome. 2. Install the latest Flash player; Update Flash:Clear the browsing data in Chrome. 3. Use another browser to...
Read more >
WordPress Plugin Troubleshooting: What To Do When Your ...
Double-click the wp-content folder to open it. Right-click or Control+click the plugins folder, and select Rename. Rename the plugins folder to ...
Read more >
How to Fix the HTTP Error 503 Service Unavailable - Kinsta
Start with the first folder, and rename it to anything you like. Check your website to see if the error is gone. If...
Read more >
Solve Problems With Plugins – WordPress.com Support
Check if the issue still exists. If the error is no longer present, the plugin(s) you deactivated was causing the conflict. Determine which...
Read more >
How to Fix WordPress 404 Not Found Error [8 Easy Solutions]
Note: If it's not resolved, simply change the myplugins folder name to plugins and move to the next troubleshooting method. If it's resolved, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found