InAppPurchases from AUv3 plugin

Hi,

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/MyPlugin.app/PlugIns/MyPlugin.appex/"

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 ?

1 Like

I’m facing the exact same issue… but this is notoriously the forum of the unanswered questions.

My conclusion was that it is not possible to perform in-app purchases inside an app extension. Now the purchase buttons in my AUv3 just show a popup saying to go in the app and purchase from there. Really inconvenient, but I think it is 100% an Apple issue.

Oh well, no wonder if it’s another Apple thing.

Thanks for your reply.