Error alert when use getConnectedBSSID getConnectedSSID functions
See original GitHub issue<!–
Have you read the plugins’ Code of Conduct? By creating an Issue, you are expected to comply with it, including treating everyone with respect: https://github.com/tripflex/wifiwizard2/blob/master/CODE_OF_CONDUCT.md
–>
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
Description
We use beta version for 3.0 from March. All works fine
Now, we need to recompile the app (ionic) and when we try to use WifiWizard functions ( getConnectedBSSID and getConnectedSSID) the app show an alert:
{"__zone_symbol__currentTask":{"type":"microTask","state":"notScheduled","source":"Promise.then","zone":"<root>","cancelFn":null,"runCount":0},"line":1233,"column":40,"sourceURL":"http://localhost:8080/var/containers/Bundle/Application/2FB59314-9A63-46F0-9F2C-7996AEBC19E2/Name.app/www/build/main.js"}
We start the project from zero (npm install, platform add, …)
Versions
From node_modules / wifiwizard2 / package.json: wifiwizard2@3.0.0 iOS
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Uncaught (in promise): TypeError: WifiWizard2. ...
Actual behavior: ERROR Error: Uncaught (in promise): TypeError: WifiWizard2.getConnectedSSID is not a function TypeError: WifiWizard2.
Read more >wifiwizard2
WifiWizard2. WifiWizard2 enables Wifi management for both Android and iOS applications within Cordova/Phonegap projects.
Read more >WifiWizard2 | Ionic Documentation
This does NOT return the BSSID if unable to obtain SSID (like original WifiWizard did) getConnectedBSSID ) · Same as above, except BSSID...
Read more >WifiWizard2
Trigger the getConnectedSSID() method from anywhere in the code (make sure promise gets called after device is ready) e.g.. WifiWizard2.getConnectedSSID() .then ...
Read more >cordova - How can I get WiFi Network information (SSID) in ...
function ssidHandler(s) { alert("Current SSID"+s); } function ... However, if like me you also need to use the device's Hotspot or Wifi ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi.
I need to restore previous code from git. Then, I have no errors.
Maybe is an issue with other plugin, or the order to install it, not sure.
@sbellver hmm this is weird, still having this issue i assume? I’m not really familiar with ionic, how to debug ionic, or decipher errors from ionic, but my first thought is what is located at:
"line":1233,"column":40
in
http://localhost:8080/var/containers/Bundle/Application/2FB59314-9A63-46F0-9F2C-7996AEBC19E2/Name.app/www/build/main.js
Does this show when you use either
getConnectedSSID
ORgetConnectedBSSID
? Can you try with just one at a time and see what it says?