The Firebase Cloud Messaging (FCM) system generally excels at automatically adjusting heartbeat cycles based on network connectivity. This adaptation ensures efficient message delivery even when messages are infrequent. Illustration 303_5G and NCUWLAN in the provided image exemplify this auto-adjustment, demonstrating heartbeat cycles of 230s and 1070s respectively, both functioning smoothly.
However, when switching to mobile data, FCM apparently locks the heartbeat cycle to a fixed 1680 seconds. This fixed interval frequently leads to missed messages, requiring workarounds like FCM fix to manually adjust the heartbeat. Unfortunately, directly adjusting the heartbeat with FCM fix also modifies the cycle on Wi-Fi, forcing me to set it to the minimum Wi-Fi heartbeat (230s) to ensure consistent message reception across both networks. While this resolves the primary issue, it results in increased battery consumption.
To mitigate this predicament, I am investigating manual adjustments to the mobile data specific heartbeat cycle. Knowing the file responsible for this configuration would be immensely helpful. Could you guide me on which file governs the 1680s heartbeat cycle on mobile data?
This article is created by nurl and is licensed under the Creative Commons Attribution 4.0 International License.
All articles on this site, unless otherwise specified as reprints or sources, are either original works or translations by this site. Please ensure proper attribution before reprinting.