WifiWizard2: Plugin returns "Not avaiable" error
Prerequisites
Check all boxes if you have done the following:
- Checked that your issue isn’t already filed: https://github.com/tripflex/wifiwizard2/issues
- Make sure you fill out the Issue Type below
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
- Build Ionic application and install on a device running iOS 13.1.3
- Connect to any wifi network on the iOS device
- 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
About this issue
- Original URL
- State: open
- Created 5 years ago
- Reactions: 4
- Comments: 26
@arsenal942 @andreareidel @digaus Call
WifiWizard2.getConnectedSSID()will throwNot availableerror on device ofiOS 14 Beta.The following is the console log:
package.json
Then, I tried to switch the npm package to digaus
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.