Skip to main content
Solved

Why is MissingReceiptFileError thrown as an exception?

  • Oct 17, 2022 9:27 AM UTC
  • 2 replies
  • 468 views

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
This post has been closed for comments

2 replies

Miguel Carranza
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • Answer
  • Oct 17, 2022 10:45 PM UTC

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
  • Oct 18, 2022 9:53 AM UTC

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