Fixed ForegroundServiceStartNotAllowedException when song ended on Android 12.
This was due to Android 12's foreground service restrictions.
This commit is contained in:
parent
21a2014385
commit
a78100c0ea
3 changed files with 12 additions and 2 deletions
|
@ -262,6 +262,7 @@
|
|||
android:enabled="true"
|
||||
android:exported="true"
|
||||
android:label="@string/app_name"
|
||||
android:foregroundServiceType="mediaPlayback"
|
||||
tools:ignore="ExportedService">
|
||||
<intent-filter>
|
||||
<action android:name="android.media.browse.MediaBrowserService" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue