mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
InAppPurchases: Ensure that the iOS implementation notifies on failure
This commit is contained in:
parent
f21bc3f4ae
commit
cb54044c1c
2 changed files with 96 additions and 48 deletions
|
|
@ -190,7 +190,7 @@ private:
|
|||
guiUpdater.triggerAsyncUpdate();
|
||||
}
|
||||
|
||||
void productPurchaseFinished (const PurchaseInfo& info, bool success, const String&) override
|
||||
void productPurchaseFinished (const PurchaseInfo& info, bool success, const String& error) override
|
||||
{
|
||||
purchaseInProgress = false;
|
||||
|
||||
|
|
@ -213,6 +213,12 @@ private:
|
|||
}
|
||||
}
|
||||
|
||||
if (! success)
|
||||
{
|
||||
auto options = MessageBoxOptions::makeOptionsOk (MessageBoxIconType::WarningIcon, "Purchase failed", error);
|
||||
messageBox = AlertWindow::showScopedAsync (options, nullptr);
|
||||
}
|
||||
|
||||
guiUpdater.triggerAsyncUpdate();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue