View Issue Details

IDProjectCategoryView StatusLast Update
0019496MMAUI (general)public2023-01-23 15:06
Reportermartin Assigned To 
PriorityurgentSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformAndroidOS-OS Versionall
Product Version2.0.0 
Target Version2.0.0Fixed in Version2.0.0 
Summary0019496: New option "Disable system battery optimization"
DescriptionBattery optimization causes several issues (suttering, stopping UPnP playback etc.)

There are three ways how to disable battery optimization.

1)Go to System/App & notifications/MediaMonkey/Battery/Battery optimisation
then tap the combo box at the top and change it to All app, then find MediaMonkey again from the list, tap it and then choose "Do not optimized"
In Android 13 there is also a way via AppInfo/Battery/ and user can directly tab on "Unrestricted"

Or we can add a new option e.g. to the "General" section called as in BubbleUpnp "Disable system battery optimization"

This option can be implemented in two ways:
2)A) Just like as in BubbleUpnp. It means using intent Settings.ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS
which redirects the user to "Battery optimization". However, the user still has to toggle through the list of apps, search for the app, and then select "Do not optimize". There is a lot of explaining what the user is actually supposed to do.

Or

2)B) use request Settings.ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS (requires "android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" protection level is normal so this is not problem).
This request directly asks a user to change battery optimization for MMA to be "Unrestricted".
This is the simplest way for users and I prefer it. See screenshot.









TagsNo tags attached.
Fixed in build1053

Relationships

related to 0019712 resolvedmartin Casting (UPnP) often stops (even with Pro) 
related to 0018045 newmartin Upnp playback with unstable connection 
related to 0019727 closedmartin Battery optimization status isn't displayed / updated 
related to 0019728 closedmartin Battery de-optimization doesn't work correctly subsequent to initial configuration 
related to 0019751 closedmartin Battery de-optimization doesn't work on some versions of Android 

Activities

martin

2022-10-25 16:06

developer   ~0069965

Screenshot_20221025-175751.png (43,015 bytes)   
Screenshot_20221025-175751.png (43,015 bytes)   

martin

2022-10-25 16:14

developer   ~0069966

The 2)B) Option will be visible only when the app is battery optimized(Cannot be used to re-enabled optimization).

martin

2022-11-15 15:40

developer   ~0070317

2)B) is implemented in build 1031 (Options/General).
Anyway text of the option should be updated to next build:
Disable system battery optimization -> Ignore system battery optimization
details -> Removes this app from battery optimization app list. Highly recommended for proper playing in
        background and when screen off.

rusty

2022-12-13 23:05

administrator   ~0070548

Re-opening since the issue is yet to be resolved.

martin

2022-12-15 19:59

developer   ~0070592

Text updated to:
Allow MediaMonkey to run in the background
This prevents Android from closing MediaMonkey when it is playing in the background.

Fixed in build 2.0.0.1053

rusty

2022-12-16 03:13

administrator   ~0070593

Documentation notes:
This setting can be used if playback stuttering is observed after MM has been running in the background for awhile, especially for network playback (casting, UPnP playback).
Note though, that according to https://developer.android.com/training/monitoring-device-state/doze-standby an app that has an active notification in the drawer shouldn't go into standby.

rusty

2023-01-16 01:49

administrator   ~0070917

Last edited: 2023-01-16 01:51

Verified 1060 for Android 9, 11, 12, 13. Leaving 'Resolved' for verification on Android 8.

Remaining issues are tracked at 0019727 , 0019728.

peke

2023-01-22 20:40

developer   ~0070968

Verified 1062 Android 8, 9, 10