startHeadlessService method
This should be called after initiating AudioPlayer only if you want to listen for notification changes in the background.
Only for iOS (not implemented on macOS, android, web)
Implementation
Future<void> startHeadlessService() async {
return _callWithHandle(
'startHeadlessService',
_backgroundCallbackDispatcher,
);
}