Article

Architecture: How notifications work on mobile phones

Topic: SoftwarePublished October 4, 2019
No ratings yet569 viewsSign in to rate
Current smartphones have more power than many computers from just a few years ago, and also have the fundamental characteristic that they are always connected to the Internet, either through 3G or WiFi. That makes them very suitable for all types of applications that consume information in real time (or "almost-real"), as well as the implementation of services that imply the consumption of very up-to-date information (news, notices, messages, etc ...). For example, Windows Phone has 3 types of notifications : the "Toast" (Toast) that are informative messages that jump at any time, those of "Tiles" (Tile) that are displayed directly in the rectangles that represent your application in the cover, and the "raw" that are received directly in the application when it is running. Battery problem If you develop mobile applications and want to show the user real-time warnings and information dependent on external information, you have basically two theoretical ways of achieving it : 1. If the user is using your application you can show the notifications that you think are convenient, because you have their full attention. If the information is generated on the Internet (as usual) you can make periodic calls to an external service that returns the necessary information (for example, to show you the latest news or whatever you consume). 2. If your application is not being used, you could have a kind of service or “daemon” running on the phone that periodically checks, and if there is something to notify that shows a dialogue, update an information panel or directly launch your application. 3. The problem with the first strategy is that the user can not be using your application all the time, so you can not depend on this to show alerts, which by definition, can arrive at any time, when they are necessary. The second strategy has a fundamental problem: no mobile operating system worth its salt will allow you to do something like that. PUSH notification services Since it is clear that phones allow it: how is it possible to achieve this functionality in one of our applications if we have the previous limitation? Well, all operating systems work in a similar way, and to achieve this they use a distributed architecture in which your phone, its service and a service that you must program have to work in harmony. This is what I will explain theoretically in this post. Although each OS has its own characteristics, they all work in a similar way, so understanding this push notification architecture will help us work on any platform. There are three pieces of the mechanism that must work together for the entire system to work: the terminal, a service we must program and a notification service provided by the manufacturer (Microsoft or Apple). The service itself will be responsible for launching notifications when necessary (we will have to program it, of course), using the manufacturer's service as an intermediary.

Further reading

Further Reading

4 total

Article

Organizations are starting to scale their cloud native operations. And as they do, the inefficiency of managing dozens of isolated clusters has become an evident problem. As the clusters continue to sprawl, businesses must unite diverse workloads onto shared infrastructure. This is because companies need better resource utilization and centralized governance among other things. But it is imperative to remember that going from a single tenant to a multi-tenant environment need

March 12, 2026

Article

It has been for everyone to see the short product lifecycles and a pressing need for rapid technical scalability that have come to define the modern startup ecosystem. For early-stage companies, the challenge is no longer just conceptualizing a solution. But they must also carry it out with enough precision to withstand high market volatility and fierce competition. We know that internal teams concentrate on core business strategy and fundraising. That still leaves us with th

March 12, 2026

Article

In today’s regulated and data-driven environments, organizations are under constant pressure to ensure that temperature and environmental conditions remain within defined limits. Even small fluctuations can result in product loss, compliance violations, or operational downtime. As a result, many facilities are moving away from manual checks and standalone sensors and adopting comprehensive environmental monitoring solutions instead. An environmental monitor provides rea

March 5, 2026

Article

Organizations have come to rely heavily on large amounts of data in today's competitive markets. But to what end? For starters, to inform strategic decisions and power machine learning models. It goes without saying that the value of these digital assets is completely dependent on the accuracy of the underlying data. So, when data is fragmented or inconsistent across departments, you will obviously have inaccurate reporting and operational inefficiencies at your hands. This c

March 2, 2026