Skip to content

bug: Android: Camera not showing #216

@graphefruit

Description

@graphefruit

Version

7.6.1-alpha.3

Platform(s)

  • Android
  • iOS
  • Web

Current behavior

On Android the camera does not show up.

You'll see a screenshot here:

Image

Expected behavior

Camera on Android shows up.

Reproduction

https://github.com/graphefruit/Beanconqueror/

Steps to reproduce

I could write a sample APK for you to install if needed.
Feature branch: camera-preview

Other information

What I'm trying to achieve:
I'm having a live graph for pressure and weight data from bluetooth devices for a coffee extraction.
The camera shall display the portafilter, to have a look at the graph and at the same time also the extraction phase on the portafilter.

What I've noticed:
I see it very shortly flashing when starting the camera, and then nothing.
I've tried it on Android 11 and Android 14 (Pixel 2XL, Pixel 4A5G)

Adding to this I tried it with the https://github.com/capacitor-community/camera-preview plugin.
Here the camera on iOS and Android works, but when using on iOS, the pixel-ratio is differently and the x/y setting is not working correctly.

Also I've played a lot with different settings, with front/rear camera, deleting the whole dom, so just the DIV with camera preview was showing, adding everywhere background-color:transparent without success

I had before 7.6.0 and tried it also with the current alpha but that didn't fix it.

The coding lines can be found here:
https://github.com/graphefruit/Beanconqueror/blob/241c8a46837049b4afae980e08ed21692e6f38a7/src/app/brew/brew-flow/brew-flow.component.ts#L503

Thank you so much for this wonderful plugin and the time and effort put into this!
Have a great cup of coffee
Lars

Capacitor doctor

npm run cap doctor

beanconqueror@2.0.0 cap
capacitor doctor

💊 Capacitor Doctor 💊

Latest Dependencies:

@capacitor/cli: 7.4.3
@capacitor/core: 7.4.3
@capacitor/android: 7.4.3
@capacitor/ios: 7.4.3

Installed Dependencies:

@capacitor/cli: 7.4.2
@capacitor/core: 7.4.2
@capacitor/ios: 7.4.2
@capacitor/android: 7.4.2

[success] iOS looking great! 👌
[success] Android looking great! 👌

Before submitting

  • I have read and followed the bug report guidelines.
  • I have attached links to possibly related issues and discussions.
  • I understand that incomplete issues (e.g. without reproduction) are closed.

Fastest way to fix this issue

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions