New Version Release
In this new version of the app, several key improvements and fixes have been implemented to ensure better performance and compliance with the latest Google Play policies and Android 14+ restrictions.
Key Changes:
-
Android 14+ Compatibility:
- The logic for starting foreground services has been updated to comply with Android 14 restrictions. Now,
FOREGROUND_SERVICE_MEDIA_PLAYBACK
is used instead ofFOREGROUND_SERVICE
, ensuring proper music service operation in compliance with Google Play's guidelines.
- The logic for starting foreground services has been updated to comply with Android 14 restrictions. Now,
-
Service Lifecycle Management:
- A tracking variable (
isServiceBound
) has been added to ensure the service is only unbound when it's actually bound, preventing theService not registered
error when trying to unbind an unregistered service.
- A tracking variable (
-
System Bar Management (Status Bar and Navigation Bar):
- Improved handling of system bars in Android 14+, utilizing
WindowInsetsController
for more efficient control of status and navigation bars.
- Improved handling of system bars in Android 14+, utilizing
-
Foreground Notification Fix:
- Ensured that the foreground notification for music playback is correctly handled in recent Android versions (Android 14+). The app now checks for the appropriate permission before starting the foreground service.
-
Background Service Permission Management:
- Added permission checks for
FOREGROUND_SERVICE_MEDIA_PLAYBACK
to ensure the app correctly requests and uses necessary permissions on Android 14+ before starting the foreground service.
- Added permission checks for
Additional Technical Details:
- Added the
FOREGROUND_SERVICE_MEDIA_PLAYBACK
permission to theAndroidManifest.xml
to comply with Google Play's policies for music apps. - Fixed several issues related to service binding and unbinding, preventing
IllegalArgumentException
errors.
Full Changelog: V1.8.6...V1.8.8