开发者

Any other way to figure out user country on iphone except using NSLocaleCountryCode

开发者 https://www.devze.com 2023-02-05 00:48 出处:网络
I want to restrict some contents of my app based on user country (from where app is currently being accessed). I am开发者_如何学编程 aware of NSLocaleCountryCode but the issue is that user can go ahea

I want to restrict some contents of my app based on user country (from where app is currently being accessed). I am开发者_如何学编程 aware of NSLocaleCountryCode but the issue is that user can go ahead and change the location used/returned by NSLocaleCountryCode in iPhone settings.

Is there any other way to figure out user's country?


Get the latitude and longitude of the user and found out the country. It will give the exact result.

0

精彩评论

暂无评论...
验证码 换一张
取 消