refactor: this should fix foreground exception as well

This commit is contained in:
Valeri Gokadze
2025-03-16 10:24:29 +04:00
parent 44c1dfcf47
commit 24be2e72f1
2 changed files with 5 additions and 2 deletions

View File

@ -85,7 +85,8 @@
<!-- AudioService -->
<service android:name="com.ryanheise.audioservice.AudioService"
android:foregroundServiceType="mediaPlayback"
android:exported="true">
android:exported="true"
tools:ignore="Instantiatable">
<intent-filter>
<action android:name="android.media.browse.MediaBrowserService" />
</intent-filter>
@ -93,7 +94,8 @@
<!-- MediaButtonReceiver -->
<receiver android:name="com.ryanheise.audioservice.MediaButtonReceiver"
android:exported="true">
android:exported="true"
tools:ignore="Instantiatable">
<intent-filter>
<action android:name="android.intent.action.MEDIA_BUTTON" />
</intent-filter>

View File

@ -224,6 +224,7 @@ Future<void> initialisation() async {
androidNotificationChannelName: 'Musify',
androidNotificationIcon: 'drawable/ic_launcher_foreground',
androidShowNotificationBadge: true,
androidStopForegroundOnPause: false,
),
);