toupper/Wyler

Cannot refuse to start and then start again and allow

Opened this issue · 1 comments

if user refuse to allow recorder and user click again to start and allow recorder

        implementation.startRecording(saveToCameraRoll: true, errorHandler: { error in
            debugPrint("Error when recording \(error)")
        })

I get this error the second time :

2021-12-02 20:28:40.423860+0000 App[6134:9790803]  [ERROR] -[RPScreenRecorder startCaptureWithHandler:completionHandler:]_block_invoke_2:482 failed to start due to error: Error Domain=com.apple.ReplayKit.RPRecordingErrorDomain Code=-5801 "The user declined application recording" UserInfo={NSLocalizedDescription=The user declined application recording}
2021-12-02 20:28:40.424106+0000 App[6134:9790237]  [ERROR] -[RPScreenRecorder startCaptureWithHandler:completionHandler:]_block_invoke:505 undefined completion handler

Fixed here : #8