Best way to handle downloaded content for inApp purchase?

  • 26 March 2024
  • 1 reply

Badge +5

We are selling Tour descriptions in our App, that are like ebook chapters plus files for the actual track. Currently, we include all ebooks in the app bundle. Now we want to move it to be downloadable content that is downloaded after the purchase and on a restore purchases event. Are there recommendations or best practices on how to handle the downloads? Can we place download URLs into some meta data that are only visible after the purchase?

This post has been closed for comments

1 reply

Userlevel 3
Badge +8


We don’t have metadata that is meant for secure information (we have Customer Attributes, but those can be written with a public API key).

The best way to do this would likely be to send the url from your backend. For that, I would suggest:

  1. Listening to our webhooks to determine when a purchase occurs
  2. Set an attribute for that user in your db (e.g., hasBoughtProductA)
  3. When the user requests that file (or perhaps a list of files), return the download url based on the user’s data in your backend.