react-native-iap icon indicating copy to clipboard operation
react-native-iap copied to clipboard

getProducts() ignores per application language settings on Android

Open farynaio opened this issue 9 months ago • 1 comments

Description On Android, when a user sets the per-application language setting to a language different from the system setting, the package will fetch subscriptions with the wrong language version - based on the system instead of the per-app setting. In other words, the package ignores per-app language settings when fetching subscriptions.

Expected Behavior

The package should support and prioritize the application language setting before system settings, and the correct localized subscription data should be fetched from Google Play.

Environment:

  • react-native-iap: 12.16.2
  • react-native: 0.79.2
  • Platforms (iOS, Android, emulator, simulator, device): Android device

To Reproduce Steps to reproduce the behavior:

  1. provide i18n for subscriptions in Google Play Console
  2. call getProducts()
  3. check the fetched data if it match language setting for the app

farynaio avatar Jun 09 '25 07:06 farynaio

iOS might also be impacted. I will provide that information after testing.

farynaio avatar Jun 09 '25 07:06 farynaio

I’m closing all issues reported in versions below 14, as the library now supports the new architecture with NitroModules and has been completely revamped.

hyochan avatar Sep 30 '25 03:09 hyochan