0xf104a / NextcloudServices

Android app to send notifications from Nextcloud without using GCM(Google cloud messaging)
GNU General Public License v3.0
63 stars 11 forks source link

Service causes massive battery drain #56

Closed dic1911 closed 1 year ago

dic1911 commented 1 year ago

Nextcloud app (3.24.1) drains battery whenever the service is activated, it worked fine before, so I'm suspecting the latest update(1.0-beta15) broke something.

0xf104a commented 1 year ago

Hello. Thankyou for reporting this bug. Likely the reason is updating API request to latest version, though I would profile the app and try to fix this issue

0xf104a commented 1 year ago

Seems that GitHub misunderstood context of commit message and closed issue, so re-opening issue

0xf104a commented 1 year ago

@dic1911 Hello. Have you tried downgrading the app? Did it help? I have profiled app and it does not seem that it does significantly more requests. I also used older API which was in previous version but it did not helped(if you would like to test it you may download version with old APIs from here)

0xf104a commented 1 year ago

It seems that issue is gone after latest Nextcloud app update and fix of #58 Though due to bug which was fixed #58 you may need manually change update frequency via "Update frequency" parameter