takrishna
takrishna

Reputation: 5002

How to connect to a wifi network if SSID is known using phonegap & HTML5?

I want to connect my application to a known wifi network/ssid whenever I open my application. Even if the phone is currently connected through 3G or any other wifi network.

Will this be possible using only phonegap/html5?

Upvotes: 2

Views: 2247

Answers (1)

caiocpricci2
caiocpricci2

Reputation: 7798

No, it's not possible. Check this question for reference. If you go trough the phonegap documentation there isn't anything that lets you do that out of the box.

You need to build a custom plugin that will let you do that. You need to use the native Wifi Manager class, and if you just Google it there are loads of guides on how to create a phonegap plugin!

Upvotes: 2

Related Questions