Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Heavy battery drain. #167

Closed
DatGizmo opened this issue May 31, 2016 · 6 comments
Closed

Heavy battery drain. #167

DatGizmo opened this issue May 31, 2016 · 6 comments

Comments

@DatGizmo
Copy link

Setup:

Android 5.1 (CM12.1)
GSMCore 0.2.2 from microG, as a replacement for Google play services. (/~https://github.com/microg/android_packages_apps_GmsCore)
I recently switched to the microG apps/services instead of the Google play ones.
On my mobile there is a heavy battery drain by matrix.

As long as the event-service from the vector app is not running, everything is fine.
When I receive a message, the app is woken via the GCM, and the event-service is started.
Now, for me it seems, that the event-service is used, which then keeps waking up the mobile network, causing the heavy battery drain.

Is there some kind of fallback to the notification service if there are issues with GCM?

Note: On my tablet, I don't have this issue with the same setup. But as the tablet is losing the Wifi connection sometimes during the day, I'm not sure if the two devices are comparable.

I've also reported this issue to the "matrix-android-console" as I'm facing the same issue there. (matrix-org/matrix-android-console#24)
But got no response there.

@ylecollen
Copy link
Contributor

When GCM is disabled, the android client fallbacks to a polling thread which drains battery
We never tested with GSMCore so we don't the application behaviour.

@DatGizmo
Copy link
Author

DatGizmo commented Jun 1, 2016

Do you think this bug is probably more on your side, or is it more on the end of GSMCore?
Just asking, if I should also fill a bug on the GSMCore repo.

If I can provide you with some more detailed debug info. I'll gladly do so, but I might need some guidance, because I've not done this.

@ylecollen
Copy link
Contributor

ylecollen commented Jun 1, 2016

I really don't know which is responsible ?

Could you send a bug report ?

Our client has been designed to work with GCM. If GCM is not found, a polling thread is launched.

@DatGizmo
Copy link
Author

DatGizmo commented Jun 1, 2016

I'll opened an issue at android_packages_apps_GmsCore.
Will keep you updated.

@abrahimladha
Copy link

@DatGizmo If you get this working please let me know. Im trying to get vector-android pushed into Fdroid
https://f-droid.org/forums/topic/vector-a-polished-matrix-chat-client/

ylecollen pushed a commit that referenced this issue Jun 14, 2016
1- #167
Heavy battery drain.

2- should improve the GApps / No GApps device management : the background sync and disable notifications should have the right behahviour.
@ylecollen
Copy link
Contributor

6b6190b

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants