Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Determine Play Store Country

I'm looking to see if there is any way to tell what country version of the play store a user has on their android phone.

Basically I want to turn off In-App Purchasing for certain countries (for tax collecting reasons). I have tried Locale but that can be changed by changing the Language in the phone. I figured the only thing that can determine what country they are from would be by the Google account that is connected to the play store.

Any help would be much appreciated. Thank You.

like image 856
TomD Avatar asked Jul 30 '14 16:07

TomD


2 Answers

I have one idea about it, but i haven't try it yet (maybe smbd can give some feedback about using this approach).

The idea is to use getSkuDetails to get price_currency_code and disable billing for some currencies.

like image 89
j2esu Avatar answered Nov 19 '22 03:11

j2esu


Google will determine the Play store country based on the Ip Address when the user has signed up the google account in their Mobile.

  • We can check this by removing the google account from Settings > Accounts.

  • Change the IP address using any VPN like (Tunnel Bear)

  • Add the google account.

  • Play store country will be changed

like image 1
Nithin Raja Avatar answered Nov 19 '22 02:11

Nithin Raja