Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
119
rated 0 times [  122] [ 3]  / answers: 1 / hits: 19517  / 11 Years ago, fri, july 19, 2013, 12:00:00

I need to get the SSID of the currently connected WiFi Network (if it is wifi). Is this possible?



I saw something on it here (http://www.w3.org/TR/system-info-api/#network), but I can't seem to get the code to run. Is there a library I need to import or is this just planned implementations?



I'm writing a phonegap application and need to know whether I should connect to a server locally or if I need to go remotely.



Thanks


More From » browser

 Answers
96

It is not possible as of this time. However PhoneGap does let you build plug-ins that will accomplish this task.



There is currently one available from HondaDai under the MIT license located at https://github.com/HondaDai/PhoneGap-WifiInfoPlugin.



** and it works beautifully. After I figured out how it works. His example on how to get the SSID that shows wifi.SSID as a variable is incorrect. It is actually wifi.activity.SSID as there are two JSON objects in the return and I wanted to access the one title activity.


[#76874] Thursday, July 18, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
irvingjamieb

Total Points: 743
Total Questions: 113
Total Answers: 128

Location: Suriname
Member since Sun, Jun 13, 2021
3 Years ago
;