Skip to content

ApplePayButton doesn't appear in production #312

@youcef-mo

Description

@youcef-mo

Describe the bug
The ApplePayButton widget is not rendering or is unresponsive in the production build of the app. This issue, identified by the App Store review team, is preventing app submission. The button functions correctly in debug and development builds.

To Reproduce
Steps to reproduce the behavior:

  1. Add ApplePayButton to your app
  2. run the app on physical device
  3. navigate to the payment screen in the production app.
  4. the ApplePayButton widget does not appear or is not responsive to taps.

Expected behavior
Expected: The native Apple Pay button should render and, when tapped, should present the payment sheet.

Screenshots

Image

flutter doctor output
Flutter (Channel stable, 3.32.6, on macOS 15.5 24F74 darwin-arm64, locale en-DZ)
[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2025.1)
[✓] VS Code (version 1.102.0)
[✓] Connected device (3 available)
[✓] Network resources

Additional context
The issue is exclusive to the production environment.
The app was rejected by Apple, with the specific error: "unresponsive."
The payment flow works correctly in debug and development environments. This strongly suggests a misconfiguration related to production entitlements or certificates.

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