diff --git a/Sources/Earthquake Network/Controllers/InApp/SubscriptionsViewController.swift b/Sources/Earthquake Network/Controllers/InApp/SubscriptionsViewController.swift index def933f..d7662c2 100644 --- a/Sources/Earthquake Network/Controllers/InApp/SubscriptionsViewController.swift +++ b/Sources/Earthquake Network/Controllers/InApp/SubscriptionsViewController.swift @@ -177,8 +177,14 @@ class SubscriptionsViewController: UITableViewController { if isRestorePurchase { isRestorePurchase = false + var product: String = "unknown" + if let productIdentifier = notification.object as? String, let productName = resourceNameForProductIdentifier(productIdentifier) { + product = productName + } + + let message = "\(NSLocalizedString("purchase_pro_restore_alert_message", comment: ""))\n\n(\(product))" let alert = UIAlertController(title: NSLocalizedString("purchase_pro_restore_alert_title", comment: ""), - message: NSLocalizedString("purchase_pro_restore_alert_message", comment: ""), preferredStyle: .alert) + message: message, preferredStyle: .alert) alert.addAction(UIAlertAction(title: "OK", style: .default, handler: nil)) present(alert, animated: true, completion: nil) }