I did a lot of research and couldn't find a proper solution for my problem. I want to make an iPhone app that plays a custom sound even when it is in background at a certain time (alarm clock app). I did a research on the following points:
- Local Notification -> no sound longer than 30 seconds allowed
- Background Audio -> Apple refuses Apps that don't continuously run music in background, also there is no way to trigger sound when receiving a local notification
Is there any way to achieve this, i mean there has to be one.. i found dozens of apps in the app store that support playing sounds from your library even in background, and not only 30 seconds long (this one for instance: https://itunes.apple.com/us/app/background-alarm-clock-free/id723243753?mt=8)
If possible in swift.