Does an In App Purchase's Product ID have to begin with a Reverse-DNS?

Viewed 12101

Does an In App Purchase's Product ID have to begin with a Reverse-DNS like com.mycompany.My_Awesome_Game.Level_Pack_1 or can it just be standalone like Level_Pack_1?

3 Answers

This is an old question but I'm directed here since recently I've been wondering about the same question. Eventually as I walked through the implementation of IAP in my project this has become clear to me:

  1. if you don't need App Store to host content for your In-App Purchase the Product ID can be any combination of Alphanumeric (A-Za-z0-9), underscore (_) and dot (.);
  2. if you do need App Store to host content the Product ID must be reverse-DNS like (com.yourCompany.yourProduct) and must match the bundle identifier of your In-App Purchase Content project. Later when you archive the content project and upload it with Xcode archive uploader this is how App Store Connect knows how to associate the uploaded content with the in-app purchase product.
Related