Skip to content

bug: Android Flickering on Resume. #298

@buhleryesco

Description

@buhleryesco

Bug Report

Capacitor Version

💊   Capacitor Doctor  💊 

Latest Dependencies:

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

Installed Dependencies:

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

[success] Android looking great! 👌

Plugin Version

▲   💊   Capgo Doctor  💊
│
●   App Name: Mobile Test App
│
●   App ID: app.outsystems.yescodev.MobileTestApp
│
●   App Version: 
│
●   Web Dir: dist
│
●   OS: darwin Darwin Kernel Version 24.6.0: Mon Jul 14 11:30:30 PDT 2025; root:xnu-11417.140.69~1/RELEASE_ARM64_T6020
│
●   Node: v22.21.1
│
●   Installed Dependencies:
│
●     @capgo/cli: 7.71.6
│
●     @capgo/capacitor-screen-orientation: 8.1.5
│
●     @capgo/camera-preview: 8.0.10
│
●     @capgo/capacitor-video-thumbnails: 8.1.1
│
◇  Latest Dependencies:
│
●     @capgo/cli: 7.71.6
│
●     @capgo/capacitor-screen-orientation: 8.1.6
│
●     @capgo/camera-preview: 8.0.10
│
●     @capgo/capacitor-video-thumbnails: 8.1.3```

### context(s)
<!--
Please change the value acording to your context
-->
```md
ManualModel: false
AutoMode: false
CapgoCloud: false
OnPremise: false

Platform(s)

Android Samsung A16

Current Behavior

On start toBack: true and aspectRatio: '4:3'. I have UI below and above where the camera preview is with a black background. When the camera goes to the background and then back to the foreground it flickers black and white. When I toggle some of the UI that is below the camera preview it will stay there even after I toggle it off. Does not happen on iOS or when I put toBack: false.

Expected Behavior

No flickering when resuming camera, UI does not get stuck above or below the camera preview when it has an aspectRatio.

Other Technical Details

npm --version output:

node --version output:

pod --version output (iOS issues only):

Additional Context

I appreciate you making the change earlier for the start flickering problem. I am trying to work on a PR for this right now, but thought I'd make an issue in case others are able to fix it better than I can.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions