Skip to content

Cannot refuse to start and then start again and allow  #7

@riderx

Description

@riderx

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions