The purpose of this pull request is to fix ios app crash when you set invalid audio url.
Description: If you set invalid assetAudio link for setAlarm method it handles in try - catch block and calls result(FlutterError.init(...)). But it doesn't stop execution of setAlarm. And at the next unwraping let currentTime = self.audioPlayers[id]!.deviceCurrentTime app crashes.
The purpose of this pull request is to fix ios app crash when you set invalid audio url.
Description: If you set invalid assetAudio link for
setAlarm
method it handles in try - catch block and callsresult(FlutterError.init(...))
. But it doesn't stop execution ofsetAlarm
. And at the next unwrapinglet currentTime = self.audioPlayers[id]!.deviceCurrentTime
app crashes.