Search code examples
androidgoogle-playcountry

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.


Solution

  • I'm not sure about programmatically checking their google account country, but if you want to target specific regions, you can do that within the Google Play Developer console.

    Geographic targetting

    Google Play Instructions for determining country

    Even if it isn't a program/code answer, I hope this solves your problem much more easily than having to figure that out in your application.