Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS simulator checkoutl #887

Open
6 tasks
TimmyHung opened this issue Nov 28, 2023 · 9 comments
Open
6 tasks

iOS simulator checkoutl #887

TimmyHung opened this issue Nov 28, 2023 · 9 comments
Labels
bug Something isn't working

Comments

@TimmyHung
Copy link

TimmyHung commented Nov 28, 2023

‼️ 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

  • Output of flutter doctor
image
  • Version of purchases-flutter
    6.4.0

  • Testing device version e.g.: iOS 15.5, Android API 30, etc.
    iOS 17.0

  • 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 have follow the weather change example to create my own paywall.In Android Simulator everything works fine without any issue, but in iOS Simulator when I tried to call out customerInfo = await Purchases.purchasePackage(widget.offering.availablePackages[_selectedIndex]); I have to wait roughly 5 seconds to see checkout screen. And after I successfully send the payment in sandbox environment my code stucked, and another checkout screen appeared.So it is imposible to check if a user has checkout successfully.
I have record a video (https://streamable.com/q4vhpm).

Additional context ##=

@TimmyHung TimmyHung added the bug Something isn't working label Nov 28, 2023
@RCGitBot
Copy link
Contributor

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

@codykerns
Copy link
Member

Hey @TimmyHung, unfortunately in sandbox mode it's expected that it may take several seconds to see the Apple system payment dialog. When calling purchase, I'd recommend displaying an activity indicator showing the customer that something is happening in the background while the sheet loads. Once the payment completes, you can dismiss the indicator.

It seems like you are having another issue where you aren't seeing callbacks after the purchase completes - unfortunately, we'll need debug logs to investigate further. I'd recommend following our guide to getting debug logs enabled, and please send over the logs from app launch through when you've made the purchase: https://docs.revenuecat.com/docs/debugging

@TimmyHung
Copy link
Author

Hmm it kinda weird. I can receive callbacks after the purchase complete in real device(TestFlight not sandbox).
I also enable the debug log but I can't see any debug log, OS_ACTIVITY_MODE is not disabled.
https://streamable.com/rsqhwx

@Lazizbek97
Copy link

any news? Purchases.purchasePackage(package) compileted successfully in my case, but not returning anything. repeating payment screen again and again

@codykerns
Copy link
Member

@TimmyHung can you try running the app from Xcode directly to see logs?

@Lazizbek97 it sounds like you might be experiencing a different issue. I'd recommend opening a support ticket instead of here: https://www.revenuecat.com/docs/support-first-steps

@TimmyHung
Copy link
Author

TimmyHung commented Dec 8, 2023

@codykerns sure! here is the debug logs from Xcode directly(https://streamable.com/ze6xkk).
same source code as previous video.

@NachoSoto
Copy link
Contributor

Are you using a StoreKit config file on the simulator? Note that this is required. You can read more in our docs: https://www.revenuecat.com/docs/apple-app-store

@saulvh
Copy link

saulvh commented Dec 13, 2023

I'm having the exact same issue. Did you find a fix yet? @TimmyHung

@pj-hire
Copy link

pj-hire commented Jan 19, 2024

I'm having the exact same issue as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants