While testing the purchase of renewable subscriptions on App Store's sandbox environment we have observed that defining subscription availability (either restricting to specific countries or making it unavailable) has no effect.
No matter what is the purchasing Sandbox Tester's assigned region or even if the product was marked as unavailable - always every product defined in App Store Connect is returned when fetched using StoreKit 2 API (Product.products(for:)).
Due to the described behaviour we are not able to test different sets of products being available for specific regions.
Note: The testing was done on app that is not yet published and the products as well were not reviewed - they all have "Ready to Submit" status. The app was built from Xcode (TestFlight distribution was not used).
--
Question 1: Is that an expected behaviour?
Question 2: When testing TestFlight distributed app will the availability be respected?
Question 3: Is the subscription's status in App Store Connect ("Ready to Submit") related to how it behaves? Is the behaviour varying when testing on Sandbox or using TestFlight?