Skip to main content
Solved

Why is MissingReceiptFileError thrown as an exception?


Forum|alt.badge.img+4

Not having receipts is a valid situation (If I use a blank account / device)
To me it seems like this situation should not throw an exception.

 

The fact that RC throws this error caught me a little off guard because

  • the getting started code samples do not handle this error
  • as I was testing on a physical device that had previously been used for testing (and thus did not throw this error) and did not see this error until later.

Best answer by Miguel Carranza

Hi Guido,

Apple and Google both required to be signed up before making a purchase. MissingReceiptFileError should be an error, not an exception that crashes your app: https://www.revenuecat.com/docs/errors#-missing_receipt_file

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

2 replies

Miguel Carranza
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 84 replies
  • Answer
  • October 17, 2022

Hi Guido,

Apple and Google both required to be signed up before making a purchase. MissingReceiptFileError should be an error, not an exception that crashes your app: https://www.revenuecat.com/docs/errors#-missing_receipt_file


Forum|alt.badge.img+4
  • Author
  • Member
  • 6 replies
  • October 18, 2022

The wrapper that I'm using exposes purchase errors as exceptions.
This is not your doing :).


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