Hacker News new | ask | show | jobs
by sminchev 54 days ago
For development Android can be a nightmare. Especially, if you try to make a long-running app. Each OEM (Original Equipment Manufacturer) like Samsung, Honor, Xiaomi, etc has its way to keep the OS up and running, in good shape, performance and with low battery usage. To do this, they have mechanisms that stop applications that they might think are redundant: - if you use too much battery - they might kill it; - if you use too much CPU - they might kill it; - At night the devices goes to 'doze mode' - they might kill it; - It the app is not opened for a long time - they might kill it;

Some of the 'optimizations' you can disable/enable. Each device has its own menu and naming. But not all of them. And even if you make all configurations good, at some point it is possible an update of the OS to reset your configurations silently.

I don't know how it is in iOS, but in android, long running apps are not something that is 100% doable.

After I struggle for months with my app, I have my preferences for iOS right now. It might be difficult as well, but at least the manufacturer is only one. ;)