Skip to main content
Solved

RCPurchases's purchasePackage should return userCanceled = yes?

  • Oct 20, 2021 11:44 AM UTC
  • 1 reply
  • 443 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
This post has been closed for comments

1 reply

tina
RevenueCat Staff
Forum|alt.badge.img+10
  • RevenueCat Staff
  • Answer
  • Oct 27, 2021 5:18 PM UTC

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’.