InAppPurchases from AUv3 plugin


I’m having trouble with in-app purchase from the AUv3 plugin on iOS. Everything works fine from the standalone application, but when I call restoreProductsBoughtList from the AUv3, the SKReceiptRefreshRequest fails with “Receipt fetch failed, An unknown error occurred”.

The xcode output shows:

<SKReceiptRefreshRequest: 0x282fe4c60>: Finished refreshing receipt with error: Error Domain=ASDErrorDomain Code=507 "Invalid container for application: file:///private/var/containers/Bundle/Application/34343434-EF6E-49D8-8F4E-394934934394/"

I wonder if it is expected (that in app purchases do not work well within AUv3 plugins because of sandboxing), or if there might be something to fix in the JUCE ios in app purchase code ?