Why is MissingReceiptFileError thrown as an exception?

  • 17 October 2022
  • 2 replies

Badge +3

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 18 October 2022, 00:45

View original

2 replies

Userlevel 2
Badge +6

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:

Badge +3

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