Determine Play Store Country

TomD picture TomD · Jul 30, 2014 · Viewed 14.1k times · Source

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.

Answer

j2esu picture j2esu · Sep 14, 2017

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.