Skip to content

Empty array on in_app receipt field / Implement SKReceiptRefreshRequest #111

@brunolemos

Description

@brunolemos

Some users are complaining they are paying and not receiving the subscription.

Debugging the server, I noticed it receives the same receipt-data from the user on every receiptData request, with an empty array on in_app field.

After searching some links (e.g. this one), I believe we need to call Apple's SKReceiptRefreshRequest method to get an updated receipt from Apple's server.

Is that correct to assume? Or maybe another thing is causing this issue?

Apple docs:

An empty in_app array indicates that StoreKit has not recorded any transactions for that user yet. It may be that the application receipt has not yet been updated. When this happens, your app can inform the user that the receipt does not appear current and ask whether to refresh it. Upon user agreement, your app should use the SKReceiptRefreshRequest class to update the receipt. At this point, if StoreKit has recorded a purchase for the user, your app receipt will show it in in_app. See Refreshing the App Receipt for more information on how to update a receipt.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions