Skip to main content
Question

In app subscription. Different price and format on device and simulator

  • August 23, 2023
  • 5 replies
  • 909 views

Forum|alt.badge.img+3

I’m creating a Flutter app with subscriptions. I’m using product priceString to get formatted price of the subscription. For some reason I get two different strings when I debug on device and on simulator (“4.99 USD” and “$3.99” respectively). 4.99 is the correct price for this subscription and I want it to be displayed with dollar sign ($) Instead of “USD”. How can resolve this issue?

This post has been closed for comments

5 replies

Ryan Glanz
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • August 25, 2023

Hi, happy to help here.

Is it possible one is pulling the price from the app store and the other is pulling from a storekit file? Or can you confirm they are both being pulled from the store?

 

As for the price string, we use the alphabetical code for best support across countries/currencies. But you could build a map of $: USD (for example) and other currencies, then replace that part of the string with the symbol you want.


Forum|alt.badge.img+3

@Ryan Glanz Thanks for help
I’m not using a storekit file. So they both should be pulled from the store. 


Ryan Glanz
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • August 28, 2023

And is the location/region the same on the device/simulator?


Hello i am facing this issue on revenuecat

 

DEBUG: ℹ️ Vending CustomerInfo from cache.

flutter: User is not subscribed. Showing paywall...

DEBUG: ℹ️ Vending CustomerInfo from cache.

VERBOSE: Looking up localized configuration for ["en-PK", "ur-PK"], searching for ["en-PK", "en", "ur-PK", "ur"]

VERBOSE: Found localized configuration for 'en-PK'

DEBUG: ℹ️ Looking up localization but found no strings

WARN: Could not determine price format because price string is incompatible.

WARN: Could not determine price format because price string is incompatible.

WARN: Could not determine price format because price string is incompatible.

WARN: Could not determine price format because price string is incompatibl


i am facing this issue using xcode 16.2 and real device on ios it issue on paywall not on xcode

 

 

WARN: Could not determine price format because price string is incompatible.

WARN: Could not determine price format because price string is incompatible.

WARN: Could not determine price format because price string is incompatible.

tcp_output [C12.1.1.1:3] flags=[R.] seq=2879003597, ack=4013263916, win=2048 state=CLOSED rcv_nxt=4013263916, snd_una=2879003520

VERBOSE: Looking up localized configuration for ["en-PK", "ur-PK"], searching for ["en-PK", "en", "ur-PK", "ur"]

VERBOSE: Found localized configuration for 'en-PK'

DEBUG: ℹ️ Looking up localization but found no strings

WARN: Could not determine price format because price string is incompatible.

WARN: Could not determine price format because price string is