Skip to main content

Posts

Showing posts with the label Push Kit

How to Implement Push Kit in HarmonyOS for Background Notifications

  HarmonyOS NEXT has permanently dropped the Android Open Source Project (AOSP) compatibility layer. Consequently, Google Mobile Services (GMS) and Firebase Cloud Messaging (FCM) are unsupported natively. Applications migrating to HarmonyOS that rely on background payloads, silent updates, or push notifications will fail silently if FCM remains in the codebase. To maintain background communication, developers must implement HarmonyOS Push Kit. As the primary Firebase alternative Huawei provides, Push Kit integrates directly with the HarmonyOS microkernel and power management subsystem to deliver messages without requiring a persistently active application process. This guide outlines the architectural shift and provides the production-ready code to migrate backend and client services to Huawei Push Kit. Why FCM Fails on HarmonyOS NEXT FCM relies on the Google Play Services daemon, a highly privileged background process that maintains persistent TCP/IP sockets with Google's cloud ne...