can anyone tell me the recommended way to deal with this
That will depend on what server-side technologies you are familiar with or are already using, and how much security you need.
I use AWS, and I have a Lambda function that implements AppAttest to authorise a download from CloudFront / S3. The main disadvantage of this is the bandwidth cost. If I were starting from scratch I'd look at Cloudflare R2.
Topic:
App & System Services
SubTopic:
StoreKit
Tags: