Skip to main content

Command Palette

Search for a command to run...

Push notification vs Background daemon

Published
•View as Markdown

There are two kinds of background daemon in mobile OS.

One is real-time background daemon, like Android and Symbian do. All application are running in real-time in background. The pro of this way is the application can complete tasks in background, for instance, completing a webpage downloading. And the con is, this keep running application will consume lot of electricity. A certain example is QQ for Android, which always running and consume almost half electricity.

And in iOS, there is another method to implement the background tasks. In this way, all notifications send to applications are pushed to a central place, where name is Notification Center. Then those notifications are push to system daemon on the device, and the system daemon wakes up the application and dispatch the notifications to them.

In this way, there is only one daemon is running in background and just need to maintain one heart-beat connection. It greatly saves electricity consumption.

For me, I think the way iOS undertake is much better than Android.

More from this blog

写在新财年前

我不停的有重新开始博客写作的冲动。一直没有付诸行动的原因很多,总结一下,不外乎以下几点: 在当下的简中环境下,因为与中国内地仍有无数联系,我无法做到真正无所顾忌的在线袒露自己的真正观点。 在个人博客和推特之间无法取舍。个人博客确实较重,无法做到推特那样方便。而且据说推特在不久之后也会支持长推特,那就和个人博客更加没有区别了。但是推特上环境过于吵闹,让人无法静下心来输出观点。 懒。或许这才是最

Jun 30, 2023

Hashnode 做博客的一点感受

正在迁移自己的博客,从 Wordpress 到 Hashnode 。发现一些不满意,写在下面: 对标题要求太长。很多中文标题往往两三个字,三四个字即可。但是Hashnode要求至少六七个字符的长度,我经常还得给标题里添加语气废话来扩充长度,满足发布要求; 标题内不支持中英文混合中,英文字母全大写。会自动将标题内的英文字符变为首字母大写,非常讨厌!!! 文章URL是自动从文章标题中取词,但是如果有些文章是系列的,标题相同,只有标题末尾的序号不同,那么这些文章的URL居然是一样的!!!简直是笑话!...

Jul 1, 2022
达

达客宁

153 posts

江南有佳丽 生于帝王州

繁花未曾见 王谢纸上闻

茕茕影孑立 烟雨两凄迷

凭栏望楼台 四百寺安在