capacitor-community / capacitor-community/camera-preview

storeToFile: true Does not return a path on Android

Open
#312 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
227
Forks
185
PR merge metrics
No merged PRs in 30d

Description

Using:

```ts
CameraPreview.start({
position: 'rear',
disableAudio: true,
storeToFile: true,
toBack: true,
})

const { value: sample } = await CameraPreview.captureSample({ quality: 100 });
```

The `value` is a Base64 string ONLY on android, on iOS it returns the file path

Version information
- Android API 32
- @capacitor-community/camera-preview 5.0.0
- @capacitor/ios, android, core 5.2.2

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.