Skip to content
This repository has been archived by the owner on Jun 16, 2023. It is now read-only.

[Android] Failed to save image file #1845

Closed
1 of 3 tasks
pavermakov opened this issue Oct 10, 2018 · 2 comments
Closed
1 of 3 tasks

[Android] Failed to save image file #1845

pavermakov opened this issue Oct 10, 2018 · 2 comments

Comments

@pavermakov
Copy link

Bug Report

To Do First

  • Did you try latest release?
  • Did you try master?
  • Did you look for existing matching issues?

Related Modules

  • RCTCamera(deprecated)

Platforms

  • Android

Versions

  • Android: 6.0.1
  • iOS:
  • react-native-camera: 0.10.0
  • react-native: 0.51.0
  • react: 16.0.0

Description

Recently I've switched targetSdkVersion from 22 to 23 and the camera stopped working. I've added a check for permissions, which partially brought camera back to life, however, I am no longer able to take pictures. I get warnings like the one on the screenshot, failed to save image file. I know that RCTCamera is already deprecated, but at this point, upgrading the package is not an option (I am terrified of breaking something). Does anyone have any suggestions how to solve this issue?

screenshot_20181010-140822

@SimonErm
Copy link
Collaborator

Because you're RCTCamera i am not sure if this will be fixed. Can you post Logcat-Logs? Which permissions do you check?

@pavermakov
Copy link
Author

@SimonErm I've just solved my issue. I had to ask permissions for camera and storage. I used react-native-permissions for that.

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

No branches or pull requests

2 participants