Solved

RCPurchases's purchasePackage should return userCanceled = yes?

  • 20 October 2021
  • 1 reply
  • 57 views

Badge +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?

icon

Best answer by tina 27 October 2021, 19:18

View original

1 reply

Userlevel 5
Badge +10

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