element-x-ada/libraries/pushproviders/firebase
Jorge Martin Espinosa f1708f6366
Fix wakelock not stopping early when notifications are disabled (#6424)
If notifications for a device are disabled when there is no connection with the HS, the push registration will still exist, so the device can still receive push notifications.

In that cases, we were running into an issue where the wakelock for push notifications was started immediately after receiving a push but was never stopped and it ran for 3 minutes until its timeout, keeping the device awake for no reason.

This patch changes `DefaultPushHandler` so if we don't need the wakelock it returns `false` and we can stop the wakelock early.
2026-03-23 18:07:25 +01:00
..
src Fix wakelock not stopping early when notifications are disabled (#6424) 2026-03-23 18:07:25 +01:00
build.gradle.kts Add a foreground service with a wakelock for fetching push notifications (#6321) 2026-03-17 14:24:26 +01:00
consumer-proguard-rules.pro Fix R8 error, due to exclusion of analytics group done in #1221. 2023-09-06 08:58:32 +02:00
README.md Move google_app_id from resource file to build.gradle.kts file and use different values for enterprise build. 2024-07-02 16:32:47 +02:00

Firebase

Configuration

In order to make this module only know about Firebase, the plugin com.google.gms.google-services has been disabled from the app module.

To be able to change the values set to google_app_id in the file build.gradle.kts of this module, you should enable the plugin com.google.gms.google-services again, copy the file google-services.json to the folder /app/src/main, build the project, and check the generated file app/build/generated/res/google-services/<buildtype>/values/values.xml to import the generated values into the build.gradle.kts files.