getProducts() ignores per application language settings on Android
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:
- provide i18n for subscriptions in Google Play Console
- call getProducts()
- check the fetched data if it match language setting for the app
iOS might also be impacted. I will provide that information after testing.
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.