Does `AppStore.sync` send transactions to `Transactions.update`

Hi everyone,

I'm trying to understand something for analytics purpose. We see a large number of transactions coming in Transaction.update that don't initiate from our app's paywalls.

  • When using AppStore.sync, does this send any restored transactions in Transaction.update? Or does it simply update what currentEntitlements will return. In other words, when I validate a transaction coming from Transaction.update, and the reason is .purchase, is it always a new purchase, or can it be an old purchase which is replayed?
  • If the answer to the above question is yes, how can we distinguish actual purchases from restored transactions when verifying a transaction?

Thanks! Bruno