'Is there any way to keep playing haptics when the screen is locked?

This is not for an App Store app, so "creative" solutions welcome.

I'd like to keep haptics playing when the screen is locked.

I always get this though:

Stop Handler: The engine stopped for reason: 1
Audio session interrupt

I've added audio as a background mode so it's surprising to me that I'm getting the "audio session interrupt" as a stop reason, rather than, say, applicationSuspended.

Has anyone solved this problem?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source