Question: is it possible to keep wifi awake too?
Closed this issue · 3 comments
Hi again Adam,
My app fetches some data from a remote server at regular (30 mins) intervals. I attempted using your plugin to keep everything running even when the device goes into sleep mode. However, it appears that just acquiring a partial wakelock is not sufficient in this case, as it turns out that the wifi will still stop after 15 minutes or so.
Is there a way to keep not only the CPU running, but the wifi as well? Or would you be willing to add this as an extra feature to your plugin?
Cheers, Allard
I actually have no clue about how to do that. Someone else made this plugin for work because we needed the gps to keep tracking for an app we made. All I did was upgrade it to phonegap 3.0 so that it could be installed with the phonegap cli, but I'll keep this issue open as a feature request, and I'll accept pull requests if anyone wants to implement this.
Thanks Adam,
I found this WifiManager API at http://developer.android.com/reference/android/net/wifi/WifiManager.html, but unfortunately I don't have sufficient JAVA knowledge...
It would be a great enhancement to the plugin if someone could implement this functionality.
Thanks, I'll add it to the documentation as a potential contribution.