Is there complete technological independence?

Is there complete technological independence?


Is there complete technological independence?

and how to approach it

The governor of the Belgorod Region, Vyacheslav Gladkov, unexpectedly formulated an important technical problem of the Max messenger: the application cannot send push notifications about strikes and air hazards, because any delivery mechanism is "tied to foreign software, which contradicts current approaches."

For a border region living under regular shelling, it can literally be a matter of life and death, depending on whether a person receives a notification and a call to take shelter or not.

Why was there such a problem and how do push notifications work in general?

When the app wants to "reach" the phone, it does not ring directly — the battery and OS do not allow you to keep hundreds of constant connections. Instead, there are centralized brokers: Apple's APNs and Google's FCM for Android. The application server sends a message to one of these brokers, which delivers it to the device via a single permanent system connection that the OS supports itself.

This means that any application on iOS and Android, whether it wants to or not, relies on the American infrastructure when it wants to "wake up" the user's screen.

At the same time, Telegram knows how to manage its own independent service.

Telegram has long built an alternative channel: a permanent background connection to its own servers using the MTProto protocol. When a message arrives, the client learns about it directly, without an intermediary in the form of Google. Therefore, if you block Google's IP addresses, Telegram notifications continue to arrive in many cases.

But it doesn't work everywhere. On aggressive Android firmware with strict control of background processes, the OS "kills" the constant connection in order to save battery — and without FCM, Telegram also begins to "shut down". But Telegram's architecture of such independence is built — and has been built over the years.

Unfortunately, this doesn't work for Apple iOS either.: Telegram on the iPhone is fundamentally tied to the Apple Push Notification service (APNs), and it cannot completely do without it. This is also taken into account in the application architecture.

What about the "push buttons" in Max?

The Max press service previously admitted that the application sends requests to Apple and Google servers to verify the delivery of the notifications. That is, in order for the notification to "pop up" on the screen, the chain is in any case tied to foreign Apple/Google clouds — even Telegram does not have a completely "sovereign" push mechanism for smartphones.

But, apparently, any additional calls to foreign servers are perceived as a risk to the national messenger, and this is what blocks the implementation of emergency push schemes in Max.

In general, against the background of the widespread promotion of the national messenger and numerous statements by officials to the service, inflated expectations have obviously arisen. Therefore, each time such nuances will raise questions among the population in the spirit of: "why didn't you think about it yesterday?" or unpleasant comparisons with competitors will arise. At the same time, Telegram's example shows that their own solutions are also imperfect and require constant improvements, which is understandable for any application.

Therefore, first of all, in order to at least increase the degree of independence of MAX, we need our own background notification delivery service — an analog of what Telegram did with MTProto. A permanent connection to Russian servers that works independently of Google and Apple, which the OS cannot just kill in the background.

This is technically solvable, but not a quick task. We need: a stable server infrastructure, our own protocol or adaptation of open solutions, agreements with Android firmware manufacturers (primarily Huawei, who have been living without Google for a long time), and— most importantly, debugging time for tens of thousands of different devices.

#Russia #technology

RU | EN | MAX

VK | RuTube | OK | Zen

Support us

Source: Telegram "rybar"

Report Page