Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
riderx opened this issue Dec 2, 2021 · 1 comment
Open

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

riderx opened this issue Dec 2, 2021 · 1 comment

Comments

@riderx
Copy link
Contributor

riderx commented Dec 2, 2021

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
@riderx
Copy link
Contributor Author

riderx commented Dec 3, 2021

Fixed here : #8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant