Yeah, I think it might make more sense to consider building this into the
OS itself using the approach that you've described below.  I'm CCing
dev-b2g which is probably a better discussion forum for that.

Thanks!

--
Ehsan
<http://ehsanakhgari.org/>


On Tue, Apr 29, 2014 at 3:12 PM, Alejandro García <[email protected]>wrote:

> I can assure that in my device (a Samsung Galaxy Mini Plus), which is a
> low profile device, wi-fi matic makes me to save battery since I didn't
> always remember to turn the wifi off when I went out from home or the work
> office. And that was quite more battery wasting than having wi-fi matic
> installed for sure.
>
> In Firefox OS, since it's a lower profile smartphones OS, I think it
> should have itself a button with the option of auto turning on/off the
> wifi. If the device could turn on the wifi when I arrive home (e.g), and
> even turn off the 3g meanwhile the wifi is connected, and then turn off the
> wifi and turn on the 3g when I go out home (and every place when I usually
> connect to wifi), this would make Firefox OS an intelligent OS.
>
> And since to do this you should only learn the operator network cell
> identifiers of the places where the smartphone is connected to wi-fi, you
> shouldn't waste battery since this data is something the system is always
> reading.
>
> I don't know if I explained myself well (English is not my language
> sorry). And I don't know about programming so I don't know how complicated
> would be this. I only want you to know the idea since I think it could be
> something very interesting to implement in the future.
>
> Congratulations for your work!! Firefox is becoming a great OS!! ;)
>
>
>
>
> 2014-04-25 23:58 GMT+02:00 Ehsan Akhgari <[email protected]>:
>
> The current way of turning wifi on or off is through the settings API (see
>> <https://developer.mozilla.org/en-US/docs/WebAPI/Settings> for example)
>> but the settings API is only available to certified apps.
>>
>> But for the use case of something such as wifi matic, it seems to me like
>> there is a chicken and egg problem.  The goal of this application as I
>> understand it is to save battery, is that correct?  It seems like in order
>> to support something like this as an app, you would need an app which
>> always runs in the background, which is probably not a good idea if you
>> care about the battery life and if you're on memory constrained devices
>> that we're targeting in Firefox OS, and I'm not sure if we have a good
>> solution to enable that use case even if there was a way for a privileged
>> app to turn wifi on or off.
>>
>> Cheers,
>> Ehsan
>>
>>
>> On 2014-04-25, 8:38 AM, Alejandro García wrote:
>>
>>> I have writed in the [email protected] about
>>> implementic an
>>> app like Wi-Fi matic in Firefox OS. They have said me to bring this here
>>> since there is no Web API’s to access the WiFi state of the device or
>>> change the WiFi state (en/disable it).
>>>
>>>
>>> Wi-Fi matic is an open source android app that activates and deactivates
>>> Wi-Fi of your device automatically depending on your location, helping
>>> you
>>> to save battery and consumption of data through your operator network. It
>>> DOES NOT USE GPS nor Android network location services, as it uses your
>>> operator network cell identifiers (cell tower identifiers) as the
>>> relative
>>> location where you are, and where your Wi-Fi networks are. Wi-Fi Matic
>>> detects and learns automatically locations where you are connected to a
>>> Wi-Fi.
>>>
>>>
>>> It would be nice to have something like Wi-Fi matic in Firefox OS.
>>>
>>>
>>> I have speak about it in this bug too:
>>> https://bugzilla.mozilla.org/show_bug.cgi?id=994566
>>> _______________________________________________
>>> dev-webapi mailing list
>>> [email protected]
>>> https://lists.mozilla.org/listinfo/dev-webapi
>>>
>>>
>>
>
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to