Iphone检测区域格式

发布于 2024-08-03 18:50:57 字数 109 浏览 3 评论 0原文

我想根据区域格式的设置位置(在常规设置中)向用户提供不同的 iTunes 购买链接。 有没有办法检测到这一点,然后向每个用户区域提供单独的数据库?

感谢您的帮助。

GS。

I want to to deliver different iTunes buy links to a user depending on where there Region Format is set (in general settings).
Is there a way to detect that and then deliver a separate database to each users region?

Thanks for the help.

GS.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

还给你自由 2024-08-10 18:50:57

假设这是一个基于 Web 的程序,而不是 Cocoa,那么 HTTP Accept-Language 标头似乎就是您需要处理的全部内容。 Mobile Safari 不提供有关区域格式的信息,仅提供语言信息。

这种方法以及基于区域格式的方法都存在缺陷;更重要的是用户选择了哪个 iTunes Store(iTunes 设置传输到 iPhone)。此设置与地理位置、区域格式和语言无关。如果您向用户提供了错误商店的链接,那么该链接很可能无法正常工作。

对于免费内容来说这应该不重要,但我自己在使用非免费内容时也遇到过这个问题,因为我经常在英国、美国和德国的 iTunes 商店之间切换(我更喜欢英国/美国的播客,但只能从德国的)。

Assuming this is a web-based program, not Cocoa, the HTTP Accept-Language header appears to be all you've got to work with. Mobile Safari provides no information about Region Format, only Language.

This method, as well as a Region Format-based one, is flawed; more important is which iTunes Store the user has selected (the iTunes setting is transferred to the iPhone). This setting is independent of geographical location, Region Format and Language. You give the user a link to the wrong store, and it might well not work.

It shouldn't matter for free content, but I've had this problem myself with non-free content, as I often switch between the UK, US and German iTunes Stores (I prefer UK/US for podcasts, but can only buy from the German one).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文