Contents

fetchStorePromotionVisibility(for:completionHandler:)

Reads the visibility setting of a promoted product in the App Store for this device.

Declaration

func fetchStorePromotionVisibility(for product: SKProduct, completionHandler: (@Sendable (SKProductStorePromotionVisibility, (any Error)?) -> Void)? = nil)
func promotionVisibility(for product: SKProduct) async throws -> SKProductStorePromotionVisibility

Mentioned in

Discussion

The default visibility for a promoted product is set in App Store Connect. Call fetchStorePromotionVisibility(for:completionHandler:) to determine if a product’s visibility is set to the default value or if it has been overridden to be hidden or shown.

See Also

Managing promoted product visibility