-
Notifications
You must be signed in to change notification settings - Fork 147
Description
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:
- Add ApplePayButton to your app
- run the app on physical device
- navigate to the payment screen in the production app.
- 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
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.