Clarify how SKProductStorePromotionController works in App Store SandBox

Originator:hannes.oud.dev
Number:rdar://36275010 Date Originated:03-Jan-2018 04:29 PM
Status:Closed Resolved:09-Jan-2018 02:58 PM
Product:iOS + SDK Product Version:iOS 11.2
Classification:Other Bug Reproducible:Always
 
Summary:
It is unclear how to test SKProductStorePromotionController.
The article https://developer.apple.com/documentation/storekit/in_app_purchase/testing_promoted_in_app_purchases does not mention anything about how to test visibility updates for instance.

In our app the calls complete without error but nothing happens, neither with a sandbox user nor with an actual app store user.

Steps to Reproduce:
1. Open the article 
https://developer.apple.com/documentation/storekit/in_app_purchase/testing_promoted_in_app_purchases
2. Try to find out how SKProductStorePromotionController is expected to behave with an App Store sandbox user.

Expected Results:
It should mention how SKProductStorePromotionController behaves in sandbox.

Actual Results:
There is no information on this.
Also not in the headers.

Version:
iOS 11.2

Notes:
In our app we have no success with SKProductStorePromotionController.update(storePromotionVisibility:for:completionHandler:). When trying to hide promoted IAP after a fremium IAP purchase, the completion handler is called without error, but the App Store shows all IAPs nevertheless.

Comments

Hannes Oud

Thanks! I would love to see this comment added to the documentation, Api Headers, or this article: https://developer.apple.com/documentation/storekit/in_app_purchase/testing_promoted_in_app_purchases

By hannes.oud.dev at Feb. 2, 2018, 11:30 a.m. (reply...)

Apple Developer Relations

Engineering has provided the following information regarding this issue:

SKProductStorePromotionController works by using the app's Bundle ID. So for a sandbox app that has the same Bundle ID as the app in the App Store, you will see changes in the App Store. If the sandbox app has a different Bundle ID, or the app is not in the App Store yet, you will not see changes in the App Store.

If you’re having problems where it is not behaving as you expect, we would ask that you file a new bug report after installing our profile and reproducing the issue, following the instructions here under App Store/iTunes Store: https://developer.apple.com/bug-reporting/profiles-and-logs/ .

By hannes.oud.dev at Feb. 2, 2018, 11:30 a.m. (reply...)

Hannes Oud

This is not about executing a promoted purchase (this works) but about updating the visibilities in the App Store. I was asking for clarification for testing of visibilty updates in the app store using SKProductStorePromotionController.

By hannes.oud.dev at Feb. 2, 2018, 11:29 a.m. (reply...)

Apple Developer Relations

Please provide the formatted URL that you are testing. The format is : itms-services://?action=purchaseIntent&bundleId=com.example.app&productIdentifier=product_name

Please provide your response or results by updating your bug report. If uploading files, please compress first.

By hannes.oud.dev at Feb. 2, 2018, 11:29 a.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!