tikhop / TPInAppReceipt

Reading and Validating In App Purchase Receipt Locally.
MIT License
635 stars 95 forks source link

Family sharing IAP support #86

Closed gongzhang closed 3 years ago

gongzhang commented 3 years ago

πŸ˜„ Does TPInAppReceipt support reading the family sharing flag of a purchase or a subscription? This information is on the in_app_ownership_type property.

When family members benefit from a shared subscription, App Store updates their receipt to include the family-shared purchase. Use the value of in_app_ownership_type to understand whether a transaction belongs to the purchaser or a family member who benefits.

https://developer.apple.com/documentation/appstorereceipts/in_app_ownership_type

tikhop commented 3 years ago

Hi @gongzhang, unfortunately, as I know, it’s not possible. Some fields of IAP receipt are not available in the local receipt and you can only read them using server-side receipt validation technique.

gongzhang commented 3 years ago

@tikhop Thanks!