diff --git a/IntegrationTests/Assets/APITests/InAppMessageTypeAPITests.cs b/IntegrationTests/Assets/APITests/InAppMessageTypeAPITests.cs index ec90be19..195a1ce8 100644 --- a/IntegrationTests/Assets/APITests/InAppMessageTypeAPITests.cs +++ b/IntegrationTests/Assets/APITests/InAppMessageTypeAPITests.cs @@ -13,6 +13,7 @@ private void Start() case Purchases.InAppMessageType.BillingIssue: case Purchases.InAppMessageType.PriceIncreaseConsent: case Purchases.InAppMessageType.Generic: + case Purchases.InAppMessageType.WinBackOffer: break; } } diff --git a/IntegrationTests/Assets/APITests/PurchasesAPITests.cs b/IntegrationTests/Assets/APITests/PurchasesAPITests.cs index 300ed9dd..37162e9b 100644 --- a/IntegrationTests/Assets/APITests/PurchasesAPITests.cs +++ b/IntegrationTests/Assets/APITests/PurchasesAPITests.cs @@ -242,7 +242,7 @@ private void Start() purchases.SyncAmazonPurchase("product_id", "receipt_id", "amazon_user_id", "iso_currency_code", 1.99); purchases.ShowInAppMessages(new Purchases.InAppMessageType[] { Purchases.InAppMessageType.BillingIssue, - Purchases.InAppMessageType.PriceIncreaseConsent, Purchases.InAppMessageType.Generic }); + Purchases.InAppMessageType.PriceIncreaseConsent, Purchases.InAppMessageType.Generic, Purchases.InAppMessageType.WinBackOffer }); purchases.ShowInAppMessages(); } } diff --git a/RevenueCat/Scripts/InAppMessageType.cs b/RevenueCat/Scripts/InAppMessageType.cs index b47fde62..6a043469 100644 --- a/RevenueCat/Scripts/InAppMessageType.cs +++ b/RevenueCat/Scripts/InAppMessageType.cs @@ -15,5 +15,9 @@ public enum InAppMessageType /// iOS-only. StoreKit generic messages. Generic = 2, + + // iOS-only. This message will show if the subscriber is eligible for an iOS win-back + // offer and will allow the subscriber to redeem the offer. + WinBackOffer = 3, } } diff --git a/Subtester/Assets/Scripts/PurchasesListener.cs b/Subtester/Assets/Scripts/PurchasesListener.cs index ec578fa2..b959eab9 100644 --- a/Subtester/Assets/Scripts/PurchasesListener.cs +++ b/Subtester/Assets/Scripts/PurchasesListener.cs @@ -766,7 +766,7 @@ void ShowInAppMessages() { var purchases = GetComponent(); purchases.ShowInAppMessages(new Purchases.InAppMessageType[] { Purchases.InAppMessageType.BillingIssue, - Purchases.InAppMessageType.PriceIncreaseConsent, Purchases.InAppMessageType.Generic }); + Purchases.InAppMessageType.PriceIncreaseConsent, Purchases.InAppMessageType.Generic, Purchases.InAppMessageType.WinBackOffer }); } void GetAmazonLWAConsentStatus()