Skip to content

[BUG] shareSingle function doesn't work on Android #136

@lampealex888

Description

@lampealex888

🐛 Bug Description

The shareSingle function from the useShare hook works correctly on iOS but fails on Android. Instead of sharing to the intended app, it redirects users to the Google Photos app.

📋 Steps to Reproduce

  1. Open the "Recipes by FoodSocial" Mini on any Android device
  2. Navigate to any recipe details page
  3. Click the Instagram share button (has the Instagram icon)
  4. Observe that you're redirected to Google Photos instead of Instagram Stories

🤔 Expected Behavior

After hitting the share button it should open Instagram Stories with the generated recipe card image as a sticker, the same as the behavior on iOS.

😕 Actual Behavior

On Android, clicking the Instagram share button opens the Google Photos app instead of Instagram Stories.

📸 Screenshots/Videos

Screen.Recording.2025-11-24.at.5.15.02.PM.mov

🌍 Environment

✔ System information loaded

  System:
    OS: macOS 26.0
    CPU: (8) arm64 Apple M1
    Memory: 168.30 MB / 8.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.10.0 - /Users/alexlampe/.nvm/versions/node/v20.10.0/bin/node
    Yarn: 1.22.22 - /Users/alexlampe/.nvm/versions/node/v20.10.0/bin/yarn
    npm: 10.2.3 - /Users/alexlampe/.nvm/versions/node/v20.10.0/bin/npm
    Watchman: 2025.11.10.00 - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.16.2 - /opt/homebrew/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 25.0, iOS 26.0, macOS 26.0, tvOS 26.0, visionOS 26.0, watchOS 26.0
  IDEs:
    Android Studio: 2024.2 AI-242.23726.103.2422.12816248
    Xcode: 26.0/17A324 - /usr/bin/xcodebuild
  Languages:
    Java: 21.0.5 - /Users/alexlampe/.sdkman/candidates/java/current/bin/javac
  Packages:
    @shopify/shop-minis-cli: 0.0.212
    @shopify/shop-minis-react: 0.4.2
    react: 18.2.0

📝 Additional Context

The data I'm passing in is as follows

const shareData = {
    social: Social.InstagramStories,
    appId: 'xxx',
    stickerImage: 'xxx',
    attributionURL: 'xxx',
    backgroundTopColor: 'xxx',
    backgroundBottomColor: 'xxx',
}

await shareSingle(shareData)

Bug Report Checklist

Please ensure you have:

  • Searched for existing issues before creating this one
  • Provided clear steps to reproduce the issue
  • Included relevant environment details
  • Added screenshots or videos if they help explain the issue
  • Used the [BUG] prefix in the title

Metadata

Metadata

Assignees

No one assigned

    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