microg / microg/GmsCore

Cloud Messaging can't wake up Whatsapp for notifications while the phone is on battery saver

Open
#3,703 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
14.6k
Forks
3.2k
PR merge metrics
PR metrics pending

Description

**Describe the bug**
Even though microg does get the messages, Whatsapp doesn't show the notifications for the messages until battery saver is disabled. I was able to get a temporary fix - allowing WhatsApp unrestricted data/wifi usage while on battery saver. However, this shouldn't be necessary - and I'm unsure if this affects other apps, as I've not been able to test. [This issue](https://github.com/microg/GmsCore/issues/1527) mentions a fix by pushing some files, but these appear to be missing.

**To Reproduce**
Steps to reproduce the behavior:
1. Set up MicroG and turn on Cloud Messaging
2. Turn on battery saver
3. Ask someone to send me a Whatsapp message
4. Nothing happens

5. Turn off battery saver mode
6. Messages arrive all at once.

**Expected behavior**
Messages should arrive instantly.

**Screenshots**
Not applicable

**System**
Android Version: 16
Custom ROM: LineageOS 23.2 Miami

**Additional context**
Add any other context about the problem here.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing Cloud Messaging with Android 16, LineageOS 23.2 Miami, WhatsApp, and battery saver enabled. Trace how background message delivery behaves under battery saver; done when WhatsApp notifications arrive promptly without granting unrestricted data or Wi-Fi access.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, firebase
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.