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.

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:

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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
sbellvercommented, Jul 20, 2018

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.

0reactions
tripflexcommented, Jul 19, 2018

@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 OR getConnectedBSSID ? Can you try with just one at a time and see what it says?

Read more comments on GitHub >

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

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