purchases-flutter icon indicating copy to clipboard operation
purchases-flutter copied to clipboard

[Customer Center] presentCustomerCenter() does not work on ios

Open MaximilianFlechtner opened this issue 9 months ago • 3 comments

‼️ Required data ‼️

Do not remove any of the steps from the template below. If a step is not applicable to your issue, please leave that step empty.

There are a lot of things that can contribute to things not working. Having a very basic understanding of your environment will help us understand your issue faster!

Environment

  • [x] Output of flutter doctor
[✓] Flutter (Channel stable, 3.27.1, on macOS 15.3.1 24D70 darwin-arm64, locale en-US)
[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/to/macos-android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[!] Android Studio (not installed)
[✓] Connected device (4 available)
[✓] Network resources

! Doctor found issues in 3 categories.
  • [x] Version of purchases-flutter -> purchases_flutter: ^8.6.1
  • [x] Testing device version e.g.: iOS 15.5, Android API 30, etc. -> IOS Simulator IOS 18.3
  • [ ] How often the issue occurs- every one of your customers is impacted? Only in dev?
  • [ ] Debug logs that reproduce the issue
  • [ ] Steps to reproduce, with a description of expected vs. actual behavior Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)

Describe the bug

I implemented the new Customer Center feature in our app using RevenueCatUI.presentCustomerCenter(). On an Android emulator, it works as expected. However, on my iOS Simulator and physical iPhone, nothing happens when the button is pressed. There is no error message, no UI appears, and no logs indicating any issue.

I also tested the app via TestFlight, and the issue persists—pressing the button does nothing. The implementation follows the official documentation.

Code snippet:

onPressed: () async {
  await RevenueCatUI.presentCustomerCenter();
}

MaximilianFlechtner avatar Mar 18 '25 09:03 MaximilianFlechtner

👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!

RCGitBot avatar Mar 18 '25 09:03 RCGitBot

Hi @MaximilianFlechtner - are you running your app via VSCode, or Xcode? If you've used the former, can you run it in Xcode and share all logs? I just tested this with your SDK / Flutter version and it's working properly for me:

https://github.com/user-attachments/assets/674e8af5-fa2f-4c52-bca4-5f06ddce2777

Jethro87 avatar Mar 20 '25 17:03 Jethro87

I have the same problem but in React Native. It seems to be a problem only if you try to run it in a modal. If outside of modal it works. Also does not not look good on iPad, broken navigation 😞

zcardapp avatar Mar 22 '25 22:03 zcardapp

Hi @zcardapp @MaximilianFlechtner I'm very sorry about the delay on this reply. We've been auditing our ticketing system and found that your ticket was never resolved. Are you still experiencing this issue on the most recent version of our SDK 9.8.0?

HaleyRevcat avatar Oct 14 '25 18:10 HaleyRevcat

Hi @zcardapp @MaximilianFlechtner, As we haven't heard back from you, I'll go ahead and close this issue. Please feel free to create a new one or contact support if you have any questions or would like to report an issue. 🚀

mawr92 avatar Nov 07 '25 18:11 mawr92