Skip to main content
Solved

RCPurchases's purchasePackage should return userCanceled = yes?

  • 20 October 2021
  • 1 reply
  • 60 views

Forum|alt.badge.img+2

Hi, 

This question relates to interaction with StoreKit UIAlertViews. When a user start a purchase and the system shows “Sign-in” alert, if user taps ‘Cancel’ button, purchasePackage sets ‘userCanceled’ to true. However if user taps ’Cancel’ when “Subscription Terms” alert (next alert after ‘Sign-in’ alert)  is displayed, then RevenueCat doesn’t set ‘userCanceled’ to true, it returns a valid error object with message “There was a problem with the App Store.” Shouldn’t userCanceled be true as well here?

Best answer by tina

Hey @Stefan 

The modals within the app come from Apple directly and is not something that RevenueCat controls. The userCanceled field should just indicate that the payment page was dismissed, not the ‘Subscription Terms’.

View original
Did this post help you find an answer to your question?

1 reply

tina
RevenueCat Staff
Forum|alt.badge.img+10
  • RevenueCat Staff
  • 338 replies
  • Answer
  • October 27, 2021

Hey @Stefan 

The modals within the app come from Apple directly and is not something that RevenueCat controls. The userCanceled field should just indicate that the payment page was dismissed, not the ‘Subscription Terms’.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings