TylerWilliamson / BatteryNotification

Creates a persistent notification to see battery information at a glance!
https://play.google.com/store/apps/details?id=com.ominous.batterynotification
GNU General Public License v3.0
33 stars 4 forks source link

notificación not updating #4

Closed paulle closed 2 years ago

paulle commented 2 years ago

The notification is often not updating, hangs at certain percentage, even when the is much lower, it shows the same value. Same thing showing charging or not charging. Android 11, Sony Xperia 5

TylerWilliamson commented 2 years ago

I have been experiencing this issue myself and I have been working on tracking down and mitigating the issue. I hope to include a fix in the next version.

TylerWilliamson commented 2 years ago

I believe I have fixed this in Version 1.4.3. This version is available on GitHub, on Google Play Store for open beta testers, and on F-Droid when they next update their repo. Please test and let me know if you are able to replicate your issue. Otherwise, I will close the issue in about a week. Thanks!

paulle commented 2 years ago

Will wait till the new version is on f-droid an when report. Thank you

Is it possible to display the temperature aside your battery symbol in the status bar?

Gesendet von ProtonMail mobile

-------- Original-Nachricht -------- Am 27. Apr. 2022, 05:58, Tyler Williamson schrieb:

I believe I have fixed this in Version 1.4.3. This version is available on GitHub, on Google Play Store for open beta testers, and on F-Droid when they next update their repo. Please test and let me know if you are able to replicate your issue. Otherwise, I will close the issue in about a week. Thanks!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

TylerWilliamson commented 2 years ago

Version 1.4.3 is now available on F-Droid. Could you please test and see if you can replicate the issue?

paulle commented 2 years ago

I've v1.43 it seems the issue it's solved. Thank you

Gesendet von ProtonMail mobile

-------- Original-Nachricht -------- Am 27. Apr. 2022, 05:58, Tyler Williamson schrieb:

I believe I have fixed this in Version 1.4.3. This version is available on GitHub, on Google Play Store for open beta testers, and on F-Droid when they next update their repo. Please test and let me know if you are able to replicate your issue. Otherwise, I will close the issue in about a week. Thanks!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

paulle commented 2 years ago

I've to correct me. It's otherwise hanging, even after a restart of the phone.

TylerWilliamson commented 2 years ago

Could you take a screenshot of the app? I want to see which settings you are using. Also, are you able to take a bug report when you notice the notification not updating?

paulle commented 2 years ago

Screenshot_20220501-210045 Screenshot_20220501-205942

TylerWilliamson commented 2 years ago

Thank you, that is very helpful. It would appear that both the recurring task every minute (via AlarmManager) and the instant update service are both not functioning. I will investigate

paulle commented 2 years ago

Thank you

Gesendet von ProtonMail mobile

-------- Original-Nachricht -------- Am 1. Mai 2022, 21:10, Tyler Williamson schrieb:

Thank you, that is very helpful. It would appear that both the recurring task every minute (via AlarmManager) and the instant update service are both not functioning. I will investigate

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

TylerWilliamson commented 2 years ago

Could you check if the service is running? You should be able to list the running services on your phone by going to "Developer Options" and selecting "Running Services". If the service is not running, your phone OS or a "task killer" app may have killed it. Unfortunately, if the service is killed, it may also kill the repeating task.

You can try:

  1. Whitelist BatteryNotification in any "Task Killer" app
  2. Whitelist BatteryNotification in "Battery Optimization" in Settings
  3. Disable the "Update the notification immediately" - this will disable the service and rely on only the recurring task. The notification will update every minute, but there will be no service that can be killed.

I will also investigate making the recurring task's receiver "remote" which should make it less likely to be killed

paulle commented 2 years ago

Don't find this option in developer options

Gesendet von ProtonMail mobile

-------- Original-Nachricht -------- Am 1. Mai 2022, 21:29, Tyler Williamson schrieb:

Could you check if the service is running? You should be able to list the running services on your phone by going to "Developer Options" and selecting "Running Services". If the service is not running, your phone OS or a "task killer" app may have killed it. Unfortunately, if the service is killed, it may also kill the repeating task.

You can try:

  • Whitelist BatteryNotification in any "Task Killer" app
  • Whitelist BatteryNotification in "Battery Optimization" in Settings
  • Disable the "Update the notification immediately" - this will disable the service and rely on only the recurring task. The notification will update every minute, but there will be no service that can be killed.

I will also investigate making the recurring task's receiver "remote" which should make it less likely to be killed

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

paulle commented 2 years ago

I tried it now with this configuration Screenshot_20220508-153931 Seems to work, but I will watch for a little more time. But the battery symbol in the status line is gone. It would be nice to have the battery symbol in te status with the temperature to have warning when the battery gets hot.

paulle commented 2 years ago

Screenshot_20220508-161203 I found this option and choosed no optimization, I reactivated notification immediately for getting back the symbol in the status line. Will see if it works now.

paulle commented 2 years ago

It seems to work well with the optimisation off. Android 11 Sony Xperia 5

TylerWilliamson commented 2 years ago

Excellent. Glad to hear it's working well with the optimization disabled. I'll refer to this thread if other users have similar issues.

paulle commented 2 years ago

Screenshots

Gesendet von ProtonMail mobile

-------- Original-Nachricht -------- Am 1. Mai 2022, 16:42, Tyler Williamson schrieb:

Could you take a screenshot of the app? I want to see which settings you are using. Also, are you able to take a bug report when you notice the notification not updating?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>