|
|
|
|
|
by raggi
925 days ago
|
|
I campaigned for this for years when working on fuchsia, to folks in fuchsia and android folks. We lack a unixy API for “the radio is now on, do your reconnects or send your queues” The platforms always hoist this stuff higher level and it rarely works that well. Platform leads insist the platform will do it better, but it’s never true. They also insist that persistent connections are battery killers - which for sure they _can be_ but done properly (and with the aforementioned api) it can work just fine. Establishing such an API in the Linux and BSD ecosystem would make a good step toward encouraging its exposure in the places we need it. |
|
It is definitely the case that doing such things efficiently, especially in the world of evolving radio technology, is beyond the absolutely overwhelming majority of mobile app developers, and apparently in many cases even very good ones. It also seems unlikely that having the platform poll a process to then do the push (as your API would, in response to something like a radio burst about to be made) is a good idea, as keeping the app process asleep if at all possible is distinctly preferable, and most devs struggle with what is a real time constraint. An API to achieve this is definitely buildable though, it does require offloading a certain amount to the platform.
The truth is centralized services are strategic for the platform owner these days, so any technical argument for them will really be on that basis.