UnifiedPush and Public ntfy.sh: Why Push Notifications Fail on Android Without Google Services
Developers of a messenger operating in a region where Google services are unavailable faced the familiar problem of replacing FCM. The standard open-source answer is UnifiedPush, which splits delivery among the app, the application server, and a distributor that maintains a connection to a push server. The team implemented this approach in June using the popular ntfy distributor paired with the public ntfy.sh instance.
One and a half months later, user complaints about missing notifications prompted an examination of production logs. Over a 36-hour window the server recorded 100 successful deliveries against 507 responses with code 507 (Insufficient Storage), 351 with code 429 (Too Many Requests), and 69 with code 400 (Bad Request). Failures had been present since the feature launch; they simply went unnoticed on always-connected test devices.
The 507 errors stem from a deliberate design choice in ntfy: when visitor-subscriber rate limiting is enabled, a UnifiedPush topic must have an active subscriber before any message can be published. The official ntfy client from Google Play uses Firebase for instant delivery and only maintains a persistent WebSocket when the F-Droid build is used. In regions without Google services the client never registers a subscriber, so every server POST receives an immediate 507 and the message is discarded rather than queued.
Code 429 responses arise because rate-limit buckets are attached to the subscriber’s IP address, not the sender. Mobile carriers place hundreds of users behind a single NAT address; a single group message can exhaust the shared 60-request bucket and cause subsequent deliveries to fail for unrelated users sharing the same IP. Many endpoints alternated between 429 and 507 within a single day, producing the intermittent behavior reported by users.
Endpoints pointing at updates.push.services.mozilla.com returned 400 because the server implements the WebPush specification (RFC 8030), which requires a TTL header. The original implementation omitted the header, assuming ntfy behavior would apply to every endpoint. The team now sends a minimal WebPush-compliant request containing Content-Type, TTL, and Urgency headers for all destinations.
Purchasing a paid ntfy.sh plan does not resolve the problem. Both the subscriber-existence check and the rate-limit logic operate on the recipient side; elevating the sender’s quota has no effect. The developers therefore deployed a self-hosted ntfy instance with visitor-subscriber-rate-limiting disabled, a generous burst limit of 200 requests, and an exempt host list that includes the backend address.
Even a private push server leaves users with the burden of installing and configuring a separate distributor application. To remove this friction the team implemented an embedded distributor directly inside the messenger. The component consists of a BroadcastReceiver that answers REGISTER requests and a foreground service maintaining a WebSocket to the private server. The WebSocket reconnect logic includes a “since” parameter so cached messages are delivered after network interruptions.
Two device-only bugs surfaced during live testing. Re-registration generates a fresh topic, yet the service continued listening on the old topic until an explicit comparison was added. Closing an obsolete socket triggered an onClosed handler that scheduled a duplicate reconnect, resulting in duplicate notifications; a generation counter now prevents the second connection from processing events.
Finally, the push WebSocket must traverse the same anti-censorship tunnel used by the rest of the application. Because OkHttp caches the route at client creation time, the service recreates the HTTP client whenever the tunnel state changes, ensuring notifications remain available even when the primary domain is blocked.
Related articles
MTS Mobile Exit Selectively Drops TLS Connections to Hetzner, Apple, Microsoft and Other Providers
Measurements from two separate runs on 29 and 30 November show that a single MTS mobile exit belonging to AS30881 (TENSOR) silently drops connections after large ClientHello messages to 18 out of 144 tested addresses. The affected destinations include Hetzner, OVH, DigitalOcean, Vultr, Contabo, Akamai-hosted Apple and Microsoft addresses, plus several other major clouds and CDNs. The same addresses remain reachable from a second MTS segment (AS48176), from MegaFon, and from a Frankfurt control point. The pattern matches an address-list filter rather than congestion, because neighboring prefixes from the same providers stay unaffected and the drop occurs at a consistent byte threshold of roughly 34-36 KB. Tests with plain HTTP on one Cloudflare address produced identical behavior, confirming that TLS is not required. Researchers emphasize that the measurements cover only one specific MTS exit and do not prove nationwide deployment or involvement of TSPU equipment.
Russian Networks Exhibit HTTPS and VPN Disruptions After 16KB of Data Transfer
Developers from Red Atlas have documented a traffic restriction affecting connections from certain Russian networks to foreign hosting providers. TCP connections establish normally and TLS handshakes complete successfully, yet data flow stops after the first 16,384 bytes of decrypted content. The issue was observed consistently across all tested addresses of Hetzner, Vultr, DigitalOcean, Contabo, and OVH when routed through MTS AS30881. Standard connectivity checks such as port scanning may still return positive results, masking the limitation from basic diagnostics. Researchers note that the 16KB threshold aligns with the maximum size of a single TLS record, suggesting a content-filtering mechanism that inspects decrypted traffic. A comparable filtering approach was previously reported by Cloudflare in June 2025. Red Atlas introduced a specialized test using oversized TLS ClientHello messages to distinguish this behavior from server-side failures.
Russian ISP MTS Blocks TLS Data Transfers to Foreign Hosts After 16KB
A new network filtering mechanism has been detected on MTS network AS30881 that interrupts TLS connections to overseas hosting providers once roughly 16,384 bytes of application data have been received. The interference allows the TCP handshake and TLS handshake to complete normally, after which the connection simply stalls without RST or FIN packets. Red Atlas researchers confirmed the behavior on all tested addresses belonging to Hetzner, Vultr, DigitalOcean, Contabo and OVH when accessed through this specific network. The same test produced no interruptions from other Russian mobile and datacenter networks including MTS AS48176, MegaFon and Timeweb. The effect matches earlier observations reported by Cloudflare in June 2025 and appears to be implemented via deep packet inspection that drops or ignores subsequent packets after a volume threshold. A lightweight Python probe using oversized ClientHello messages with padding extension has been released to allow independent verification of the filtering boundary.
Replacing Names with [PERSON_1] Before Sending Contracts to External LLMs: Does This Qualify as Anonymization Under Russian Law?
Russian organizations frequently need to analyze multi-page contracts containing personal data such as full names, passport details, INN, and phone numbers using external large language models. Simply replacing names with placeholders like [PERSON_1] may not meet the legal threshold for anonymization if the remaining context still allows identification of individuals. Roskomnadzor Order No. 140, effective since September 1 2025, outlines specific methods including identifier introduction, semantic modification, decomposition, shuffling, and array transformation that must be evaluated together. Companies must assess whether the processed query alone or combined with other data available to the provider could lead to re-identification. The correspondence table linking labels to original values must remain strictly inside the organization and separate from the processed data. Additional checks are required for repeated mentions in appendices, job titles, company names, exact amounts, and dates that could link back to public procurement records or court cases.