I just implemented server notifications for my app and I'm getting the response, but I don't know how can I match the data in the notification with one of my users in my database.
Add a Comment
Replies
To relate notifications to users, you can store the original transaction IDs of users' purchases with their database entries. When you receive a server notification, you can then check the original_transaction_id in the unified_receipt and match it to that user.
https://developer.apple.com/documentation/appstorereceipts/original_transaction_id https://developer.apple.com/documentation/appstoreservernotifications/unified_receipt
Many of the new StoreKit 2 and Support-related server APIs coming this year also require you to provide an original transaction ID in the request. Storing it will ensure you can easily adopt these new APIs as they are released.
Post not yet marked as solved
Up vote reply of Frameworks Engineer
Down vote reply of Frameworks Engineer