iOS: Error Domain=NSOSStatusErrorDomain Code=-50
D4n1378472 opened this issue · comments
D4n1378472 commented
I receive the following errorMessage when i try to play a sound on my iPhone 7:
ERROR: CANNOT PLAY MUSIC IN BACKGROUND. Message from code: "Error Domain=NSOSStatusErrorDomain Code=-50 "(null)""
But the app never is in the background.
`
AudioPlayer _audioPlugin = AudioPlayer();
await _audioPlugin.play(
'assets/audio/test.mp3',
isLocal: true,
);
`
Are there any solutions for this?