TGViewer
ArkGram ArkGram @arkgram_hmos · 1.21K subscribers
Post #95 1.57K
🔔 Update on ArkGram push notifications

Over the past few weeks, I have been working to implement real remote push notifications in ArkGram — notifications that arrive even when the app is closed or suspended, without relying on local notifications or keeping the app running in the background.

Telegram does not provide direct integration with Huawei Push Kit. Therefore, we had to build an intermediary infrastructure:

• ArkGram registers a Web Push subscription with TDLib.
• Telegram’s servers send encrypted events to our relay hosted on Hetzner.
• The relay processes each event and forwards a remote notification through Huawei Push Kit.
• When the notification is tapped, ArkGram opens the corresponding conversation and message directly.

This architecture is working. Messages are synchronized in real time with Telegram’s servers, and notifications arrive even when ArkGram is closed.
However, we encountered several barriers imposed by the HarmonyOS ecosystem:

🧪 Debug profile limitation

During development, the HAP must be signed with a debug profile issued by AppGallery Connect. This profile contains a list of authorized devices identified by their respective UDIDs.

Therefore, push notifications currently work only on the registered test device. It is not possible to distribute the same debug build to any device while preserving the identity required by Huawei Push Kit.

📦 Hokit limitation

Hokit does not directly install ArkGram’s HAP when it is signed with the release profile. Its automatic signing option can install it, but replaces the certificate and profile during installation.

As a result, the app receives a different identity (runtimeAppIdentifier), and Huawei Push Kit refuses to issue a token. In practice:

• The debug profile works, but only on devices whose UDIDs are registered.
• The release profile supports any device, but must be distributed through the official channel.
• Hokit’s automatic re-signing allows the app to be installed, but breaks push notifications.

🔕 Silent notifications

Although remote notifications are working, Huawei currently classifies them as marketing/informational messages. Because of this, they may arrive silently, without sound, vibration, a banner, or a status bar icon — even when all these options are enabled in the system settings.

Instant messaging applications need to receive the appropriate classification/authorization from Huawei so that their messages are treated as important chat notifications. This approval is tied to Huawei’s official review and publication process.

📊 Other development limitations

During the testing phase, Huawei also limits each project to approximately 1,000 push messages per day. Once this limit is reached, notifications stop arriving and resume only after the quota is renewed.

🚧 Where the barrier lies

For external HAP installations, we have reached the maximum allowed by Huawei’s environment. There is no change to ArkGram or the server that can safely bypass the cryptographic identity requirements, the UDID requirement of debug profiles, or Huawei’s notification classification.

The definitive solution is to publish ArkGram on the Huawei AppGallery. Official distribution allows the release profile to be used without re-signing, preserves the identity recognized by Push Kit, and makes real push notifications available to all users.

Then, the app will continue without notifications. Local notifications are bad, not worth it.
  • 👍 22
  • 😢 2
  • 🗿 2
More from @arkgram_hmos
  1. Sep 22, 2026It’s been two weeks and it’s still pending review. I think they’ve forgotten about me. 💀…
  2. Sep 8, 2026Submitted to AppGallery Connect, let's wait and see. I'm not going to get my hopes up too…
  3. Sep 7, 2026News about ArkGram Push Notification ✅ What is already working • Real remote push notifica…
  4. Aug 28, 2026ArkGram-v2.1 •Changelog: •New: - Added support for multiple accounts. - Added an exclusive…
  5. Aug 28, 2026A new ArkGram-exclusive feature is coming: Password Chat Lock. You can now lock conversati…
  6. Aug 27, 2026ArkGram-v2.0.1 •Changelog: •New: - Added "Save Message" option to the context menu - Large…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →