Skip to main content
Answer

iOS product information (priceString) cannot be obtained correctly with Flutter

  • August 27, 2021
  • 8 replies
  • 800 views

Forum|alt.badge.img+4

I want to display the amount based on the Product information obtained from Offerings. However, when I check it on the actual iOS device, "Price String" is displayed as "XXX 120.0" etc., and the currency part is not displayed well. Andorid's device will display "¥ 120" without any problem.

AppStoreConnect information is set at ¥120 as shown in the screenshot.

 

 

Best answer by mcz9mm

I verified it with a simulator using an actual device and StoreKit. Neither seems to be able to get only Japanese currency well. Data can be obtained correctly in other regions (US and Germany).

So far I found that only Japan didn't get it well, so I decided to temporarily use static data to display the PriceString.

This post has been closed for comments

8 replies

sharif
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • August 27, 2021

A mobile engineer looked into this today and the currency code on the SKProduct is null, which is causing the “XXX” part of the priceString. Can you try a different SKProduct with the same currency? Maybe this product is glitched in sandbox?


Forum|alt.badge.img+4
  • Author
  • Helper
  • August 28, 2021
Thanks for the reply!

I tried different SK Products, but the result was the same "XXX". The same applies to subscriptions and purchases.

 

 

 

 

 

 


Forum|alt.badge.img+4
  • Author
  • Helper
  • August 28, 2021
This is the version of the Flutter package I'm using.purchases_flutter: ^3.4.3

sharif
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • September 4, 2021

Hi,

Sorry for the delay! I was out of the office earlier this week and I’m getting caught up on my backlog.

Are you still seeing this issue? I’m not sure what the issue would be here since this is the first report but can you try a couple of things and let me know what happens?

  1. Are you testing on simulator, device, or TestFlight? If you’re testing on simulator can you try testing on device if you have one available and let me know if you still see the issue?
  2. Can you change the region of your test user to something like USA or Germany and see if you’re still seeing issues with the currencies in those regions?

sharif
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • September 4, 2021

Just noticed you tested on an actual iOS device, so no need to test there again - sorry!

It would still be helpful to change the region as described above to see if it’s an issue with the product, device, or SDK (basically I’d like to pinpoint the source of the currency issue.)


Forum|alt.badge.img+4
  • Author
  • Helper
  • Answer
  • September 6, 2021

I verified it with a simulator using an actual device and StoreKit. Neither seems to be able to get only Japanese currency well. Data can be obtained correctly in other regions (US and Germany).

So far I found that only Japan didn't get it well, so I decided to temporarily use static data to display the PriceString.


Forum|alt.badge.img+1
  • New Member
  • January 17, 2025

 

This article is from 3 years ago and has been resolved, but the same phenomenon (not displayed in Japanese yen) is still occurring in 2025. Is there any hope for a solution?


jeffrey_bunn
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • January 17, 2025

Hi ​@lynmock - can you share your StoreFront and Preferred Locale when testing this? We get the priceString from the underlying StoreProduct, and Apple can show different variations on this based on these two factors.