I was trying to build a some sort of alarm app. But using content.sound
for notification sound is too restrictive. You cannot choose a file longer than 30s and also I think in practice only about 10s of the the sound is being played.
I need to play a sound at least 2mins long , when a local notification is recieved.
I tried to use content.sound
which can play a shorter sound. Sorry I am a beginner to swiftui and couldn’t find any solution for playing 2mins sound, like an alarm.
tazwar utshas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.