question

Georgi Darakev avatar image
Georgi Darakev asked

Apple IAP receipt size is too large for call and storage limits

Hi,

We have a Playfab application using monthly apple subscription.

We send the apple receipt to the Playfab cloudscript for validation.

We noticed that after a number of renewals the receipt key goes over the call argument limit.

Another thing that we would like to do is store the latest receipt key and have an automated script that re-sends the receipt daily to apple, and checks and updates the status of the user (subscribed, expired, re-subscribed, etc).

What is the best way to handle this using the Playfab platform.

Thank you,

Georgi

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Seth Du avatar image
Seth Du answered

Storing only the latest receipt is a better solution, however in terms of automatic script, there is a solution that can be done by the built-in feature of Playfab. You may make the use of the Segmentation and Scheduled tasks features. Scheduled tasks allow you to run a daily routine function to do what you want and the task can run once for each member in the segmentation. You may narrow down the segment scope to the players who link account to Apple Game Center.

Be aware that this will take longer when the number of players increases and that’s why I do not suggest using this method. It will be better if the validation process is event-triggered, for example, only when the players logins in their account first time in the day, will the script run to validate the subscription status.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.