Code:
audioHandler = await AudioService.init(
builder: () => AudioPlayerHandler(),
config: const AudioServiceConfig(
androidNotificationChannelId: 'com.ryanheise.myapp.channel.audio',
androidNotificationChannelName: 'Audio playback',
androidNotificationOngoing: true,
androidStopForegroundOnPause: true,
),
);
Desired behaviour:
notification is persistent and can't be swiped away
when playback is paused, notification can be swiped away
Actual behaviour:
- notification can always be swiped away