Added support for background recordingby using background task on iOS