Skip to content

fix(android): prevent black screen on app launch - #2

Open
priyanshrv1-oss wants to merge 1 commit into
Androidfrom
capy/fix-android-black-screen
Open

fix(android): prevent black screen on app launch#2
priyanshrv1-oss wants to merge 1 commit into
Androidfrom
capy/fix-android-black-screen

Conversation

@priyanshrv1-oss

@priyanshrv1-oss priyanshrv1-oss commented Apr 11, 2026

Copy link
Copy Markdown
Owner

Description

This PR fixes three compounding causes of a black screen when launching the Android debug APK:

  • Splash screen timing: Disabled launchAutoHide and set launchShowDuration: 0 in capacitor.config.json, then added manual SplashScreen.hide() call in main.tsx after React renders to prevent premature dismissal
  • Error handling: Added ErrorBoundary.tsx component to catch and display React rendering errors instead of showing nothing
  • Debuggability: Enabled webContentsDebuggingEnabled in capacitor.config.json to allow Chrome DevTools inspection

Changes:

  • opennow-stable/capacitor.config.json — disable splash auto-hide, enable WebView debugging
  • opennow-stable/src/renderer/src/main.tsx — manually hide splash, wrap App in ErrorBoundary
  • opennow-stable/src/renderer/src/ErrorBoundary.tsx — new error boundary component

Open in Capy OPEN-2 · Auto

@priyanshrv1-oss priyanshrv1-oss added the capy Generated by capy.ai label Apr 11, 2026 — with Capy AI

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added 1 comment

Comment thread opennow-stable/capacitor.config.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

capy Generated by capy.ai

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant