Skip to main content
Solved

Why is packageLocalizedPriceString returning "4.99 $" instead of "$4.99" all of a sudden?

  • 15 August 2023
  • 2 replies
  • 103 views

I’m using the iOS SDK 4.25.2, for some reason when I ran the code today the localizedPriceString returned from the package object has the dollar currency symbol after the price instead of before like it has always been, so my UI is showing “4.99 $” instead of “$4.99”

 

Anybody else having this issue or know what might be causing it, maybe a phone setting?

 

Thanks

Mark.

Ignore, logging out the sandbox App Store user and logging back in again seemed to fix it :/


Hey Mark,

Sorry to hear about that annoying issue but glad you got it fixed. Apple’s sandbox environment does have various quirks so troubleshooting steps like restarting the device, logging out/in, deleting/reinstalling the app, etc. can help to fix those random issues.


Reply