Current state (v1.6.0)
playInBackground + notificationTitle/notificationText provide a MediaStyle
notification on Android. However:
- iOS has no lock screen / control center presence at all — no Now Playing
info, no remote commands, and playback does not resume after interruptions
(phone calls, alarms)
- Android notification has no
MediaSessionCompat — so it does not appear
in the media carousel / lock screen on Android 11+, and Bluetooth/headset
media buttons are not handled
- No artwork (thumbnail) on either platform
Proposal
- iOS:
MPNowPlayingInfoCenter + MPRemoteCommandCenter (play/pause),
and auto-resume after interruptions via the shouldResume hint
- Android: back the existing notification with a
MediaSessionCompat
(media carousel, lock screen, media buttons)
- Both: optional artwork, e.g.
notification={{ title, description, thumbnail }}
Current state (v1.6.0)
playInBackground+notificationTitle/notificationTextprovide a MediaStylenotification on Android. However:
info, no remote commands, and playback does not resume after interruptions
(phone calls, alarms)
MediaSessionCompat— so it does not appearin the media carousel / lock screen on Android 11+, and Bluetooth/headset
media buttons are not handled
Proposal
MPNowPlayingInfoCenter+MPRemoteCommandCenter(play/pause),and auto-resume after interruptions via the
shouldResumehintMediaSessionCompat(media carousel, lock screen, media buttons)
notification={{ title, description, thumbnail }}