Open Ilyosxon2721 opened 2 years ago
I met some equipment resumeOthersPlayersAfterDone android = true not to take effect
Any solution?
Add in your manifest the following permissions:
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" />
Also add this service in your manifest too:
<service
tools:node="replace"
android:name=".notification.NotificationService"
android:foregroundServiceType="mediaPlayback"
android:enabled="true"
android:exported="true">
</service>
Add in your manifest the following permissions:
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/> <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" />
Also add this service in your manifest too:
<service tools:node="replace" android:name=".notification.NotificationService" android:foregroundServiceType="mediaPlayback" android:enabled="true" android:exported="true"> </service>
Done this but still facing the issue.
What is your android version ?
What is your android version ?
android 12, but users with android 12+ are facing this issue repeatedly.
3.0.5
My version : 3.0.5
Lib Version
My version :
Android
Platform :
Describe the bug
android.app.ForegroundServiceStartNotAllowedException: Service.startForeground() not allowed due to mAllowStartForeground false: service com.imusic.host/com.github.florent37.assets_audio_player.notification.NotificationService
Small code to reproduce