ExoPlayer
ExoPlayer copied to clipboard
PlayerNotificationManager creted 2 notifications after restart device
ExoPlayer Version
2.18.1
Devices that reproduce the issue
sumsung s22+ android 12
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
Not tested
Reproduction steps
build this app https://github.com/ivan12312312/test grand permisions start app play any music in app restart app after restart device viewed 2 notificationis(bug)
Expected result
view one notification or not view notication
Actual result
after restart device viewed 2 notificationis
Media

Bug Report
- [ ] You will email the zip file produced by
adb bugreportto [email protected] after filing this issue.
On Android 13, It does crash the app.
android.app.RemoteServiceException: Bad notification for startForeground: java.lang.RuntimeException: invalid channel for service notification: Notification(channel=AN Me...
On Android 13, It does crash the app.
android.app.RemoteServiceException: Bad notification for startForeground: java.lang.RuntimeException: invalid channel for service notification: Notification(channel=AN Me...
I found out that, now we need to register/create a notification channel manually instead of using the notification from ExoPlayer to start the service.