Designing a generative music system for iOS, using OpenFrameworks, I’d need to provide a mode in which the user could listen the music produced by the application when:
- the device is locked
- the user uses another application
Some applications like BLOOM, or alarm clock, works like that and propose to users a switch to enable/disable this feature.
Any tips for that ?
Playing Background Audio
Apple reference “Playing and Recording Background Audio”
Ensuring That Audio Continues When the Screen Locks
For enabling/disabling this feature I found Activating and Deactivating Your Audio Session, I haven’t tried it myself, but it looks like what you need.