How to check for In App Purchases when they are not allowed?

I would like to check for in app purchases when they are not allowed without triggering the iOS message box "in-app purchases not allowed".

Considering the following situation:

  1. users first buys an in app subscription
  2. users now sets in-app purchases to not-allowed
  3. app wants to check if there are in-app purchases made

You can setup iOS to disallow in app purchases.

https://support.firecore.com/hc/en-us/articles/1500000247522-Fix-In-App-Purchase-Not-Allowed-Message-iOS-

But that will make a SKProductsRequest trigger an iOS messagebox to be shown (unwanted behaviour).

How to avoid this messagebox?

(I am aware of the possibility to check if in app purchases are allowed or not by checking SKPaymentQueue.CanMakePayments, but that does not help me in avoiding the messagebox when checking for in app purchases)