iosin-app-purchaseapp-storestorekitskproduct

SKProductStorePromotionController update methods not working


I'm trying to use the SKProductStorePromotionController introduced in iOS 11 to update the visibility of some in-app purchase promotions I have, and no matter what I try it doesn't work. I've tried fetching the products via SKProductRequest and using SKProductStorePromotionController's order fetching method, and I've tried updating both visibility and order. Neither seems to do anything. This has mostly been in debug builds, though I've also done it in TestFlight builds. What am I missing?


Solution

  • Turns out the reason this wasn't working for me was because of this checkbox for the IAP in iTunes Connect.

    enter image description here

    Once I unchecked that and went through a review the APIs work as expected.