Hi, 3ZS
Here is files for you, 3ZS
BackgroundStartRecording.mov : video for using this project
AugRecorder.zip : Xcode Project
https://www.dropbox.com/sh/5rrrs9jeqzgo9tu/AABCqe31KqJhhsS4EVuMLnBla?dl=0
# Run This Project on Any iPhone with iOS 12.4 or iOS 13 beta for iOS 13.1 beta
## Execute Summary
when .inactive : AVAudioRecorder.record() got true
when .background : AVAudioRecorder.record() got false
on SettingsViewController.swift L26~30
## prepare
1. Play Music For create Player and begin Background Mode Audio
- play button : Recorder Tab - bottom left
2. Record(PH) for create recorder
- record(PH) button : Recorder Tab - middle right
3. pause player and recorder
- recorder pause button : middle left
- player pause button : bottom left
4. Setup RemoteCommand for recording
- turn on using RemoteCommand switch
- Setting Tab - using RemoteCommand switch
## try Recording when .inactive
1. show Control Center - swipe TopRight Edge down on iPhone X
2. touch 'prev track' button
- got: true - recorder.record() result
## try Recording when .background
1. exit Application - swipe Bottom Edge up on iPhone X
- now home screen
2. show Control Center - swipe TopRight Edge down on iPhone X
- now show control center 'AugRecorder' with active prevTrack button
3. touch 'prev track' button
- got: false - recorder.record() result
---------- Debug Console Logs ----------
## prepare
2019-09-02 13:50:55 +0000 set audio session: soloAmbient ( , , ) ==> playback ( , , ) in 0.0005
2019-09-02 13:51:02 +0000 set audio session: playback ( , , ) ==> playback ( , , ) in 0.0003
2019-09-02 13:51:04 +0000 set audio session: playback ( , , ) ==> playback ( , , ) in 0.0006
2019-09-02 13:51:07 +0000 set audio session: playback ( , , ) ==> playAndRecord ( HFP, SPKR, A2DP) in 0.2391
recorder.record() true
## try Recording when .inactive
recorder() ==> true
## try Recording when .background
recorder() ==> false