Question

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

  • 27 August 2021
  • 6 replies
  • 99 views

Badge

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.

 

 


6 replies

Userlevel 3
Badge +8

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?

Badge
Thanks for the reply!

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

 

 

 

 

 

 

Badge
This is the version of the Flutter package I'm using.purchases_flutter: ^3.4.3
Userlevel 3
Badge +8

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?
Userlevel 3
Badge +8

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.)

Badge

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.

Reply