Possibly dumb question, but...
On Android I thought this was what a foreground service was intended to do, to chuck out a notification that persisted for the duration of the foreground service and that the service continued to run when the app is backgrounded. The sort of thing you'd use for downloads or to run a media player.
Anyone?