Reputation: 5002
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
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