Skip to main content
Question

How to check if the user is on the US storefront?

  • May 10, 2025
  • 3 replies
  • 84 views

Forum|alt.badge.img+5

Hello, is there a way to check if the user that hasn't bought anything yet, is from Apple US Storefront with react native?

This post has been closed for comments

3 replies

joan-cardona
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • May 14, 2025

Hi ​@DevTec,

You can use the `getStorefront` function from the RevenueCat SDK to get the user’s storefront. With that you’ll be able to compare if that it’s equal to USA.

 

Best,


Forum|alt.badge.img+5
  • Author
  • New Member
  • May 14, 2025

Hi ​@joan-cardona 

I’m waiting for the next release of `react-native-purchases` that implement the  `getStorefront` function. Right now is not available in npm. 

Thank you


joan-cardona
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • May 20, 2025

Hi ​@DevTec,

The version is available now! You can find the pull request here and it’s in the version 8.10.0.

Let me know if it works!