Skip to main content
Answer

RCPurchases's purchasePackage should return userCanceled = yes?

  • October 20, 2021
  • 1 reply
  • 87 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’.

This post has been closed for comments

1 reply

tina
RevenueCat Staff
Forum|alt.badge.img+10
  • RevenueCat Staff
  • 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’.