Skip to main content
Solved

iOS SDK 5.19.0 paywall showing sub_offer_duration literal text


Andy Dent
Forum|alt.badge.img+2

I’m testing my app for which I’ve configured a v1 paywall offering choice of subscriptions and a single lifetime price.

The paywall sheet is displaying fine but the offering variable is not translated.

I’m seeing offering panels like:

First {{ sub_offer_duration }} free, then $7.99/yr ($0.67/mo).

 

I will get around it for now just hard-coding in the values but it looks like a bug.

Using SDK via SPM ver 5.19.0

cheers

Andy 

Best answer by Andy Dent

Found it - template has a bug!

 

So I went back into the editor and tried adding another package, just because I like to debug things.

Just adding a subscription package, with the Preview Settings for Introductory offer values checked, shows the same problem I had before.

The text which the editor inserts when you add a new package has

First ({ sub_offer_duration }} free, then {{ total_price_and_per_month }}

so I looked more closely, copying that text out into my trusty BBEdit and putting my working copy underneath.

 

It helps to be using a bigger font - the template has paren brace instead of brace brace for the opening of the sub_offer_duration expression.

Ironically, when I started this thread, I must have typed it in by hand here instead of copying from the Paywall editor!

 

 

 

View original
Did this post help you find an answer to your question?

3 replies

joan-cardona
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 313 replies
  • March 11, 2025

Hi ​@Andy Dent,

Is this empty only for the lifetime price or for any product?

Best,


Andy Dent
Forum|alt.badge.img+2
  • Author
  • Helper
  • 4 replies
  • March 12, 2025

Hi ​@joan-cardona 

Is this empty only for the lifetime price or for any product?

Good question.

I’m only using that clause on the subscription products.

I just put the variable back to replace my literal text and now it is working!

First {{ sub_offer_duration }} free, then {{ total_price_and_per_month }}

Cancel any time.

 

So either there was a backend fix in the last few days or something about the original template text had a gremlin in it. I can’t see a difference.

 

Anyway happy Andy is finalising his RevenueCat integration to test and ship to store!!!!


Andy Dent
Forum|alt.badge.img+2
  • Author
  • Helper
  • 4 replies
  • Answer
  • March 12, 2025

Found it - template has a bug!

 

So I went back into the editor and tried adding another package, just because I like to debug things.

Just adding a subscription package, with the Preview Settings for Introductory offer values checked, shows the same problem I had before.

The text which the editor inserts when you add a new package has

First ({ sub_offer_duration }} free, then {{ total_price_and_per_month }}

so I looked more closely, copying that text out into my trusty BBEdit and putting my working copy underneath.

 

It helps to be using a bigger font - the template has paren brace instead of brace brace for the opening of the sub_offer_duration expression.

Ironically, when I started this thread, I must have typed it in by hand here instead of copying from the Paywall editor!

 

 

 


Did this post help you find an answer to your question?

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings