Skip to content

Share Screenshot is failing/hanging in Android Play Store production builds for some users #667

Description

@Ashutosh-Tiwari

Issue

Share Screenshot is failing/hanging in Android Play Store production builds for some users.

Observed Behavior

  • On tapping Share, the Android share sheet does not open immediately.
  • In affected cases, it opens after ~1 minute.
  • Initially a blank/empty filename is shown, then later the correct filename appears.
  • When selecting WhatsApp, it keeps loading and sometimes sends a blank message / blank attachment.
  • On some devices, Android shows behavior similar to intent resolver not responding.
    • In debug / Firebase App Distribution builds, screenshot share works as expected.

Current Implementation

  • React Native
  • react-native-view-shot used for screenshot capture via captureRef
  • react-native-share used for opening the Android share sheet
  • Screenshot captured as PNG
  • Filename generated using uuidv5

Current Flow

  1. User taps Share
  2. App captures screenshot using captureRef
  3. Returned file path is passed to react-native-share
  4. Android share sheet is opened

Why This Seems Production-Specific

  • Works in debug builds
  • Fails in Play Store production build
  • Suggests stricter Android app-to-app file sharing behavior, release timing optimization, or resolver differences in prod

Impact

  • Users are unable to share screenshot reliably
  • Share CTA appears broken or delayed
  • Poor UX in production for receipt/screenshot sharing

JS Changes Already Considered / Tried

  • capture as PNG
  • add delay before capture
  • prevent double tap
  • normalize file path
  • pass MIME type image/png
  • verify temp file exists before sharing

These JS-only fixes may reduce timing issues but may not fully solve the production Android resolver/share problem.

Can anyone help me on this issue?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions